This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
start:howto:dovecot_plus_database_quota [2013/06/10 09:32] aseques |
start:howto:dovecot_plus_database_quota [2013/06/10 09:42] aseques |
||
---|---|---|---|
Line 46: | Line 46: | ||
Being example2.com an alias of example1.com, whenever we create a mailbox in example1.com the same mailbox in example2.com becomes a redirection. | Being example2.com an alias of example1.com, whenever we create a mailbox in example1.com the same mailbox in example2.com becomes a redirection. | ||
So creating [email protected] will also receive the mail from [email protected] automatically. That can be used when a customer don't want the hassle of managing two mail domain (and having to set manually every mail address two times). | So creating [email protected] will also receive the mail from [email protected] automatically. That can be used when a customer don't want the hassle of managing two mail domain (and having to set manually every mail address two times). | ||
+ | |||
+ | |||
+ | ==== The changes we have to do in postfix ==== | ||
+ | |||
+ | In the file main.cf (proposed changes are for the template), from: | ||
+ | virtual_mailbox_domains = hash:{MTA_VIRTUAL_DMN_HASH} | ||
+ | virtual_mailbox_maps = hash:{MTA_VIRTUAL_MAILBOX_HASH} | ||
+ | |||
+ | To: | ||
+ | |||
+ | #virtual_mailbox_domains = hash:{MTA_VIRTUAL_DMN_HASH} | ||
+ | virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains.cf | ||
+ | | ||
+ | #virtual_mailbox_maps = hash:{MTA_VIRTUAL_MAILBOX_HASH} | ||
+ | virtual_alias_maps = hash:{MTA_VIRTUAL_ALIAS_HASH}, mysql:/etc/postfix/mysql_virtual_forwards.cf | ||
+ | |||
+ | |||
+ | |||
/etc/postfix/mysql_virtual_domains.cf | /etc/postfix/mysql_virtual_domains.cf |