2021-06-02 12:12:35 +02:00
|
|
|
Index: conf/main.cf
|
|
|
|
===================================================================
|
|
|
|
--- conf/main.cf.orig
|
|
|
|
+++ conf/main.cf
|
|
|
|
@@ -278,7 +278,7 @@ unknown_local_recipient_reject_code = 55
|
2020-12-24 08:17:02 +01:00
|
|
|
#
|
2021-06-02 12:12:35 +02:00
|
|
|
#mynetworks = 168.100.3.0/28, 127.0.0.0/8
|
2020-12-24 08:17:02 +01:00
|
|
|
#mynetworks = $config_directory/mynetworks
|
|
|
|
-#mynetworks = hash:/etc/postfix/network_table
|
|
|
|
+#mynetworks = lmdb:/etc/postfix/network_table
|
|
|
|
|
|
|
|
# The relay_domains parameter restricts what destinations this system will
|
|
|
|
# relay mail to. See the smtpd_recipient_restrictions description in
|
2021-06-02 12:12:35 +02:00
|
|
|
@@ -343,7 +343,7 @@ unknown_local_recipient_reject_code = 55
|
2020-12-24 08:17:02 +01:00
|
|
|
# In the left-hand side, specify an @domain.tld wild-card, or specify
|
|
|
|
# a user@domain.tld address.
|
|
|
|
#
|
|
|
|
-#relay_recipient_maps = hash:/etc/postfix/relay_recipients
|
|
|
|
+#relay_recipient_maps = lmdb:/etc/postfix/relay_recipients
|
|
|
|
|
|
|
|
# INPUT RATE CONTROL
|
|
|
|
#
|
2021-06-02 12:12:35 +02:00
|
|
|
@@ -398,8 +398,8 @@ unknown_local_recipient_reject_code = 55
|
2020-12-24 08:17:02 +01:00
|
|
|
# "postfix reload" to eliminate the delay.
|
|
|
|
#
|
|
|
|
#alias_maps = dbm:/etc/aliases
|
|
|
|
-#alias_maps = hash:/etc/aliases
|
|
|
|
-#alias_maps = hash:/etc/aliases, nis:mail.aliases
|
|
|
|
+#alias_maps = lmdb:/etc/aliases
|
|
|
|
+#alias_maps = lmdb:/etc/aliases, nis:mail.aliases
|
|
|
|
#alias_maps = netinfo:/aliases
|
|
|
|
|
|
|
|
# The alias_database parameter specifies the alias database(s) that
|
2021-06-02 12:12:35 +02:00
|
|
|
@@ -409,8 +409,8 @@ unknown_local_recipient_reject_code = 55
|
2020-12-24 08:17:02 +01:00
|
|
|
#
|
|
|
|
#alias_database = dbm:/etc/aliases
|
|
|
|
#alias_database = dbm:/etc/mail/aliases
|
|
|
|
-#alias_database = hash:/etc/aliases
|
|
|
|
-#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
|
|
|
|
+#alias_database = lmdb:/etc/aliases
|
|
|
|
+#alias_database = lmdb:/etc/aliases, lmdb:/opt/majordomo/aliases
|
|
|
|
|
|
|
|
# ADDRESS EXTENSIONS (e.g., user+foo)
|
|
|
|
#
|
2021-06-02 12:12:35 +02:00
|
|
|
@@ -567,6 +567,7 @@ unknown_local_recipient_reject_code = 55
|
2014-06-28 01:38:12 +02:00
|
|
|
#
|
|
|
|
#smtpd_banner = $myhostname ESMTP $mail_name
|
|
|
|
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
|
|
|
|
+smtpd_banner = $myhostname ESMTP
|
|
|
|
|
|
|
|
# PARALLEL DELIVERY TO THE SAME DESTINATION
|
|
|
|
#
|
2021-06-26 14:18:59 +02:00
|
|
|
@@ -673,4 +674,141 @@ sample_directory =
|
2014-06-28 01:38:12 +02:00
|
|
|
# readme_directory: The location of the Postfix README files.
|
2011-05-15 16:21:14 +02:00
|
|
|
#
|
|
|
|
readme_directory =
|
|
|
|
+
|
2017-04-20 00:34:52 +02:00
|
|
|
+############################################################
|
|
|
|
+#
|
|
|
|
+# before changing values manually consider editing
|
|
|
|
+# /etc/sysconfig/postfix
|
|
|
|
+# and run
|
|
|
|
+# config.postfix
|
|
|
|
+#
|
|
|
|
+# if you miss a feature of config.postfix then just send a
|
|
|
|
+# mail to chris@computersalat.de
|
|
|
|
+# patches for new feature(s) are also welcome :)
|
|
|
|
+#
|
|
|
|
+############################################################
|
|
|
|
+
|
2011-05-15 16:21:14 +02:00
|
|
|
+biff = no
|
|
|
|
+content_filter =
|
|
|
|
+delay_warning_time = 0h
|
|
|
|
+disable_dns_lookups = no
|
|
|
|
+disable_mime_output_conversion = no
|
2014-06-28 01:38:12 +02:00
|
|
|
+disable_vrfy_command = yes
|
2011-05-15 16:21:14 +02:00
|
|
|
+inet_interfaces = all
|
2014-06-28 01:38:12 +02:00
|
|
|
inet_protocols = ipv4
|
2011-05-15 16:21:14 +02:00
|
|
|
+masquerade_classes = envelope_sender, header_sender, header_recipient
|
|
|
|
+masquerade_domains =
|
|
|
|
+masquerade_exceptions =
|
|
|
|
+mydestination = $myhostname, localhost.$mydomain
|
|
|
|
+myhostname = localhost
|
|
|
|
+mynetworks_style = subnet
|
|
|
|
+relayhost =
|
|
|
|
+
|
|
|
|
+alias_maps =
|
|
|
|
+canonical_maps =
|
|
|
|
+relocated_maps =
|
|
|
|
+sender_canonical_maps =
|
|
|
|
+transport_maps =
|
|
|
|
+mail_spool_directory = /var/mail
|
|
|
|
+message_strip_characters =
|
|
|
|
+defer_transports =
|
|
|
|
+mailbox_command =
|
|
|
|
+mailbox_transport =
|
|
|
|
+mailbox_size_limit = 0
|
|
|
|
+message_size_limit = 0
|
|
|
|
+strict_8bitmime = no
|
|
|
|
+strict_rfc821_envelopes = no
|
2014-06-28 01:38:12 +02:00
|
|
|
+smtpd_delay_reject = yes
|
2011-05-15 16:21:14 +02:00
|
|
|
+smtpd_helo_required = no
|
|
|
|
+
|
|
|
|
+smtpd_client_restrictions =
|
|
|
|
+
|
|
|
|
+smtpd_helo_restrictions =
|
|
|
|
+
|
|
|
|
+smtpd_sender_restrictions =
|
|
|
|
+
|
|
|
|
+smtpd_recipient_restrictions =
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+############################################################
|
|
|
|
+# SASL stuff
|
|
|
|
+############################################################
|
|
|
|
+smtp_sasl_auth_enable = no
|
2011-05-17 22:15:24 +02:00
|
|
|
+smtp_sasl_security_options =
|
|
|
|
+smtp_sasl_password_maps =
|
2011-05-15 16:21:14 +02:00
|
|
|
+smtpd_sasl_auth_enable = no
|
2018-10-30 21:13:37 +01:00
|
|
|
+# cyrus : smtpd_sasl_type = cyrus
|
|
|
|
+# smtpd_sasl_path = smtpd
|
|
|
|
+# dovecot : smtpd_sasl_type = dovecot
|
|
|
|
+# smtpd_sasl_path = private/auth
|
|
|
|
+smtpd_sasl_type = cyrus
|
|
|
|
+smtpd_sasl_path = smtpd
|
2011-05-15 16:21:14 +02:00
|
|
|
+############################################################
|
|
|
|
+# TLS stuff
|
|
|
|
+############################################################
|
|
|
|
+#tls_append_default_CA = no
|
|
|
|
+relay_clientcerts =
|
|
|
|
+#tls_random_source = dev:/dev/urandom
|
|
|
|
+
|
|
|
|
+smtp_use_tls = no
|
|
|
|
+#smtp_tls_loglevel = 0
|
|
|
|
+smtp_enforce_tls = no
|
|
|
|
+smtp_tls_CAfile =
|
|
|
|
+smtp_tls_CApath =
|
|
|
|
+smtp_tls_cert_file =
|
|
|
|
+smtp_tls_key_file =
|
2020-12-24 08:17:02 +01:00
|
|
|
+#smtp_tls_policy_maps = lmdb:/etc/postfix/tls_policy
|
2011-05-15 16:21:14 +02:00
|
|
|
+#smtp_tls_session_cache_timeout = 3600s
|
|
|
|
+smtp_tls_session_cache_database =
|
|
|
|
+
|
|
|
|
+smtpd_use_tls = no
|
|
|
|
+#smtpd_tls_loglevel = 0
|
|
|
|
+smtpd_tls_CAfile =
|
|
|
|
+smtpd_tls_CApath =
|
|
|
|
+smtpd_tls_cert_file =
|
|
|
|
+smtpd_tls_key_file =
|
|
|
|
+smtpd_tls_ask_ccert = no
|
2018-11-24 18:23:43 +01:00
|
|
|
+smtpd_tls_exclude_ciphers = RC4
|
2011-05-15 16:21:14 +02:00
|
|
|
+smtpd_tls_received_header = no
|
|
|
|
+############################################################
|
|
|
|
+# Start MySQL from postfixwiki.org
|
|
|
|
+############################################################
|
2020-12-24 08:17:02 +01:00
|
|
|
+relay_domains = $mydestination, lmdb:/etc/postfix/relay
|
2021-06-26 14:18:59 +02:00
|
|
|
+relay_recipient_maps = lmdb:/etc/postfix/relay_recipients
|
2019-01-20 23:14:18 +01:00
|
|
|
+#virtual_alias_domains =
|
2020-12-24 08:17:02 +01:00
|
|
|
+#virtual_alias_maps = lmdb:/etc/postfix/virtual
|
2011-05-15 16:21:14 +02:00
|
|
|
+#virtual_uid_maps = static:303
|
|
|
|
+#virtual_gid_maps = static:303
|
|
|
|
+#virtual_minimum_uid = 303
|
|
|
|
+#virtual_mailbox_base = /srv/maildirs
|
|
|
|
+#virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
|
|
|
|
+#virtual_mailbox_limit = 0
|
|
|
|
+#virtual_mailbox_limit_inbox = no
|
|
|
|
+#virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
|
2014-06-28 01:38:12 +02:00
|
|
|
+## For dovecot LMTP replace 'virtual' with 'lmtp:unix:private/dovecot-lmtp'
|
2011-05-15 16:21:14 +02:00
|
|
|
+#virtual_transport = virtual
|
2014-06-28 01:38:12 +02:00
|
|
|
+## Additional for quota support
|
|
|
|
+#virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
|
|
|
|
+#virtual_mailbox_limit_override = yes
|
2011-05-15 16:21:14 +02:00
|
|
|
+### Needs Maildir++ compatible IMAP servers, like Courier-IMAP
|
|
|
|
+#virtual_maildir_filter = yes
|
2020-12-24 08:17:02 +01:00
|
|
|
+#virtual_maildir_filter_maps = lmdb:/etc/postfix/vfilter
|
2011-05-15 16:21:14 +02:00
|
|
|
+#virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
|
2020-12-24 08:17:02 +01:00
|
|
|
+#virtual_maildir_limit_message_maps = lmdb:/etc/postfix/vmsg
|
2011-05-15 16:21:14 +02:00
|
|
|
+#virtual_overquota_bounce = yes
|
|
|
|
+#virtual_trash_count = yes
|
|
|
|
+#virtual_trash_name = ".Trash"
|
|
|
|
+############################################################
|
|
|
|
+# End MySQL from postfixwiki.org
|
|
|
|
+############################################################
|
|
|
|
+# Rewrite reject codes
|
|
|
|
+############################################################
|
|
|
|
+#unknown_address_reject_code = 550
|
|
|
|
+#unknown_client_reject_code = 550
|
|
|
|
+#unknown_hostname_reject_code = 550
|
2018-11-24 18:23:43 +01:00
|
|
|
+#unverified_recipient_reject_code = 550
|
2011-05-15 16:21:14 +02:00
|
|
|
+#soft_bounce = yes
|
|
|
|
+############################################################
|
|
|
|
+#debug_peer_list = example.com
|
|
|
|
+#debug_peer_level = 3
|
|
|
|
+
|