### General ### # network segments to consider internal mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 # interfaces & protocols to listen on inet_interfaces = all inet_protocols = all # what backend to use to deliver local & virtual mail local_transport = lmtp:unix:private/dovecot-lmtp # hosts to relay for relayhost = # whether to send "new mail" notifications to users # on by default, but we turn off because we're not using system users biff = no # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on # fresh installs. compatibility_level = 2 ### Domains ### # primary name of server myhostname = mailtest.alemor.org myorigin = $mydomain # domains to consider primary (local) endpoints mydestination = $myhostname, $mydomain, localhost.localdomain, localhost # domains to consider secondary (virtual) endpoints virtual_alias_domains = epic.alemor.org, home.alemor.org, alegre.alemor.org, daniel.alemor.org, fernando.alemor.org, juana.alemor.org, mario.alemor.org, moreno.alemor.org ### Users ### # get list of valid users from here instead of /etc/passwd local_recipient_maps = hash:/etc/postfix/users # get list of user aliases from this file virtual_alias_maps = hash:/etc/postfix/aliases # Address tag delimiter. If an email is sent to ${user}${delimiter}*, # the email is sent to ${user} if that address is not already explicitly defined. recipient_delimiter = - ### TLS ### # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # whether to allow or enforce TLS. Acceptable values are 'none', 'may', or 'encrypt'. smtpd_tls_security_level=may # where to find certs smtpd_tls_cert_file=/vol/ssl/fullchain.pem smtpd_tls_key_file=/vol/ssl/privkey.pem ### Anti-spam ### #smtpd_recipient_restrictions = reject_invalid_hostname, reject_unknown_recipient_domain, reject_unauth_destination, reject_rbl_client sbl.spamhaus.org, permit #smtpd_helo_restrictions = reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname ### SASL ### smtpd_sasl_type = dovecot # Can be an absolute path, or relative to $queue_directory # Debian/Ubuntu users: Postfix is setup by default to run chrooted, so it is best to leave it as-is below smtpd_sasl_path = private/auth # and the common settings to enable SASL: smtpd_sasl_auth_enable = yes # With Postfix version before 2.10, use smtpd_recipient_restrictions smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination