This is a discussion on qmail with SMTP AUTH client patch within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hi all, I run a qmail mailserver in my home network and use a DSL dialup account to connect to ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi all,
I run a qmail mailserver in my home network and use a DSL dialup account to connect to the internet. All mail clients are configured to relay all external mail through the qmail server. Recently I noticed that some external mailserver dont like mails with a FROM: MYADDRESS@gmx.de in the header sent from an DSL dialup account with a different domain. They probably regard such kind of mail as SPAM. Therefore I decided to apply the qmail-remote_authenticated_smtp.patch from www.qmail.org to relay all outgoing mail through the mail server of my email provider GMX. I applied the patch as described to qmail-remote.c and changed the smtproutes so it now contains :mail.gmx.net followed by login and password both base64 encoded. After these changes sending external mail does no longer work. To check whats going wrong I sniffed the SMTP connection both with and without the patch: --------------- with qmail-remote_authenticated_smtp.patch------------ 220 {mp013} GMX Mailservices ESMTP EHLO MYMAILHOST 250-{mp013} GMX Mailservices 250-8BITMIME 250-AUTH=LOGIN CRAM-MD5 PLAIN 250-AUTH CRAM-MD5 LOGIN PLAIN 250 STARTTLS MAIL FROM:<MYADDRESS@gmx.de> 551 {mp013} Need to authenticate via SMTP-AUTH-Login QUIT 221 {mp013} GMX Mailservices ----------------------------------------------------------------------- ---------- without qmail-remote_authenticated_smtp.patch------------ 220 {mx015} GMX Mailservices ESMTP HELO MYMAILHOST 250 {mx015} GMX Mailservices MAIL FROM:<MYADDRESS@gmx.de> 250 {mx015} ok RCPT TO:<MYADDRESS@gmx.de> 250 {mx015} ok DATA 354 {mx015} Go ahead ----------------------------------------------------------------------- As far as I understand, the patch dont authenticate as required by GMX. Is there anybody out there who could give me a hint? Is there something I have to do to make it work with GMX? Thanks for your help, Klaus |
|
|||
|
Solved!
GMX sends a "AUTH=LOGIN CRAM-MD5 PLAIN" but qmail-remote_authenticated_smtp.patch checks for "AUTH=LOGIN\n". After changing str_diffn(smtptext.s+i+4,"AUTH=LOGIN\n",11)); to str_diffn(smtptext.s+i+4,"AUTH=LOGIN",10)); in qmail-remote.c it works fine. Regards, Klaus |