Postfix - How to configure to send these emails?

Posted by Jon on Server Fault See other posts from Server Fault or by Jon
Published on 2012-11-15T09:58:37Z Indexed on 2012/11/15 11:07 UTC
Read the original article Hit count: 116

Filed under:

I want my mailserver to send mail from my local application "from" any user supplied email address "to" my own address, say "[email protected]". The MX records for "" actually point to a different server, even though the outgoing mainserver is running with mydomain set as "". Perhaps this is part of the problem?

postfix is currently causing a SMTPRecipientsRefused error within the python application. Can anyone point me to what to change in the configuration?


postconf -n:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination =,, , localhost, *
myhostname =
mynetworks = [::ffff:]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes

© Server Fault or respective owner

Related posts about email

Related posts about postfix