p***@gmail.com
2016-03-18 14:18:57 UTC
I have set up a simple postfix on Ubuntu 14. It works fine when sending mail using 'mail' from the command line. However when I send from python on the same server, I get
match_hostname: mail4.exploreXXXX.com ~? 127.0.0.0/8
match_hostaddr: 104.153.210.XXX ~? 127.0.0.0/8
match_hostname: mail4.exploreXXXX.com ~? [::ffff:127.0.0.0]/104
match_hostaddr: 104.153.210.XXX ~? [::ffff:127.0.0.0]/104
match_hostname: mail4.exploreXXXX.com ~? [::1]/128
match_hostaddr: 104.153.210.XXX ~? [::1]/128
match_hostname: mail4.exploreXXXX.com ~? 104.153.210.0/24
match_hostaddr: 104.153.210.XXX ~? 104.153.210.0/24
lost connection after EHLO from mail4.exploreXXXX.com[104.153.210.XXX]
I use the default main.cf with this at the end
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail4.exploreXXXX.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliasesmyorigin = /etc/mailname
mydestination = mail4.explorejazz.com, localhost.explorejazz.com, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 104.153.210.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
I have done a lot of googling with no luck Is this something anyone can help with.
Thanks Peter
match_hostname: mail4.exploreXXXX.com ~? 127.0.0.0/8
match_hostaddr: 104.153.210.XXX ~? 127.0.0.0/8
match_hostname: mail4.exploreXXXX.com ~? [::ffff:127.0.0.0]/104
match_hostaddr: 104.153.210.XXX ~? [::ffff:127.0.0.0]/104
match_hostname: mail4.exploreXXXX.com ~? [::1]/128
match_hostaddr: 104.153.210.XXX ~? [::1]/128
match_hostname: mail4.exploreXXXX.com ~? 104.153.210.0/24
match_hostaddr: 104.153.210.XXX ~? 104.153.210.0/24
lost connection after EHLO from mail4.exploreXXXX.com[104.153.210.XXX]
I use the default main.cf with this at the end
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail4.exploreXXXX.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliasesmyorigin = /etc/mailname
mydestination = mail4.explorejazz.com, localhost.explorejazz.com, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 104.153.210.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
I have done a lot of googling with no luck Is this something anyone can help with.
Thanks Peter