You are not logged in.

#1 2006-06-06 12:46:10

bostoniman
Member
Registered: 2004-09-17
Posts: 213
Website

Postfix Relay Issues

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[22098]: NOQUEUE: reject: RCPT from unknown[65.120.80.8]: 554 <jcardarelli>: Relay access denied; from=<cconover> to=<jcardarelli> proto=ESMTP helo=<127>
Jun  6 08:42:11 nighthawk postfix/smtpd[22098]: lost connection after RCPT from unknown[65.120.80.8]
Jun  6 08:42:11 nighthawk postfix/smtpd[22098]: disconnect from unknown[65.120.80.8]

Offline

#2 2006-06-06 16:45:50

chane
Member
Registered: 2003-12-02
Posts: 93

Re: Postfix Relay Issues

you need to enable authentication in postfix.  Try this:

http://postfix.state-of-mind.de/patrick … /smtpauth/

Offline

#3 2006-06-06 19:23:30

bostoniman
Member
Registered: 2004-09-17
Posts: 213
Website

Re: Postfix Relay Issues

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.

Offline

#4 2006-06-07 00:58:59

chane
Member
Registered: 2003-12-02
Posts: 93

Re: Postfix Relay Issues

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 = *

Offline

#5 2006-06-07 01:04:47

bostoniman
Member
Registered: 2004-09-17
Posts: 213
Website

Re: Postfix Relay Issues

I'll try to add some of those that I don't already have.  I'll keep fiddling with it.

Offline

#6 2006-06-07 02:17:53

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,045

Re: Postfix Relay Issues

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.


1000

Offline

#7 2006-06-07 02:21:21

bostoniman
Member
Registered: 2004-09-17
Posts: 213
Website

Re: Postfix Relay Issues

I have it that way, thanks for the confirmation.

Offline

Board footer

Powered by FluxBB