-----Original message-----
> From: Dominic Raferd <domi...@timedicer.co.uk>
> You presumably have the default setting:
> append_at_myorigin = yes
>
> Refer to http://www.postfix.org/virtual.5.html
> <http://www.postfix.org/virtual.5.html>.
> Bear in mind that processing of virtual alias table is recursive.
>
> So: the first time, user2firstn...@domain2.com
> <mailto:user2firstn...@domain2.com>
> is rewritten to
> user2firstname.lastn...@domain1.com
> <mailto:user2firstname.lastn...@domain1.com>
> (i.e. the 'myorigin' is appended, I am guessing domain1.com
> <http://domain1.com>
> is set in /etc/mailname)
>
> Because a change occurred this is then passed back through the same file and
> (unless you remove the @domain1.com <http://domain1.com> catchall) gets
> rewritten
> to
> user1firstname.lastn...@domain1.com
> <mailto:user1firstname.lastn...@domain1.com>
Ah. That makes sense; because I am using virtual users, I guess postfix doesn't
know when to stop.
I added in:
user1firstname.lastn...@domain1.com user1firstname.lastn...@domain1.com
user2firstname.lastn...@domain1.com user2firstname.lastn...@domain1.com
which are the actual end results and that catches that final rewrite. I realise
the first one isn't strictly necessary given the catchall; but just for
consistency!
Thanks - that was a great help.
Cheers,
David