ANNEXE 24 - Fichiers de configuration Postfix ============================================= ############################## ### /etc/postfix/main.cf : ### ############################## command_directory = /usr/sbin daemon_directory = /usr/lib/postfix program_directory = /usr/lib/postfix smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) setgid_group = postdrop biff = no append_dot_mydomain = no header_checks = regexp:/etc/postfix/conf/check_regexp_headers smtpd_helo_required = yes disable_vrfy_command = yes allow_untrusted_routing = no myhostname = mail.localhost mydomain = localhost myorigin = $mydomain mydestination = localhost, domain1, domain2 mynetworks = 127.0.0.0/8 inet_interface = $myhostname, domain1, domain2 relayhost = relaydomains = $mydestination # postalias /etc/aliases alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mailbox_command = mailbox_size_limit = 50000000 recipient_delimiter = + notify_classes = resource, software, bounce bounce_notice_recipient = postmaster ### Relaying and restrictions smtpd_restriction_classes = restrict_popbefsmtp restrict_popbefsmtp = check_client_access hash:/var/lib/pop-before-smtp/hosts smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, permit_mynetworks, reject_non_fqdn_sender, reject_non_fqdn_recipient, check_sender_access regexp:/etc/postfix/conf/access_regexp_senders, check_sender_access hash:/etc/postfix/conf/access_hash_senders, check_recipient_access regexp:/etc/postfix/conf/access_regexp_recipients, check_recipient_access regexp:/etc/postfix/conf/access_hash_recipients, reject_unauth_pipelining, reject_invalid_hostname, reject_unauth_destination #reject_non_fqdn_hostname #reject_unknown_client ### Vmail hosting transport_maps = hash:/etc/postfix/conf/vtransport virtual_mailbox_base = /var/mail/vhosts virtual_mailbox_maps = hash:/etc/postfix/conf/vmailboxes virtual_maps = hash:/etc/postfix/conf/valias virtual_minimum_uid = 200 # the vmail uid virtual_uid_maps = static:13001 # the mail gid virtual_gid_maps = static:8 ############################################### ### /etc/postfix/conf/access_regexp_senders ### ############################################### /[%!@].*[%!@]/ 550 Sender-specified routing rejected /@domain1/ restrict_popbefsmtp /@domain2/ restrict_popbefsmtp ############################################## ### /etc/postfix/conf/check_regexp_headers ### ############################################## /^Received:*/ IGNORE ################################ ### /etc/postfix/conf/valias ### ################################ # Required mail aliases for each virtual domain postmaster@domain1 un@domain1 root@domain1 un@domain1 mailer-daemon@domain1 un@domain1 postmaster@domain2 deux@domain2 root@domain2 deux@domain2 mailer-daemon@domain2 deux@domain2 # Aliases for domain1 user1@domain1 un@domain1 # Aliases for domain2 user2@domain2 deux@domain2 #################################### ### /etc/postfix/conf/vmailboxes ### #################################### # To prevent relay access denied errors domain1 required to prevent relay access denied errors domain2 required to prevent relay access denied errors # Primary mailboxes and users accounts un@domain1 @IP_domain1/mail/un deux@domain2 @IP_domain2/mail/deux #################################### ### /etc/postfix/conf/vtransport ### #################################### domain1 virtual domain2 virtual