Postfix est un agent de transfert de mail (MTA) gratuit et open-source. Un MTA effectue le routage et la livraison du courrier electronique.
Selon des statistiques établies en août 2019 par E-Soft, Inc, environ 34% des serveurs mails sur Internet utilisent Postfix, ce qui en fait le second serveur mail le plus populaire derrière Exim.
Fichier de configuration principal de postfix
######################################## ######################################## ## ## ## Global Postfix configuration file. ## ## ## ######################################## ######################################## #============================# # LOCAL PATHNAME INFORMATION # #============================# queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix #=============================# # QUEUE AND PROCESS OWNERSHIP # #=============================# mail_owner = postfix #================================# # INTERNET HOST AND DOMAIN NAMES # #================================# myhostname = mail.domain.com mydomain = domain.com #==============# # SENDING MAIL # #==============# myorigin = $mydomain #================# # RECEIVING MAIL # #================# inet_interfaces = all inet_protocols = all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain #========================================# # REJECTING MAIL FOR UNKNOWN LOCAL USERS # #========================================# unknown_local_recipient_reject_code = 550 #=========================# # TRUST AND RELAY CONTROL # #=========================# mynetworks_style = subnet relay_domains = #======================# # INTERNET OR INTRANET # #======================# #===============================# # REJECTING UNKNOWN RELAY USERS # #===============================# #====================# # INPUT RATE CONTROL # #====================# #===================# # ADDRESS REWRITING # #===================# #================# # ALIAS DATABASE # #================# alias_maps = dbm:/etc/aliases alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases #=====================================# # ADDRESS EXTENSIONS (e.g., user+foo) # #=====================================# #=====================# # DELIVERY TO MAILBOX # #=====================# home_mailbox = Maildir/ #====================# # JUNK MAIL CONTROLS # #====================# #===================# # FAST ETRN SERVICE # #===================# #==============================# # SHOW SOFTWARE VERSION OR NOT # #==============================# #===========================================# # PARALLEL DELIVERY TO THE SAME DESTINATION # #===========================================# #===================# # DEBUGGING CONTROL # #===================# 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 #========================================# # INSTALL-TIME CONFIGURATION INFORMATION # #========================================# 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 #========================# # OpenDKIM configuration # #========================# smtpd_milters = inet:127.0.0.1:8891 non_smtpd_milters = $smtpd_milters milter_default_action = accept