Current File : //etc/postfix/main.cf |
# postfix config file
# uncomment for debugging if needed
# postfix main
mail_owner = postfix
setgid_group = postdrop
# postfix paths
html_directory = no
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
queue_directory = /var/spool/postfix
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
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
# network settings
inet_interfaces = all
mydomain = vps.obaba.shop
myhostname = vps.obaba.shop
mynetworks = 127.0.0.1, 103.120.179.231
mydestination = localhost.$mydomain, localhost, $myhostname
relay_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-relay_domains_maps.cf
# mail delivery
recipient_delimiter = +
# mappings
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#transport_maps = hash:/etc/postfix/transport
#local_recipient_maps =
# virtual setup
virtual_alias_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_alias_maps.cf,
regexp:/etc/sentora/configs/postfix/virtual_regexp
virtual_mailbox_base = /var/sentora/vmail
virtual_mailbox_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_mailbox_maps.cf
virtual_minimum_uid = 998
virtual_uid_maps = static:998
virtual_gid_maps = static:12
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
# debugging
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# authentication
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
# tls config
#smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
# Change mail.example.com.* to your host name
# rules restrictions
#smtpd_client_restrictions = permit_mynetworks, reject_multi_recipient_bounce, reject_unauth_pipelining,
smtpd_client_restrictions = permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
smtpd_helo_restrictions = permit_mynetworks, reject_invalid_hostname, permit
#smtpd_sender_restrictions =
smtpd_recipient_restrictions =
permit_sasl_authenticated,
reject_invalid_hostname,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_mynetworks,
reject_unauth_destination,
check_client_access hash:/etc/postfix/rbl_override,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client b.barracudacentral.org,
reject_rbl_client dnsbl-1.uceprotect.net,
permit
smtpd_helo_required = yes
unknown_local_recipient_reject_code = 550
disable_vrfy_command = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_banner = $myhostname ESMTP Postfix
message_size_limit = 20480000
smtpd_sender_restrictions = reject_unknown_sender_domain,reject_unlisted_sender
smtpd_delay_reject = yes
header_checks = regexp:/etc/postfix/header_checks
#receive_override_options=no_address_mappings
milter_protocol = 2
milter_default_action = accept
smtpd_milters = inet:localhost:12301
non_smtpd_milters = inet:localhost:12301
body_checks = regexp:/etc/postfix/body_checks
enable_original_recipient=No
# mailqueue lifetime value chabges start
maximal_queue_lifetime = 15m
maximal_backoff_time = 10m
minimal_backoff_time = 5m
queue_run_delay = 5m
delay_warning_time = 10m
soft_bounce=yes
# mailqueue lifetime value chabges end
meta_directory = /etc/postfix
data_directory = /var/lib/postfix
shlib_directory = no
inet_protocols = ipv4
smtp_use_tls = yes
smtpd_use_tls = yes
smtpd_tls_auth_only = no
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_tls_loglevel = 1
smtpd_tls_cert_file=/etc/letsencrypt/live/vps.obaba.shop/cert.pem
smtpd_tls_CAfile=/etc/letsencrypt/live/vps.obaba.shop/chain.pem
smtpd_tls_key_file=/etc/letsencrypt/live/vps.obaba.shop/privkey.pem