Re: Is a patch still required to send mail through a Smarthost

[email protected] (John Conover) Thu, 30 May 2019 19:48:26 -0700
Newsgroups gmane.mail.qmail.general
Message-ID <[email protected]>
https://www.fehcom.de/qmail/smtpauth.html works fine for me. Compile
qmail 1.0.3 as per always.

Separately, in a DIFFERENT qmail 1.0.3 directory, compiled as always,
install the smtpauth patches, as per directed. Then copy qmail-remote,
(which now has the authentication patches,) to /var/qmail/bin, i.e.,
replace the stock 1.0.3 qmail-remote with the qmail-remote with
authentication. The change /var/qmail/control/smtproutes to
accommodate the authentication password, etc., as directed.

Works on the Raspberry Pi 3B1/Raspbian, too.

I am running this on several accounts, and the only one that was not
straight forward was Gmail, which took some piddling, and I ended up
running openssl(1) to connect. (My Gmail port issue? Maybe.)

Does anyone know if Gmail can be used with TLS only? Or, does it
require SSL?

    Thanks,

    John

Amitai Schleier writes:
> On 30 May 2019, at 15:51, Matt Turner wrote:
> 
> > I want to use qmail to send outgoing mail through a smarthost, 
> > searching for this seems to suggest its possible with a patch to 
> > qmail.
> 
> If you've got a static IP (or an acceptably predictable and narrow 
> range) where the smarthost can expect you to connect from, no patch is 
> required. See "How do I set up a null client?" at 
> https://cr.yp.to/qmail/faq/outgoing.html#null-client (and the format of 
> control/smtproutes is described further in qmail-remote(8)).
> 
> If your smarthost needs you to authenticate, you'll need a patch. I 
> haven't used one myself, but https://www.fehcom.de/qmail/smtpauth.html 
> is what I'd try first. Maybe someone with practical experience can weigh 
> in on what they've used.

-- 

John Conover, [email protected], http://www.johncon.com/