Advertisement
Guest User

Untitled

a guest
Jun 12th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. #################################################################
  2. # /etc/postfix/main.cf:
  3. #################################################################
  4.  
  5. virtual_mailbox_base = /var/vmail
  6.  
  7. virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/virtual_mailbox_domains.cf
  8.  
  9. virtual_uid_maps = proxy:mysql:/etc/postfix/sql/virtual_uid_maps.cf
  10.  
  11. virtual_gid_maps = proxy:mysql:/etc/postfix/sql/virtual_gid_maps.cf
  12.  
  13. virtual_mailbox_maps = proxy:mysql:/etc/postfix/sql/virtual_mailbox_recipients.cf
  14.  
  15. virtual_alias_maps = proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf
  16.  
  17. dovecot_destination_recipient_limit = 1
  18. virtual_transport = dovecot
  19.  
  20. header_checks = regexp:/etc/postfix/header_checks
  21.  
  22. smtpd_sender_restrictions = reject_non_fqdn_sender,
  23. reject_non_fqdn_recipient,
  24. reject_unknown_sender_domain,
  25. reject_unauth_pipelining,
  26. permit_mynetworks,
  27. reject_unknown_client,
  28. permit
  29.  
  30. smtpd_recipient_restrictions = check_sender_access proxy:mysql:/etc/postfix/sql/sender_access.cf,
  31. check_recipient_access proxy:mysql:/etc/postfix/sql/recipient_access.cf,
  32. reject
  33.  
  34. local_access = proxy:mysql:/etc/postfix/sql/local_access.cf
  35. domain_access = proxy:mysql:/etc/postfix/sql/domain_access.cf
  36. all = permit
  37. disabled = reject
  38. address_domain_inbound = regexp:/etc/postfix/address_domain_inbound
  39. address_domain_outbound = regexp:/etc/postfix/address_domain_outbound
  40. etesa_domain = regexp:/etc/postfix/etesa_domain
  41.  
  42. smtpd_restriction_classes = all_outbound, all_inbound, local_outbound, local_inbound, domain_inbound, domain_outbound, disabled_inbound, disabled_outbound, etesa_domain_inbound, etesa_domain_outbound
  43. all_inbound = $all
  44. all_outbound = $all
  45. disabled_inbound = $disabled
  46. disabled_oubound = $disabled
  47. local_outbound = check_recipient_access $local_access, reject
  48. local_inbound = check_sender_access $local_access, reject
  49. domain_outbound = check_sender_access $address_domain_outbound, reject
  50. domain_inbound = check_recipient_access $address_domain_inbound, reject
  51.  
  52. # domain classes
  53. etesa_domain_inbound = check_sender_access $etesa_domain, reject
  54. etesa_domain_outbound = check_recipient_access $etesa_domain, reject
  55.  
  56. #######################################################
  57. # /etc/postfix/etesa_domain:
  58. #######################################################
  59. /\@etesa\.com\.mx/ OK
  60.  
  61. #######################################################
  62. # /etc/postfix/address_domain_inbound
  63. #######################################################
  64. /\@etesa\.com\.mx/ etesa_domain_inbound
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement