Browse Source

working configuration for sympa with incomming mail

master
parent
commit
660e10d494
1 changed files with 18 additions and 16 deletions
  1. +18
    -16
      templates/main.cf.j2

+ 18
- 16
templates/main.cf.j2 View File

@@ -43,24 +43,11 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_security_level = may smtp_tls_security_level = may




### transport configuration

relay_domains = hash:/etc/postfix/transport_maps
transport_maps =
hash:/etc/postfix/transport_maps,
{% if postfix_with_sympa %}
hash:/etc/postfix/transport.sympa,
hash:/var/lib/sympa/transport,
hash:/etc/postfix/virtual.sympa,
{% endif %}




### rules and restricitons ### rules and restricitons


message_size_limit = 52428800 message_size_limit = 52428800



# some rules from http://www.postfix.org/SMTPD_ACCESS_README.html # some rules from http://www.postfix.org/SMTPD_ACCESS_README.html


# Allow connections from trusted networks only. # Allow connections from trusted networks only.
@@ -109,6 +96,7 @@ smtpd_end_of_data_restrictions = check_policy_service unix:private/policy
#} #}





### DKIM and DMARC ### DKIM and DMARC


non_smtpd_milters = non_smtpd_milters =
@@ -116,7 +104,7 @@ non_smtpd_milters =
unix:/run/opendkim/opendkim.sock, unix:/run/opendkim/opendkim.sock,
{% endif %} {% endif %}
{% if postfix_with_opendmarc %} {% if postfix_with_opendmarc %}
unix:/run/opendmarc/opendmarc.sock
unix:/run/opendmarc/opendmarc.sock,
{% endif %} {% endif %}


smtpd_milters = smtpd_milters =
@@ -124,10 +112,24 @@ smtpd_milters =
unix:/run/opendkim/opendkim.sock, unix:/run/opendkim/opendkim.sock,
{% endif %} {% endif %}
{% if postfix_with_opendmarc %} {% if postfix_with_opendmarc %}
unix:/run/opendmarc/opendmarc.sock
unix:/run/opendmarc/opendmarc.sock,
{% endif %} {% endif %}





### transport configuration

relay_domains =
hash:/etc/postfix/transport_maps,
transport_maps =
hash:/etc/postfix/transport_maps,
{% if postfix_with_sympa %}
hash:/etc/postfix/transport.sympa,
hash:/var/lib/sympa/transport,
{% endif %}



### Virtual Domain Hosting ### Virtual Domain Hosting


virtual_alias_domains = virtual_alias_domains =
@@ -150,7 +152,7 @@ virtual_mailbox_domains =
proxy:mysql:/etc/postfix/postfixadmin-sql/mysql_virtual_domains_maps.cf, proxy:mysql:/etc/postfix/postfixadmin-sql/mysql_virtual_domains_maps.cf,
{% endif %} {% endif %}
{% if postfix_with_sympa %} {% if postfix_with_sympa %}
hash:/etc/postfix/domains.sympa,
hash:/etc/postfix/transport.sympa,
{% endif %} {% endif %}


virtual_mailbox_maps = virtual_mailbox_maps =


Loading…
Cancel
Save