On Thu, May 7, 2009 at 3:12 PM, Stuart Henderson <[email protected]> wrote:
> On 2009-05-07, Woodchuck <[email protected]> wrote:
>> "You basically just need to setup smarthost to do SMTP+SSL
>> authentication" -- Kevin
>>
>> Basically I knew that, thanks.
>>
>> But somehow I need to connect to port 465 of smtp.gmail.com
>>
>> Thanks for the reference to Freebsd.   Sendmail is not the same, in
>> particular in some
>> of the details.
>>
>> Does anyone have a working configuration for OpenBSD sendmail, using
>> port 465 to smtp.gmail.com as a smarthost?
>
> it's fiddly because you would need to install cyrus-sasl and recompile a
> special version of sendmail with different build options in order to use it.
> I'd generally recommend against it (it's particularly "fun" at upgrade time).

Done this.  The rebuild of sendmail is fairly straightforward.  One adds
a switch to /etc/mk.conf  ("WANT_SMTPAUTH=1"  seemed to work), then
does "make" in /usr/src/gnu/usr.sbin/sendmail  and a "make install" in
/usr/src/gnu/usr.sbin/sendmail/sendmail.  (I put this in for future googlers).

> some MUAs have direct support for smtp-auth, for example if you use Mutt,
> the -sasl flavour lets you do this:

I will try this; I have built the port yesterday, but wanted to continue
sport with sendmail.

> set smtp_url="smtps://user:passw...@host/"
> or ...       "smtps://[email protected]:passw...@host/"

Thanks, I'll keep this in mind.

Some versions might want "smtps" defined in /etc/services  (tcp 465).

> if you need this in an MTA you'll probably have better luck with
> some other one, say OpenSMTPd (recommend you track -current if you
> do this, it does work but is still beta code, you need to keep an
> eye on it and watch out for sharp edges ;-) or something like
> Postfix. (you still usually need cyrus-sasl, but it avoids a
> special build of some standard part of the OS, which is usually
> a good thing).

Yes, agree.  But postfix opens its own cans of worms.  (Mainly my
learning curve.  Darned if I'll buy a $40 book...)

The itchy part of this is that I think I am close with sendmail.  I need,
I think, an "authinfo" file separate from /etc/mail/access.

Thanks to you and Kevin!

I !<3 sendmail

Dave
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to