2020-10-31 17:19:13 +00:00
|
|
|
## STANDARD POSTFIX CONFIG PARAMS ###
|
|
|
|
|
2020-10-27 11:21:10 +00:00
|
|
|
queue_directory = /var/spool/postfix
|
|
|
|
command_directory = /usr/sbin
|
2020-10-31 17:19:13 +00:00
|
|
|
daemon_directory = /usr/lib/postfix/sbin
|
2020-10-27 11:21:10 +00:00
|
|
|
data_directory = /var/lib/postfix
|
|
|
|
mail_owner = postfix
|
2020-11-22 19:14:59 +00:00
|
|
|
myhostname =
|
|
|
|
mydomain =
|
2020-10-27 11:21:10 +00:00
|
|
|
myorigin = $myhostname
|
|
|
|
inet_interfaces = all
|
|
|
|
inet_protocols = all
|
|
|
|
mydestination = $myhostname, localhost.$mydomain, localhost
|
|
|
|
unknown_local_recipient_reject_code = 550
|
|
|
|
mynetworks = 127.0.0.0/8, [::1]/128
|
2020-11-07 17:43:25 +00:00
|
|
|
alias_maps = hash:/etc/mail/postfix/aliases
|
2020-10-27 11:21:10 +00:00
|
|
|
|
2020-10-31 17:19:13 +00:00
|
|
|
mailbox_command = /usr/lib/dovecot/deliver
|
2020-10-27 11:21:10 +00:00
|
|
|
|
|
|
|
debug_peer_level = 2
|
|
|
|
debugger_command =
|
|
|
|
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
|
|
|
|
ddd $daemon_directory/$process_name $process_id & sleep 5
|
|
|
|
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
|
|
|
|
|
|
|
|
smtp_tls_security_level = may
|
|
|
|
smtp_tls_loglevel = 1
|
|
|
|
smtp_tls_protocols = !SSLv2
|
|
|
|
smtp_tls_exclude_ciphers = EXPORT, LOW
|
|
|
|
|
|
|
|
### VIRTUAL MAIL CONFIG PARAMS ###
|
|
|
|
relay_domains = *
|
|
|
|
virtual_alias_maps = hash:/etc/mail/aliases
|
|
|
|
virtual_mailbox_domains = hash:/etc/mail/domains
|
|
|
|
virtual_mailbox_maps = hash:/etc/mail/mailboxes
|
|
|
|
|
|
|
|
virtual_mailbox_base = /var/mail
|
2020-10-31 17:19:13 +00:00
|
|
|
virtual_minimum_uid = 2222
|
2020-10-27 11:21:10 +00:00
|
|
|
virtual_transport = dovecot
|
2020-10-31 17:19:13 +00:00
|
|
|
virtual_uid_maps = static:2222
|
|
|
|
virtual_gid_maps = static:2222
|
2020-10-27 11:21:10 +00:00
|
|
|
|
|
|
|
dovecot_destination_recipient_limit = 1
|
|
|
|
|
|
|
|
milter_protocol = 2
|
|
|
|
milter_default_action = accept
|
|
|
|
smtpd_milters = inet:localhost:8891
|
2020-10-31 17:19:13 +00:00
|
|
|
non_smtpd_milters = inet:localhost:8891
|
2020-10-27 11:21:10 +00:00
|
|
|
|
|
|
|
smtpd_sasl_auth_enable = yes
|
|
|
|
smtpd_sasl_type = dovecot
|
|
|
|
smtpd_sasl_path = /var/run/dovecot/auth-client
|
|
|
|
smtpd_sasl_security_options = noanonymous
|
|
|
|
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
|
|
|
|
smtpd_sasl_local_domain = $mydomain
|
|
|
|
broken_sasl_auth_clients = yes
|
|
|
|
|
|
|
|
smtpd_tls_security_level = may
|
2020-11-22 19:14:59 +00:00
|
|
|
smtpd_tls_key_file =
|
|
|
|
smtpd_tls_cert_file =
|
2020-10-27 11:21:10 +00:00
|
|
|
smtpd_tls_loglevel = 1
|
|
|
|
smtpd_tls_session_cache_timeout = 3600s
|
|
|
|
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_tls_cache
|
|
|
|
smtpd_tls_protocols = $smtp_tls_protocols
|
|
|
|
tls_random_source = dev:/dev/urandom
|
|
|
|
tls_random_exchange_name = /var/lib/postfix/prng_exch
|
|
|
|
smtpd_tls_auth_only = yes
|
|
|
|
|
|
|
|
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
|
2020-10-31 17:19:13 +00:00
|
|
|
smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
|