Ne puvant pas joindre le fichier, voici mon fichier main.cf.
[i]# See /usr/share/postfix/main.cf.dist for a commented, more complete version
Debian specific: Specifying a file name will cause the first
line of that file to be used as the name. The Debian default
is /etc/mailname.
#myorigin = /etc/mailname
#smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
appending .domain is the MUA’s job.
append_dot_mydomain = no
Uncomment the next line to generate “delayed mail” warnings
#delay_warning_time = 4h
TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
information on enabling SSL in the smtp client.
myhostname = mail.mondomain.lan
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mondomain.lan, mail.mondomaine.lan, localhost.mondomain.lan, localhost
relayhost =
mynetworks = 206.62.15.4, 127.0.0.0/8
#mynetworks = 206.62.15.0/24, 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
#############
#Analyse des entetes et des pieces jointes aux mails
header_checks = regexp:/etc/postfix/header_checks
#Analyse du corps des mails
body_checks = regexp:/etc/postfix/body_checks
#Restristions sur les noms d’hotes passes par la commande HELO/EHLO
smtpd_delay_reject = no
smtpd_helo_required = yes
smtpd_helo_restrictions =
permit_mynetworks,
reject_non_fqdn_hostname,
reject_unknown_hostname,
reject_invalid_hostname,
permit
#Respect de la norme RFC pour commandes MAIL FROM, RCPT TO ce qui bloque spam mais aussi courier mal i
mplement
strict_rfc821_envelopes = yes
#Restrictions sur le champ MAIL FROM se connectant au serveur postfix
smtpd_recipient_restrictions =
permit_mynetworks,
reject_unauth_destination,
check_recipient_access hash:/etc/postfix/access
Postgrey
check_policy_service inet:127.0.0.1:60000,
reject_rbl_client sbl-xbl.spamhaus.org
#Rejet des sites reconnus comme Blacklist
smtpd_client_restrictions =
permit_mynetworks,
hash:/etc/postfix/access,
reject_unknown_client,
reject_rbl_client rblplus.mailabuse.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client relays.mailabuse.org,
reject_rbl_client blackholes.mailabuse.org,
permit
smtpd_sender_restrictions =
permit_mynetworks,
hash:/etc/postfix/access,
reject_unknown_sender_domain,
reject_non_fqdn_sender,
check_sender_access, hash:/etc/postfix/access,
reject_rbl_client rblplus.mailabuse.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client relays.mailabuse.org,
reject_rbl_client blackholes.mailabuse.org,
permit
unknown_local_recipient_reject_code = 550
unknown_address_reject_code = 550
#Scan le mail avec l’antivirus Amavis
content_filter=amavis:
content_filter=smtp-amavis:[127.0.0.1]:10024[/i]