Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.cf:
- virtual_mailbox_domains =
- proxy:mysql:/etc/postfix/sql/virtual_domains_maps.cf
- virtual_alias_maps =
- proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf,
- proxy:mysql:/etc/postfix/sql/virtual_alias_domain_maps.cf,
- proxy:mysql:/etc/postfix/sql/virtual_alias_domain_catchall_maps.cf
- virtual_mailbox_maps =
- proxy:mysql:/etc/postfix/sql/virtual_mailbox_maps.cf,
- proxy:mysql:/etc/postfix/sql/virtual_alias_domain_mailbox_maps.cf
- queue_directory = /var/spool/postfix
- command_directory = /usr/sbin
- daemon_directory = /usr/libexec/postfix
- data_directory = /var/lib/postfix
- mail_owner = postfix
- myhostname = emx.olma.ru
- inet_interfaces = all
- inet_protocols = all
- mydestination = $myhostname, localhost.$mydomain, localhost
- unknown_local_recipient_reject_code = 550
- mynetworks_style = host
- mynetworks = 127.0.0.0/8, 10.123.0.0/16
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- debug_peer_level = 2
- sendmail_path = /usr/sbin/sendmail.postfix
- newaliases_path = /usr/bin/newaliases.postfix
- mailq_path = /usr/bin/mailq.postfix
- setgid_group = postdrop
- html_directory = no
- manpage_directory = /usr/share/man
- sample_directory = /usr/share/doc/postfix-2.10.1/samples
- readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
- smtpd_tls_auth_only = no
- smtpd_banner = $myhostname ESMTP
- smtpd_helo_required = yes
- smtpd_sasl_path = private/auth
- smtpd_sasl_type = dovecot
- smtpd_sasl_auth_enable = yes
- smtpd_tls_cert_file = /etc/pki/dovecot/mxcertca.crt
- smtpd_tls_key_file = /etc/pki/dovecot/mx.key
- smtpd_tls_security_level = may
- smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
- strict_rfc821_envelopes = yes
- mailbox_size_limit = 409600000
- virtual_transport = lmtp:unix:private/dovecot-lmtp
- local_transport = maildrop:
- smtpd_sender_login_maps =
- proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf
- smtpd_helo_restrictions =
- permit_mynetworks,
- reject_non_fqdn_helo_hostname,
- reject_invalid_helo_hostname,
- permit
- smtpd_sender_restrictions =
- permit_mynetworks,
- reject_sender_login_mismatch,
- permit_sasl_authenticated,
- reject_unlisted_sender,
- reject_non_fqdn_sender,
- reject_unknown_sender_domain,
- permit
- smtpd_recipient_restrictions =
- permit_sasl_authenticated,
- reject_unauth_pipelining,
- reject_non_fqdn_recipient,
- reject_unknown_recipient_domain,
- permit_mynetworks,
- reject_unauth_destination,
- check_policy_service unix:private/policy,
- check_sender_access
- pcre:/etc/postfix/sender_access,
- permit
- maildrop_destination_recipient_limit = 1
- sender_bcc_maps = regexp:/etc/postfix/backup_outgoing
- recipient_bcc_maps = regexp:/etc/postfix/backup_incoming
- master.cf
- #
- # Postfix master process configuration file. For details on the format
- # of the file, see the master(5) manual page (command: "man 5 master").
- #
- # Do not forget to execute "postfix reload" after editing this file.
- #
- # ==========================================================================
- # service type private unpriv chroot wakeup maxproc command + args
- # (yes) (yes) (yes) (never) (100)
- # ==========================================================================
- smtp inet n - n - - smtpd
- smtps inet n - n - - smtpd
- -o syslog_name=postfix/smtps
- -o smtpd_tls_wrappermode=yes
- -o smtpd_sasl_auth_enable=yes
- -o smtpd_reject_unlisted_recipient=no
- -o smtpd_helo_restrictionsc=permit_mynetworks,reject_non_fqdn_helo_hostname,reject_invalid_helo_hostname,permit
- -o smtpd_sender_login_maps=proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf
- -o smtpd_sender_restrictions=reject_sender_login_mismatch,permit_sasl_authenticated,reject_unlisted_sender,reject_non_fqdn_sender,reject_unknown_sender_domain,permit
- -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject_unauth_pipelining,reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_mynetworks,reject_unauth_destination,permit
- submission inet n - n - - smtpd
- -o smtpd_tls_security_level=encrypt
- -o smtpd_sasl_auth_enable=yes
- -o smtpd_sasl_type=dovecot
- -o smtpd_sasl_path=private/auth
- -o smtpd_sasl_security_options=noanonymous
- -o smtpd_sasl_local_domain=$myhostname
- -o smtpd_client_restrictions=permit_sasl_authenticated,reject
- -o smtpd_sender_login_maps=proxy:mysql:/etc/postfix/sql/virtual_alias_maps.cf
- -o smtpd_sender_restrictions=reject_sender_login_mismatch
- -o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject
- #628 inet n - n - - qmqpd
- pickup unix n - n 60 1 pickup
- cleanup unix n - n - 0 cleanup
- qmgr unix n - n 300 1 qmgr
- #qmgr unix n - n 300 1 oqmgr
- tlsmgr unix - - n 1000? 1 tlsmgr
- rewrite unix - - n - - trivial-rewrite
- bounce unix - - n - 0 bounce
- defer unix - - n - 0 bounce
- trace unix - - n - 0 bounce
- verify unix - - n - 1 verify
- flush unix n - n 1000? 0 flush
- proxymap unix - - n - - proxymap
- proxywrite unix - - n - 1 proxymap
- smtp unix - - n - - smtp
- relay unix - - n - - smtp
- # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
- showq unix n - n - - showq
- error unix - - n - - error
- retry unix - - n - - error
- discard unix - - n - - discard
- local unix - n n - - local
- virtual unix - n n - - virtual
- lmtp unix - - n - - lmtp
- anvil unix - - n - 1 anvil
- scache unix - - n - 1 scache
- maildrop unix - n n - - pipe
- flags=DRhu user=dovecot argv=/bin/procmail -m RECIVER=${recipient} /etc/procmailrc
- policy unix - n n - 0 spawn user=nobody argv=/bin/python /usr/libexec/postfix/policyd-spf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement