Configuration files and commands for postfix
Configuration Files for Postfix
myhostname = mail.example.com mydomain = example.com myorigin = $mydomain inet_interfaces = all relayhost = [smtp.example.com]:587 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination
smtp inet n - y - - smtpd submission inet n - y - - smtpd -o syslog_name=postfix/submission -o smtpd_etrn_restrictions=reject
@example.com [smtp.example.com]:587
postmaster@example.com postmaster webmaster@example.com webmaster
example.com smtp:[smtp.example.com]:587
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem smtpd_tls_key_file = /etc/ssl/private/postfix.key
Postfix Commands
Example Workflow
Conclusion
Last updated