Matt,
The way I do it is in the Postfix Canonical table, where I translate
olddomainname into newdomainname for all mail.
The syntax is
@olddomainname @newdomainname
Then you just do a postmap canonical and a postfix reload. I do it for
several domains, you can also do individual users so you can make it
work like a conventional aliases files:
for instance:
[EMAIL PROTECTED] [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
The point about using canonical is that you have to understand the
filtering order in Postfix, some of the traditional mechanisms, such as
aliases, never get used in a conventional dbMail setup because they come
into effect _after_ the transport is implemented, so you can go changing
settings in Postfix which never work because Postfix has already passed
the mail on to dbMail. Canonical gets processed very early.
HTH
Steve
Matt Salerno wrote:
Postfix - 2.1.5
MySQL - 4.0.24
DBMail - 2.0.4
I have everything working almost ok, but now I have the need to add
domain aliases.
ex.
foo.com is a virtual domain configured with lots of users
My company decides that they want to buy foo.net and receive e-mail
for both domains.
So, [EMAIL PROTECTED] would be delivered to [EMAIL PROTECTED]
Is there a way to do this without creating an alias for every single user?
I have been trying to figure out how to do this using the
virtual_alias_maps, but I have had no luck.
I know that someone else out there must be doing this. Could that
someone shed some light on my dilemma.
Thanks,
Matt
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail