Re: [Dovecot] Multiple domains to one inbox and temporary redirects...
Simon Brereton wrote:
Hi
Can anyone point me to a howto to arrange for multiple domains to deliver to one inbox with Dovecot? For example, user1@example.com and user1@example.net should both be delivered to /var/spool/mail/virtual/example.net/user1
Currently, I have the dovecot LDA set as:
dovecot unix - n n - - pipe flags=DRhu user=mailsystem argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
and in dovecot.conf:
mail_location: maildir:/var/spool/mail/virtual/%d/%n
For some domains only, I need to override that mail_location.
Related to that, when user1 leave and user2 would like to receive user1's email, how can I get it so that email to user1@example.com is delivered to user2@example.com? Previously when I was using Postfix to deliver the mails, I could change the maildirloc in the DB - but I’m not sure how to accomplish this with dovecot LDA.
I'm using Postfixadmin to manage users and have server alias-domains. All mail sent to an alias-domain is delivered to the other domain. Quite easy if you've got postfixadmin already setup.
Otherwise I think you could configure virtual_alias_maps in postfix to something like hash:virtual_domains
virtual_domains: @example.net @example.com
N.
I'm using Sendmail, sample config below:
On 8/31/2011 12:41 PM, Nick Rosier wrote:
Simon Brereton wrote:
Hi
Can anyone point me to a howto to arrange for multiple domains to deliver to one inbox with Dovecot? For example, user1@example.com and user1@example.net should both be delivered to /var/spool/mail/virtual/example.net/user1
Currently, I have the dovecot LDA set as:
dovecot unix - n n - - pipe flags=DRhu user=mailsystem argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
and in dovecot.conf:
mail_location: maildir:/var/spool/mail/virtual/%d/%n
For some domains only, I need to override that mail_location.
Related to that, when user1 leave and user2 would like to receive user1's email, how can I get it so that email to user1@example.com is delivered to user2@example.com? Previously when I was using Postfix to deliver the mails, I could change the maildirloc in the DB - but I’m not sure how to accomplish this with dovecot LDA.
I'm using Postfixadmin to manage users and have server alias-domains. All mail sent to an alias-domain is delivered to the other domain. Quite easy if you've got postfixadmin already setup.
Otherwise I think you could configure virtual_alias_maps in postfix to something like hash:virtual_domains
virtual_domains: @example.net @example.com
N.
We deliver multiple multiple domains to the single user name of the domain.
admin@NoJunk-Mail.com admin admin@emailsecurity.us admin admin@spam-zapper.com admin admin@abs-comptech.com admin admin@remote-pc-doc.com admin
We use our Server Administrator tool to manage the mailboxes.
Begin shameless plug: (Server Administrator - http://www.abs-comptech.com/serveradministrator.htm) end shameless plug
--
Albert E. Whale, CHS CISA CISSP Senior Technology & Security Director *ABS Computer Technology, Inc. * 412-635-7488 ext 100 aewhale@ABS-CompTech.com <mailto:aewhale@ABS-CompTech.com> www.ABS-CompTech.com <http://www.ABS-CompTech.com>
-----Original Message----- From: Nick Rosier [mailto:nick+dovecot@bunbun.be]
Simon Brereton wrote:
Hi
Can anyone point me to a howto to arrange for multiple domains to deliver to one inbox with Dovecot? For example, user1@example.com and user1@example.net should both be delivered to /var/spool/mail/virtual/example.net/user1
Currently, I have the dovecot LDA set as:
dovecot unix - n n - - pipe flags=DRhu user=mailsystem argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
and in dovecot.conf:
mail_location: maildir:/var/spool/mail/virtual/%d/%n
For some domains only, I need to override that mail_location.
Related to that, when user1 leave and user2 would like to receive user1's email, how can I get it so that email to user1@example.com is delivered to user2@example.com? Previously when I was using Postfix to deliver the mails, I could change the maildirloc in the DB - but I’m not sure how to accomplish this with dovecot LDA.
I'm using Postfixadmin to manage users and have server alias-domains. All mail sent to an alias-domain is delivered to the other domain. Quite easy if you've got postfixadmin already setup.
Otherwise I think you could configure virtual_alias_maps in postfix to something like hash:virtual_domains
virtual_domains: @example.net @example.com
Cheers Nick
Of course that will do it. Thanks.
Simon
On 8/31/2011 12:41 PM, Nick Rosier wrote:
I'm using Postfixadmin to manage users and have server alias-domains. All mail sent to an alias-domain is delivered to the other domain. Quite easy if you've got postfixadmin already setup.
Otherwise I think you could configure virtual_alias_maps in postfix to something like hash:virtual_domains
virtual_domains: @example.net @example.com
It's been a while since I played with virtual_alias_maps, but does that allow Postfix to say "that account doesn't exist" during the initial SMTP transaction? We try to reject as much as possible during the SMTP session to avoid any later bounces. I remember that one of the ways of doing it was bad as Postfix would accept, then a later step (maybe the LDA) would say "whoops! can't deliver this".
So we do it one by one by creating a virtual mailbox under the primary domain (user1@example.com) and then doing a virtual alias under the secondary domain (user1@example.net -> user1@example.com).
participants (4)
-
Albert E. Whale
-
Nick Rosier
-
Simon Brereton
-
Thomas Harold