|
||||
|
|
||||
|
|
||||
|
Inhaltsverzeichnis
Qmail 1.03 qmail-remote.c SMTP-AUTH send patchDescriptionQuick install1. 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 infoThis 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. #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: Files |
||||
|
|
||||
Diskussion
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
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
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
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
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