Hi Claudio,
 
Thanks your reply.
 
Today, I realized what the auth_smtp working strange on my box.
 
I hope that I can clear you first from my testing steps on auth_smtp on my PC M$ OE6 :
 
1) Provide a correct uid & password to authenticate with qmail-ldap.
2) Send out 1 email.
3) This email sent without any problem, and I saw authenticated: on the email header.
4) Now, I'm going the modified the password on my OE6 SMTP out going auth setting.
5) Send Out 1 email.
6) This time, it still can sending out.
 
==============================
Step 1,2,3 Generated Following
==============================
tcpserver: status: 1/20
tcpserver: pid 357 from 192.168.0.2
tcpserver: ok 357 rods.local.net:192.168.0.80:25 :192.168.0.2::1396
qmail-smtpd 357: connection from 192.168.0.2 (unknown) to rods.local.net
qmail-smtpd 357: enabled options: starttls smtp-auth
qmail-smtpd 357: remote ehlo: dino
qmail-smtpd 357: max msg size: 0
qmail-smtpd 357: smtp auth
qmail-smtpd 357: auth login
qmail-smtpd 357: authentication success
qmail-smtpd 357: remote sent 'mail from': FROM: <
[EMAIL PROTECTED]>
qmail-smtpd 357: mail from:
[EMAIL PROTECTED]
qmail-smtpd 357: remote sent 'rcpt to': TO: <[EMAIL PROTECTED]>
qmail-smtpd 357: rcpt to:
[EMAIL PROTECTED]
qmail-smtpd 357: smtp data
qmail-smtpd 357: go ahead
qmail-smtpd 357: data bytes received: 1083
qmail-smtpd 357: message queued: 1069858252 qp 359
qmail-smtpd 357: quit, closing connection
tcpserver: end 357 status 0
tcpserver: status: 0/20
==============================
Step 4,5,6 Generated Following
==============================
tcpserver: status: 1/20
tcpserver: pid 385 from 192.168.0.2
tcpserver: ok 385 rods.local.net:192.168.0.80:25 :192.168.0.2::1407
qmail-smtpd 385: connection from 192.168.0.2 (unknown) to rods.local.net
qmail-smtpd 385: enabled options: starttls smtp-auth
qmail-smtpd 385: remote ehlo: dino
qmail-smtpd 385: max msg size: 0
qmail-smtpd 385: smtp auth
qmail-smtpd 385: auth login
tcpserver: status: 2/20
tcpserver: pid 387 from 192.168.0.2
tcpserver: ok 387 rods.local.net:192.168.0.80:25 :192.168.0.2::1408
qmail-smtpd 387: connection from 192.168.0.2 (unknown) to rods.local.net
qmail-smtpd 387: enabled options: starttls smtp-auth
qmail-smtpd 387: remote ehlo: dino
qmail-smtpd 387: max msg size: 0
qmail-smtpd 387: smtp auth
qmail-smtpd 387: auth login
qmail-smtpd 387: authentication success
qmail-smtpd 387: remote sent 'mail from': FROM: <[EMAIL PROTECTED]
>
qmail-smtpd 387: mail from:
[EMAIL PROTECTED]
qmail-smtpd 387: remote sent 'rcpt to': TO: <[EMAIL PROTECTED]>
qmail-smtpd 387: rcpt to:
[EMAIL PROTECTED]
qmail-smtpd 387: smtp data
qmail-smtpd 387: go ahead
qmail-smtpd 387: data bytes received: 1083
qmail-smtpd 387: message queued: 1069858442 qp 389
qmail-smtpd 387: quit, closing connection
tcpserver: end 387 status 0
tcpserver: status: 1/20
authentication failed: authentication failure
qmail-smtpd 385: read error, connection closed
tcpserver: end 385 status 256
tcpserver: status: 0/20
==============================
 
Regards,
Dino
----- Original Message -----
From: "Claudio Jeker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 26, 2003 2:26 AM
Subject: Re: Confused with auth_smtp

> On Tue, Nov 25, 2003 at 11:24:14PM +0800, Dino Ming wrote:
> > Hi Thomas,
> >
> > I've followed your suggestion on the AUTHPREPEND="authenticated:", But I can
> > saw that all wrong smtp outgoing mail with wrong password authenticated
> > include this in their mail header. :(
> >
> > This is my current contents of /etc/tcp.smtp file.
> >
> > 127.:allow,RELAYCLIENT=""
> > :allow,SMTPAUTH="",AUTHPREPEND="Authenticated:"
> >
> Add a LOGLEVEL="3" line to all rules and remake the cdb.
> Afterwards you should get a lot of info about what is enabled and what is
> going on.
>
> In extrem cases 'env TCPREMOTEIP=1.2.3.4 SMTPAUTH= AUTHPREPEND="XXX"
> LOGLEVEL=3 /var/qmail/bin/qmail-smtp' could give you a hint too.
>
> Remeber auth_smtp is not run as root so check that it has read permissions
> on the needed control files (see big-qmail-ldap picture for a list)
>
> > From your last comment, I didn't found any way have smtp relay enabled
> > within my /var/qmail/control/*
> > or RELAYCLIENT. But I found that there have 4 rules files sit inside the
> > /var/qmail/control/directory which are
> > qmail-smtpd.rules,qmail-pop3d.rules,qmail-imapd.rules,qmail-qmqd.rules
> >
> > Does these files affect the smtp authentication especially on
> > qmail-smtpd.rules ?
> >
>
> Not unless you are using the startup scripts shipped in qmail-ldap
> (~/boot).
>
> --
> :wq Claudio
>
> "Contrary to popular belief, penguins are not the salvation of modern  
> technology.  Neither do they throw parties for the urban proletariat."
>
>

Reply via email to