Re: Postfix configuration (mail to root)
- To: email@example.com
- Subject: Re: Postfix configuration (mail to root)
- From: Andrei Popescu <firstname.lastname@example.org>
- Date: Sun, 1 Oct 2006 22:18:37 +0300
- Message-id: <[🔎] email@example.com>
- In-reply-to: <20060930225110.GE4444@die.therning.org>
- References: <20060929142325.GC18750@die.therning.org> <20060929161615.GF18750@die.therning.org> <firstname.lastname@example.org> <20060930165257.GD3573@die.therning.org> <email@example.com> <20060930192551.GA4444@die.therning.org> <20060930194034.GB4444@die.therning.org> <firstname.lastname@example.org> <20060930225110.GE4444@die.therning.org>
Magnus Therning <email@example.com> wrote:
> On Sat, Sep 30, 2006 at 22:55:35 +0300, Andrei Popescu wrote:
> >Ok, but it works for me. If I send mail to root (without @localhost),
> >then my user receives it (according /etc/aliases). If I send mail to a
> >real internet address then postfix takes care of the proper rewriting
> >so that my smarthost doesn't deny it.
> Hmmm, I believe I've figured it out.
> I set /etc/mailname to contain a domain name that it's possible to send
> email from. In that way every user on the sysmte could send email, but
> local delivery was not possible without explicitly addressing to a
> destination that occured in postfix's $mydestination. This is due to
> the automatic addition of @$myorigin (which I now know can be controlled
> in postfix's configuration, but I'm not sure what impact changing the
> default will have).
> You instead left localhost.localdomain in /etc/mailname. This means
> that addressing to 'root' (without @<domain>) is possible. However, it
> forces you to rewrite addresses for each user on the way out
> I've switched to your setup since it means things work better and I
> don't regularly add mail-sending users to my system anyway.
> Thanks for helping me understand this. :-)
Glad to be of help.
If you can't explain it simply, you don't understand it well enough.