[Dovecot] Virtual domain aliases
As I said in a previous reply the server is going great. In fact I can even send mail via it. (On the really old server I'm moving from I couldn't get authentication for outbound to work.)
I now have a couple of small issues to deal with before moving completely off the old system.
Virtual domains aliases? My reading seems to indicate that Postfix only handles aliases in one place/file. Ie., I can't use a /var/mail/vhosts/domain.tld/aliases.
This is probably a Postfix question but I'm asking anyway. I am pretty sure there are some Postfix people-of-significance hanging out here. :-)
Thanks, Rod
Roderick A. Anderson wrote:
As I said in a previous reply the server is going great. In fact I can even send mail via it. (On the really old server I'm moving from I couldn't get authentication for outbound to work.)
I now have a couple of small issues to deal with before moving completely off the old system.
Virtual domains aliases? My reading seems to indicate that Postfix only handles aliases in one place/file. Ie., I can't use a /var/mail/vhosts/domain.tld/aliases.
This is probably a Postfix question but I'm asking anyway. I am pretty sure there are some Postfix people-of-significance hanging out here. :-)
You can configure multiple virtual alias tables in Postfix:
virtual_alias_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/virtual2, hash:/etc/postfix/virtual3
Obviously change the map type to suit your environment.
~Seth
On 10/7/2008, Roderick A. Anderson (raanders@acm.org) wrote:
Virtual domains aliases? My reading seems to indicate that Postfix only handles aliases in one place/file. Ie., I can't use a /var/mail/vhosts/domain.tld/aliases.
Do you want actual aliases, or just virtual domains/mailboxes?
Seth already answered for aliases, but for just plain virtual domains/mailboxes, you want to use virtual_domain_maps and virtual_mailbox_maps.
--
Best regards,
Charles
Charles Marcus wrote:
On 10/7/2008, Roderick A. Anderson (raanders@acm.org) wrote:
Virtual domains aliases? My reading seems to indicate that Postfix only handles aliases in one place/file. Ie., I can't use a /var/mail/vhosts/domain.tld/aliases.
Do you want actual aliases, or just virtual domains/mailboxes?
I need a couple but for one domain I'm moving plus I figured I need an abuse and postmaster for the others.
Seth already answered for aliases, but for just plain virtual domains/mailboxes, you want to use virtual_domain_maps and virtual_mailbox_maps.
I as hoping for a method based on the incoming domain. Something like "hash:/var/mail/vhosts/%d/aliases" in Dovecot.
Damn! I just removed everything from the virtual_mailbox_maps file and now have no delivery of mail. So it looks like I have to have an entry for every user in every domain in the file/map (vmailbox/vmailbox.db). So going to a database (SQL) might be coming sooner than I planned.
Rod
On 10/7/2008, Roderick A. Anderson (raanders@acm.org) wrote:
Damn! I just removed everything from the virtual_mailbox_maps file and now have no delivery of mail. So it looks like I have to have an entry for every user in every domain in the file/map (vmailbox/vmailbox.db). So going to a database (SQL) might be coming sooner than I planned.
Since you're using postfix, I highly recommend postfixadmin...
http://sourceforge.net/projects/postfixadmin/
--
Best regards,
Charles
Charles Marcus wrote:
On 10/7/2008, Roderick A. Anderson (raanders@acm.org) wrote:
Damn! I just removed everything from the virtual_mailbox_maps file and now have no delivery of mail. So it looks like I have to have an entry for every user in every domain in the file/map (vmailbox/vmailbox.db). So going to a database (SQL) might be coming sooner than I planned.
Since you're using postfix, I highly recommend postfixadmin...
Thanks I'll look at it.
Rod
participants (3)
-
Charles Marcus
-
Roderick A. Anderson
-
Seth Mattinen