projects/qmail-smtp-auth-send.txt · Zuletzt geändert: 18.06.2010 14:56 von terminar
   
 
 

Qmail 1.03 qmail-remote.c SMTP-AUTH send patch

  • Date: 20020715
  • Version: 0.0.1 ;)
  • Author: Bjoern Kalkbrenner
  • Location: Home | Download

Flattr this

Description

Quick install

 1. Copy the base64.c and base64.h to your qmail source and chdir into it.
 2. Patch the source with patch -p1 <smtp-auth-send.patch
 3. make setup check
 4. ...follow the qmail-installation or copy your new qmail-remote to /var/qmail/bin
 5. create your /var/qmail/control/smtproutes_users

Quick info

This patch is based on Robert Sander's AUTH LOGIN patch which is based on the qmail-smtpd-auth patch which itself is based on the patch from Mrs. Brisby… Confusing ;)

I made this patch because my ISP also switched to AUTH LOGIN on his SMTP relay and we are using an internal linux qmail server in our company, but the patch Robert wrote was only working for 1 user. . Several users use this ISP for outgoing mail, mails are fetched with fetchmail, (scanned for viruses) and send to the local mailaccounts which is used as relay. Now it is easy for us to internal mailaccounts mapped to the external mailservers. You can even select the outgoing mailserver with the smtproutes_users file.

The username and password for the remote smtp relay are stored in /var/qmail/control/smtproutes_users (new controlfile!) separated with pipes after the entry for the relay server.
For example:

#mailuser-example
mail@example.com:smtp.example.com|example.com1|examplePasswd
info@example.com:smtp.example.com|example.com2|anotherPasswd

#mailuser-examples sending to port 26
anotherport@example.com:smtp.example.com:26|example.com3|justfoobar

#default, not sure if this entry is used, untested!!!!!! Maybe i had to code this.
:relay.provider.com|username|password

Password has to be stored in cleartext. This is maybe not bug-free, but like Robert said:
It works for me, no guarantee…

Files

Diskussion

, 11.10.2009 20:17:

Hello,

it seems, that smtproutes_users takes precedence over smtproutes, so I cannot deliver mail to my internal hosts. I am using the default entry, but it always delivers mail to the outside relay, despite qmail is afaik configured to know, that it should deliver mail to my internal mail hub.

Any idea?

Dieter

, 14.10.2009 22:54:

Hi Dieter,

if i remember correct, the smtproutes* is only (!) used, if the domain the mail should be send to, is not known locally, that means you are missing an entry in your qmail config files for the hosts (me, local, rcpthosts, something like that).

Maybe you can find some info at http://thedjbway.org/qmail/qmailflow.html#localvremote

Bye
Björn

, 08.01.2010 14:20:

Hi Björn,

I just found the time to check again for this problem, since it is not such high priority.
I just checked the above mentioned link, but this page is no longer available. Do you have another source for it?

Thanks in advance

Dieter

, 08.01.2010 18:36:

Hi Björn,

I just found the time to check again for this problem, since it is not such high priority.
I just checked the above mentioned link, but this page is no longer available. Do you have another source for it?

Thanks in advance

Dieter

, 08.01.2010 15:07:

Hi Dieter,

Just use www.archive.org with the wayback machine:
http://web.archive.org/web/20080616131759/http://thedjbway.org/qmail/qmailflow.html#localvremote

What i wanted to mention is: recheck your configuration, it seems that there is a failure in the local configuration of the mailflow ;)

Great sites for qmail are:

Bye
Björn

Geben Sie Ihren Kommentar ein (Wiki-Syntax ist zugelassen):
MINFU
 
 
 
   
(29500 views) projects/qmail-smtp-auth-send.txt · Zuletzt geändert: 18.06.2010 14:56 von terminar