Advertisement
Guest User

Untitled

a guest
Jun 15th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. nano /etc/postfix/mysql-virtual_domains.cf
  2. hosts = localhost
  3. user = postfix
  4. password = postfix001
  5. dbname = postfix
  6. table = domains
  7. select_field = 'virtual'
  8. where_field = domain
  9.  
  10. nano /etc/postfix/mysql-virtual_forwardings.cf
  11. hosts = localhost
  12. user = postfix
  13. password = postfix001
  14. dbname = postfix
  15. table = forwardings
  16. select_field = destination
  17. where_field = email
  18.  
  19. nano /etc/postfix/mysql-virtual_mailboxes.cf
  20. hosts = localhost
  21. user = postfix
  22. password = postfix001
  23. dbname = postfix
  24. table = users
  25. select_field = CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
  26. where_field = email
  27.  
  28. nano /etc/postfix/mysql-virtual_email2email.cf
  29. hosts = localhost
  30. user = postfix
  31. password = postfix001
  32. dbname = postfix
  33. table = users
  34. select_field = email
  35. where_field = email
  36.  
  37. nano /etc/postfix/mysql-virtual_transports.cf
  38. hosts = localhost
  39. user = postfix
  40. password = postfix001
  41. dbname = postfix
  42. table = transport
  43. select_field = transport
  44. where_field = domain
  45.  
  46. nano /etc/postfix/mysql-virtual_mailbox_limit_maps.cf
  47. hosts = localhost
  48. user = postfix
  49. password = postfix001
  50. dbname = postfix
  51. table = users
  52. select_field = quota
  53. where_field = email
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement