Advertisement
Guest User

Untitled

a guest
Mar 4th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. virtual_transport = lmtp:unix:private/dovecot-lmtp
  2. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
  3. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  4. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
  5.  
  6. +----+-----------+------------+----------------------+
  7. | id | domain_id | password | email |
  8. +----+-----------+------------+----------------------+
  9. | 1 | 1 | mypassword | catch-all@example.com
  10. | 2 | 1 | mypassword | me@example.com
  11.  
  12. +----+-----------+------------------------+-----------------------+
  13. | id | domain_id | source | destination |
  14. +----+-----------+------------------------+-----------------------+
  15. | 1 | 1 | @example.com | catch-all@example.com
  16. | 2 | 1 | another-me@example.com | me@example.com
  17.  
  18. user@myserver:~# postmap -q another-me@example.com mysql:/etc/postfix/mysql-virtual-alias-maps.cf
  19. me@example.com
  20. user@myserver:~# postmap -q test@example.com mysql:/etc/postfix/mysql-virtual-alias-maps.cf
  21. catch-all@example.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement