qmail with SMTP AUTH client patch

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-23-2003
Klaus Layer
 
Posts: n/a
Default qmail with SMTP AUTH client patch

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

Reply With Quote
  #2 (permalink)  
Old 11-29-2003
Klaus Layer
 
Posts: n/a
Default Re: qmail with SMTP AUTH client patch

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

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:10 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0