For When You Can't Have The Real Thing
[ start | index | login ]
start > sendmail > ssmtp

ssmtp

Created by dave. Last edited by dave, 14 years and 273 days ago. Viewed 2,497 times. #1
[edit] [rdf]
labels
attachments
Also see site.config.m4

This assumes that you already have tls working.

Add this to your sendmail-ssmtp.mc file:

FEATURE(no_default_msa)
DAEMON_OPTIONS(`Addr=142.46.200.221, Port=465, Name=SSA, M=Eas')
TRUST_AUTH_MECH(`PLAIN LOGIN')
define(`confAUTH_MECHANISMS', `PLAIN LOGIN')
define(`confAUTH_OPTIONS', `A,p,y')

You probably want to run a separate instance with no_default_msa here so that your port 25 sendmail doesn't insist on SSL connectivity.

AUTH_OPTIONS details:

  • A: Require successfull authentication before sending. THis is a work-around for some broken MTAs (and some clients which pretend to be MTAs; Microsoft, we're looking at you.)
  • p: Require an encrypted tunnel (SSMTP, or TLS) before permitting PLAIN or LOGIN mechanims types
  • y: Don't permit annonymous login mechanisms
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt