Re: Postfix configuration (mail to root)
- To: debian-user@lists.debian.org
- Subject: Re: Postfix configuration (mail to root)
- From: Andrei Popescu <andreimpopescu@gmail.com>
- Date: Sun, 1 Oct 2006 22:18:37 +0300
- Message-id: <[🔎] 20061001221837.48a40372@omnibook.homenet>
- In-reply-to: <20060930225110.GE4444@die.therning.org>
- References: <20060929142325.GC18750@die.therning.org> <20060929161615.GF18750@die.therning.org> <20060929200718.487aa499@omnibook.homenet> <20060930165257.GD3573@die.therning.org> <20060930203634.5683dc56@omnibook.homenet> <20060930192551.GA4444@die.therning.org> <20060930194034.GB4444@die.therning.org> <20060930225535.7e19801d@omnibook.homenet> <20060930225110.GE4444@die.therning.org>
Magnus Therning <magnus@therning.org> 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
> (/etc/postfix/generic).
>
> 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.
Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)
Reply to: