Re: Unable to run qmail-remote
Niamh Holding <[email protected]> Sat, 23 Dec 2017 08:21:17 +0000
| Newsgroups | gmane.mail.qmail.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Charles, Saturday, December 23, 2017, 4:11:07 AM, you wrote: CC> Finding out which patch or combination of patches causes the bug will not be CC> simple. I think I know and it's probably not handliny the garbage EHLO response... From https://qmail.jms1.net/patches/combined-details.shtml Tom Clegg's qmail-remote-auth.patch allows qmail-remote to use AUTH when connecting to certain remote mail servers. The userids and passwords are set in the "smtproutes" file, after the IP[:PORT] value, separated by spaces. For example... domain1.xyz:1.2.3.4 domain2.xyz:2.3.4.5 user pass domain3.xyz:3.4.5.6:26 user pass In the process of tracking down what I thought was a bug, I ended up adding support for the AUTH PLAIN method. With this patch, qmail-remote checks the list of AUTH methods advertised in the EHLO response, and can work with either AUTH PLAIN or AUTH LOGIN (with AUTH PLAIN being used if both are available.) This was made possible by the regex function from above, because using regular expressions makes it so much easier to scan the server's output for authentication methods. I also found something else which may be a bug or may have been by design, but it doesn't seem right to me so I changed it. When it sends the "MAIL FROM:<...> AUTH=<...>" line (after successfully AUTH'ing to the remote server) it was repeating the sender address in the AUTH= argument, rather than putting the actual AUTH information in this argument. It now puts the userid from the AUTH information into the AUTH= argument. If this is somehow wrong, please explain to me why and I'll change it back. -- Best regards, Niamh mailto:[email protected]
signature.asc
(application/pgp-signature, 192 B)
-----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.22 (MingW32) iEYEARECAAYFAlo+Ef0ACgkQjFUB2JvnEPmUMwCgvp9T8DSHMEc+45ofLFiNwcvB PywAoI/agS3I8AxRCxFNS7cbsBPwjhww =CaEG -----END PGP MESSAGE-----