I would like what I think is a pretty normal setup: SMTP on port 25, submission on port 587 which only allows relay after STARTTLS and
AUTH PLAIN or AUTH LOGIN.
I have it set up on FreeBSD, the STARTTLS works fine, I've built
it with the cyrus SASL libraries, I can send and receive mail to
and from local addresses, but I can't figure out what to put in
sendmail.mc and submit.mc to get submission to work. Ideally I'd
authorize against user/pw set with saslpasswd2 but /etc/shadow would
be OK if that's hard.
Googlage finds a lot of very old stuff like for 8.10 that doesn't work.
Any hints where I might find a template for this?
Googlage finds a lot of very old stuff like for 8.10 that doesn't work. Any hints
If it is about getting Cyrus-SASL itself to work for sendmail the >instructions are basically the same - it's mostly about setting up >Sendmail.conf to specify which "password" backend to use.
Now I can connect to port 587, log in, and authenticate. The only thing I can't do is send mail:
On 5/15/21 8:03 PM, John Levine wrote:
I would like what I think is a pretty normal setup: SMTP on port 25,
submission on port 587 which only allows relay after STARTTLS and
AUTH PLAIN or AUTH LOGIN.
That definitely sounds normal enough.
Today's question is how I tell it that it's OK for an authenticated user to send
mail with some other address in the envelope or From: header. I expect it's also
First I built sendmail with the PLAIN and LOGIN auth methods by overriding the
AUTH_MECHANISMS define.
To my surprise, this worked:
APPENDDEF(`conf_sendmail_ENVDEF',`-DAUTH_MECHANISMS="\"EXTERNAL GSSAPI KERBEROS_V4
DIGEST-MD5 CRAM-MD5 PLAIN LOGIN\""')
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')
I presume I have to tweak check_rcpt to allow me to send mail once authenticated.
Is there a way to do submits on port 465? It's like the MSA on 587 but does the TLS
handshake when it connects, like https does.
The default config for AUTH allows CRAM-MD5 and DIGEST-MD5 but not^^?
LOGIN or PLAIN, presumably because 20 years ago few SMTP sessions used
TLS and you can't recover the password by snooping. But now everyone
does TLS, and those two methods require that the server store the
plaintext passwords or a fragile prehash of them.
Today's question is how I tell it that it's OK for an authenticated
user to send mail with some other address in the envelope or From:
header.
On 5/19/21 8:57 PM, John Levine wrote:
Today's question is how I tell it that it's OK for an authenticated
user to send mail with some other address in the envelope or From:
header.
I think that it's going to just work.
DIGEST-MD5 CRAM-MD5 PLAIN LOGIN\""')
That just sets the default.
Please read cf/README -- the sendmail documentation is fairly good...
Per default, relaying is allowed for any user who authenticated
via a "trusted" mechanism, i.e., one that is defined via TRUST_AUTH_MECH(`list of mechanisms')
For example:
TRUST_AUTH_MECH(`KERBEROS_V4 DIGEST-MD5')
Is there a way to do submits on port 465? It's like the MSA on 587 but does the TLS
handshake when it connects, like https does.
Look in op.* for "smtps"
DaemonPortOptions=options
s Run smtps (SMTP over SSL) instead of smtp
The default config for AUTH allows CRAM-MD5 and DIGEST-MD5 but not^^?
LOGIN or PLAIN, presumably because 20 years ago few SMTP sessions used
TLS and you can't recover the password by snooping. But now everyone
does TLS, and those two methods require that the server store the
plaintext passwords or a fragile prehash of them.
And yet you misconfigured it...
It is still
strange that some auth methods are "more secure".
of MTAs, I think I can say with confidence that nobody else does
that. I also don't think anyone else shows a different list before
and after STARTTLS.
What is strange about that? The Cyrus-SASL docs as well as the
RFCs about the various mechanisms explain the security implications.
Not my problem - seems the code we got from the Cyrus-SASL developers
is "better" (more functionality)... and sendmail supported AUTH
before STARTTLS.
No, see other messages.
On 5/20/21 10:51 AM, John Levine wrote:
No, see other messages.
I'm not sure what other message you're referring to.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 428 |
Nodes: | 16 (2 / 14) |
Uptime: | 107:49:21 |
Calls: | 9,053 |
Calls today: | 10 |
Files: | 13,395 |
Messages: | 6,015,806 |