I get 2 errors from the esmtp daemon when I connect to the SMTP daemon 
from a remote host

For example if I connect locally

[vmail@spiderman etc]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.ipcc.ca ESMTP
EHLO me
250-mail.ipcc.ca Ok.
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN X-NETSCAPE-HAS-BUGS
250-XVERP=Courier
250-XEXDATA
250-XSECURITY=NONE,STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE
250 DSN
AUTH PLAIN
535 Authentication failed.

this is odd, but because I am local I can still go ahead and send a MAIL 
FROM: and RCPT TO: commands and the mail is relayed out.  From our 
remote site:

[apple1:~] davida% telnet mail.ipcc.ca 25
Trying 207.219.210.156...
Connected to mail.ipcc.ca.
Escape character is '^]'.
220 ******************
EHLO www.ticoon.com
502 ESMTP command error
HELO www.ticoon.com
250-mail.ipcc.ca Ok.
250-AUTH PLAIN LOGIN CRAM-MD5
250-AUTH=PLAIN LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS
250-XVERP=Courier
250-XEXDATA
250-XSECURITY=NONE,STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE
250 DSN
AUTH PLAIN
502 ESMTP command error
AUTH LOGIn
502 ESMTP command error
MAIL FROM:<[EMAIL PROTECTED]>
250 Ok.
RCPT TO:<[EMAIL PROTECTED]>
513 Relaying denied.

I don't understand why the EHLO fails on the remote connection, why the 
220 response is ***** and why the error from AUTH is now 502 instead of 
535 (not that that made more sense).  Here I cannot do anything, MAIL 
FROM: or ok, but RCPT TO: all generate 513 Relay Denied .... but it wont 
let me AUTH

In the maillog the errors for the local user show as
Jul 17 16:20:28 spiderman courieresmtpd: 
error,relay=::ffff:127.0.0.1,msg="535 Authentication failed.",cmd: AUTH 
PLAIN

but the remote commands show as
Jul 17 16:38:27 spiderman courieresmtpd: 
error,relay=::ffff:209.82.14.99,msg="502 ESMTP command error",cmd: XXXX 
apple1
Jul 17 16:38:35 spiderman courieresmtpd: 
error,relay=::ffff:209.82.14.99,from=<[EMAIL PROTECTED]>,to=<davida@ticoon.
com>: 513 Relaying denied.


currently the smtpaccess file is configured as
# By default, enable relaying for localhost.
127.0.0.1       allow,RELAYCLIENT

# allow for this host internal IP
192.168.24.220  allow,RELAYCLIENT
# allow for this host www IP
207.219.210.156 allow,RELAYCLIENT

# ticoon.com
# 209.82.14.99   allow,RELAYCLIENT

# Allow relaying for all.
0       allow,RELAYCLIENT

I commented out the Ticoon IP address because I wanted to test the 
access my clients will using to connect from various dialup addresses so 
I need to have them SMTP AUTH.

the important parts of esmtpd are;

AUTH_REQUIRED=0
MAILUSER=vmail
MAILGROUP=vmail
PORT=smtp
ACCESSFILE=${sysconfdir}/smtpaccess

AUTHMODULES="authdaemon"
ESMTPAUTH="PLAIN LOGIN CRAM-MD5"

ESMTPAUTH_TLS=""

ESMTPDSTART=YES


I don't know what else to include here.  SMTP connections with 
recipients to local users works fine, it is only the authenticated relay 
outbound that does not work.

Please do not tell me it should work, I know it should work, but it does 
not!

---
[EMAIL PROTECTED]
(416) 513-9524 x263

www.ticoon.com
Ticoon Technology Inc.
67 Yonge Street, Suite 602
Toronto, ON  M5E 1J8



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to