Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sendmail.mc to enable smtps

331 views
Skip to first unread message

mickael....@gmail.com

unread,
Apr 2, 2014, 8:52:44 PM4/2/14
to
Greetings!

I have been struggling with the sendmail.mc trying to enable port 465 for TLS.
I have saslauthd set up for authentication and it's working fine on 587 under starttls. I wanted to get that working as well as 465 TLS. I googled like crazy and tried all sorts of DAEMONOPTIONS options such as DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl but they all seemed to write strange info to the sendmail.cf and the result is they would bust SMTP completely.

So now I've manually editing the sendmail.cf and have a perfectly working configuration:

# SMTP daemon options
O DaemonPortOptions=Name=MTA
O DaemonPortOptions=Port=587, Name=MSA, M=E
O DaemonPortOptions=Port=smtps, Name=TLSMTA, M=s


What I would like to figure out now is how to create sendmail.mc entries that will result in exactly what I have above. We have tools that use m4 to create new sendmail.cf files so it would be a pain to have to manually modify the sendmail.cf every time we update our sendmail configurations etc.

Can anyone tip me off on how to achieve this? Thanks!

Claus Aßmann

unread,
Apr 2, 2014, 11:49:38 PM4/2/14
to
> I have been struggling with the sendmail.mc trying to enable port 465 for TLS.

Why do you want that? That's not a standard.

> wanted to get that working as well as 465 TLS. I googled like crazy and tried all sorts of

I guess nobody reads the fine documentation anymore... some articles on
the internet are certainly better...

> DAEMONOPTIONS options such as DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl but they all
> seemed to write strange info to the sendmail.cf and the result is they would bust SMTP
^^^^^^^^^^^^
Hmm, can you be more specific?

> So now I've manually editing the sendmail.cf and have a perfectly working configuration:

> # SMTP daemon options
> O DaemonPortOptions=Name=MTA
> O DaemonPortOptions=Port=587, Name=MSA, M=E
> O DaemonPortOptions=Port=smtps, Name=TLSMTA, M=s

That's generated by:
DAEMON_OPTIONS(`Name=MTA')
DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')

That was easy, wasn't it?


--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

mickael....@gmail.com

unread,
Apr 3, 2014, 2:04:20 AM4/3/14
to
I wanted to give users a TLS SMTP port and some other systems I use are on 465 so I figure why not?

> That's generated by:
> DAEMON_OPTIONS(`Name=MTA')
> DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')

> That was easy, wasn't it?

Perfect, that was it. Now it is all working just as I would like. Thanks!

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages