View Single Post
  #3  
Old 11th April 2011, 00:21
Scratchpad Scratchpad is offline
Junior Member
 
Join Date: Apr 2011
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Ahh, this has really got me boggled.

When I telnet in, I can authenticate using AUTH PLAIN, but, still get the relay access denied error....

Code:
[root@fox named]# telnet mail.local-example.com 25
Connected to mail.local-example.com (xxx.xxx.xxx.xxx).
Escape character is '^]'.
220 mail.local-example.com ESMTP
EHLO remote-client-example.com
250-mail.local-example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
AUTH PLAIN <CREDENTIALS_HERE_IN_BASE64>
235 2.0.0 Authentication successful
mail from:user@local-example.com
250 2.1.0 Ok
rcpt to:user@remote-example.com
554 5.7.1 <user@remote-example.com>: Relay access denied
quit
221 2.0.0 Bye
Connection closed by foreign host.
With the following result in the maillog:

Code:
Apr 10 17:26:44 srv postfix/smtpd[17984]: connect from <CLIENT_DNS_ADDRESS>[<CLIENT_IP_ADDRESS>]
Apr 10 17:26:51 srv dovecot: auth(default): client in: AUTH#0111#011PLAIN#011service=smtp#011resp=<CREDENTIALS_IN_BASE64>
Apr 10 17:26:51 srv dovecot: auth-worker(default): sql(user@local-example.com): query: SELECT username, password FROM mailbox WHERE username = 'user@local-example.com'
Apr 10 17:26:51 srv dovecot: auth(default): client out: OK#0111#011user=user@local-example.com#011username=user@local-example.com
Apr 10 17:27:03 srv postfix/smtpd[17984]: NOQUEUE: reject: RCPT from <CLIENT_DNS_ADDRESS>[<CLIENT_IP_ADDRESS>]: 554 5.7.1 <user@remote-example.com>: Relay access denied; from=<user@local-example.com> to=<user@remote-example.com> proto ESMTP helo=<client.client-example.com>
Apr 10 17:27:04 srv postfix/smtpd[17984]: disconnect from <CLIENT_DNS_ADDRESS>[<CLIENT_IP_ADDRESS>]
Reply With Quote