On Thu, Jan 29, 2009 at 12:38 AM, Dave <d...@davestechshop.net> wrote:

> This problem only happens when I send email to r...@localhost.
>
> The email is re-addressed to d...@myolddomain.net, as so:
>
> to=<d...@myolddomain.net>, orig_to=<r...@localhost>
>
> There is no entry in aliases, generic, virtual nor anywhere else I can find
> that still has a reference to myolddomain.net.
>
> Furthermore, if I address the email to root (not r...@localhost) this
> problematic aliasing does not happen.
>
> What could be responsible for this strange aliasing behavior?
>
> Here is the log:
>
> Jan 29 00:27:20 ubuntu postfix/pickup[28515]: 35807123E5: uid=1000
> from=<me>
> Jan 29 00:27:20 ubuntu postfix/cleanup[28518]: 35807123E5: message-id=<
> 20090129052720.nn...@example.com>
> Jan 29 00:27:20 ubuntu postfix/qmgr[28514]: 35807123E5: from=<
> m...@example.com>, size=308, nrcpt=1 (queue active)
> Jan 29 00:27:20 ubuntu postfix/cleanup[28518]: 3A67A1231F: message-id=<
> 20090129052720.nnn...@example.com>
> Jan 29 00:27:20 ubuntu postfix/qmgr[28514]: 3A67A1231F: from=<
> m...@example.com>, size=434, nrcpt=1 (queue active)
> Jan 29 00:27:20 ubuntu postfix/local[28520]: 35807123E5: to=<r...@localhost>,
> relay=local, delay=4.1, delays=4/0.01/0/0.08, dsn=2.0.0, status=sent
> (forwarded as 3A67A1231F)
> Jan 29 00:27:20 ubuntu postfix/qmgr[28514]: 35807123E5: removed
> Jan 29 00:27:21 ubuntu postfix/smtp[28521]: 3A67A1231F: to=<
> d...@myolddomain.net>, orig_to=<r...@localhost>, 
> relay=aspmx.l.google.com[209.85.133.114]:25,
> delay=1, delays=0.08/0.04/0.43/0.49, dsn=2.0.0, status=sent (250 2.0.0 OK
> 1233206841 b7si28689843ana.19)
> Jan 29 00:27:21 ubuntu postfix/qmgr[28514]: 3A67A1231F: removed
>


Solved. I discovered that my installation had two aliases databases. One was
in /etc/ and the other was in /etc/postfix/. Main.cf was pointing to only
one of them (in /etc/), but in some strange way the aliases database in
/etc/postfix was influencing Postfix's behavior. Is that by design?

I got rid of one aliases file/database, ran newaliases and the problem is
solved.

Reply via email to