Re: Postfix configuration (mail to root)



On Fri, Sep 29, 2006 at 20:07:18 +0300, Andrei Popescu wrote:
Magnus Therning <magnus@xxxxxxxxxxxx> wrote:

This is how I've configured it:

% cat /etc/mailname
my.remote.host

% hostname -f
my.local.host

Maybe I'm wrong, but it seems to me that /etc/mailname should also be
'my.local.host'

But then I can't send emails because a lot of servers out there do a
lookup on the server name in the envelope header and my.local.host is on
a private LAN and can't be looked up.

Basically, the setup I want is:

root and other local accounts are delivered locally
non-local accounts are forwarded to the relayhost

To have the latter work I need to make sure that the envelope header
contains an address with a domain that can be looked up on the internet.
That's what I get by sticking my.remote.host in /etc/mailname. However,
that seems to screw up local delivery :-(

I can't see that this is a very unique situation, AFAICS that is exactly
what Internet With Smart Host is when I run 'dpkg-reconfigure postfix'.

/M

--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@xxxxxxxxxxxx Jabber: magnus.therning@xxxxxxxxx
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

As we enjoy great advantages from the inventions of others we should
be glad of an opportunity to serve others by any invention of
ours, and this we should do freely and generously.
-- Benjamin Franklin

Attachment: pgpsoyI4nFPCX.pgp
Description: PGP signature



Relevant Pages

  • Re: Goodbye to copper? [Telecom]
    ... inventions; cell phones with built-in cameras are great inventions; ... The Internet has obviously brought many benefits, ... quality offered by film cameras, one must spend serious money, more ... The farmer feels they're a blessing. ...
    (comp.dcom.telecom)
  • Re: Testing my new newsreader...
    ... You can now turn to page 2 of "The internet for dummies". ... "network" and whether you're a yank or a European. ... the really clever inventions will be ... company linking networks even with business partners was anathema even ...
    (rec.sport.rugby.union)
  • Re: Testing my new newsreader...
    ... Yeah, coz I'm so new to the internet, lol. ... it's called internet for Dummies not Newbies. ... "network" and whether you're a yank or a European. ... the really clever inventions will be ...
    (rec.sport.rugby.union)
  • Re: Testing my new newsreader...
    ... it's called internet for Dummies not Newbies. ... "network" and whether you're a yank or a European. ... the really clever inventions will be ... company linking networks even with business partners was anathema even ...
    (rec.sport.rugby.union)
  • Re: how to stop a users internet access???
    ... This could be done in the University's firewall, blocking access to the ... internet from the specific computer. ... 1: Block access in the content advisor: ...
    (microsoft.public.windowsxp.general)