I'm trying to send e-mail from Thunderbird through my SMTP server using Postfix from a remote location to the server. I'm getting a Relay Access Denied when I try to do this. However, when I send e-mail from Thunderbird from a computer within the same LAN as the server, it works without a hitch. The mail.log file shows the following information:
Jun 6 08:42:04 nighthawk postfix/smtpd: NOQUEUE: reject: RCPT from unknown[22.214.171.124]: 554 <jcardarelli>: Relay access denied; from=<cconover> to=<jcardarelli> proto=ESMTP helo=<127> Jun 6 08:42:11 nighthawk postfix/smtpd: lost connection after RCPT from unknown[126.96.36.199] Jun 6 08:42:11 nighthawk postfix/smtpd: disconnect from unknown[188.8.131.52]
you need to enable authentication in postfix. Try this:
I have Cyrus SASL integrated and enabled with my installation of Postfix, as I use relayhost to send out mail. When I am sending mail from a computer on the same local network as the server, it prompts me for the password, and authenticates, sends the mail, and works just fine. However, when I am outside the local network, it doesn't even prompt me for the password. It simply gives me error 554.
I know we played around a lot with different settings to get our environment setup correctly (altough we layered LDAP into the mix). If I remember correctly, these were some of the relevant settings:
# SASL configuration smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $mydomain smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_relay_domains broken_sasl_auth_clients = yes relay_domains = *
Make sure you have permit_sasl_authenticated before permit_mynetworks in smtpd_recipient_restrictions.
If it ain't that obvious, a postconf -n never hurts.