Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #################################################################
- # /etc/postfix/main.cf:
- #################################################################
- virtual_mailbox_base = /var/vmail
- virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/virtual_mailbox_domains.cf
- virtual_uid_maps = proxy:mysql:/etc/postfix/sql/virtual_uid_maps.cf
- virtual_gid_maps = proxy:mysql:/etc/postfix/sql/virtual_gid_maps.cf
- virtual_mailbox_maps = proxy:mysql:/etc/postfix/sql/virtual_mailbox_recipients.cf
- virtual_alias_maps = proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf
- dovecot_destination_recipient_limit = 1
- virtual_transport = dovecot
- header_checks = regexp:/etc/postfix/header_checks
- smtpd_sender_restrictions = reject_non_fqdn_sender,
- reject_non_fqdn_recipient,
- reject_unknown_sender_domain,
- reject_unauth_pipelining,
- permit_mynetworks,
- reject_unknown_client,
- permit
- smtpd_recipient_restrictions = check_sender_access proxy:mysql:/etc/postfix/sql/sender_access.cf,
- check_recipient_access proxy:mysql:/etc/postfix/sql/recipient_access.cf,
- reject
- local_access = proxy:mysql:/etc/postfix/sql/local_access.cf
- domain_access = proxy:mysql:/etc/postfix/sql/domain_access.cf
- all = permit
- disabled = reject
- address_domain_inbound = regexp:/etc/postfix/address_domain_inbound
- address_domain_outbound = regexp:/etc/postfix/address_domain_outbound
- etesa_domain = regexp:/etc/postfix/etesa_domain
- 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
- all_inbound = $all
- all_outbound = $all
- disabled_inbound = $disabled
- disabled_oubound = $disabled
- local_outbound = check_recipient_access $local_access, reject
- local_inbound = check_sender_access $local_access, reject
- domain_outbound = check_sender_access $address_domain_outbound, reject
- domain_inbound = check_recipient_access $address_domain_inbound, reject
- # domain classes
- etesa_domain_inbound = check_sender_access $etesa_domain, reject
- etesa_domain_outbound = check_recipient_access $etesa_domain, reject
- #######################################################
- # /etc/postfix/etesa_domain:
- #######################################################
- /\@etesa\.com\.mx/ OK
- #######################################################
- # /etc/postfix/address_domain_inbound
- #######################################################
- /\@etesa\.com\.mx/ etesa_domain_inbound
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement