From owner-freebsd-isp@FreeBSD.ORG Sat Sep 22 18:26:57 2007 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B662F16A418 for ; Sat, 22 Sep 2007 18:26:57 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1512D13C469 for ; Sat, 22 Sep 2007 18:26:56 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l8MIQiQW012597; Sat, 22 Sep 2007 19:26:45 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <46F55E64.8080604@infracaninophile.co.uk> Date: Sat, 22 Sep 2007 19:26:44 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.6 (X11/20070803) MIME-Version: 1.0 To: "Michael W. Lucas" References: <20070922174425.GA37518@bewilderbeast.blackhelicopters.org> In-Reply-To: <20070922174425.GA37518@bewilderbeast.blackhelicopters.org> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sat, 22 Sep 2007 19:26:45 +0100 (BST) X-Virus-Scanned: ClamAV 0.91.2/4360/Sat Sep 22 18:53:02 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.3 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-isp@freebsd.org Subject: Re: SMTP AUTH over SSL only? X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2007 18:26:57 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Michael W. Lucas wrote: > Hi folks, > > I have a FreeBSD 7.0 server where I'd like to authenticate against > /etc/master.passwd when using SMTP AUTH and Sendmail. This means > using LOGIN, which can use either plain text or SSL-tunneled > connections. I'd like to allow SMTP AUTH only over SSL, and disallow > it over unencrypted connections. Any suggestions on this? Surely > there's just some switch I'm missing? The archives and search engines > are full of people trying to get SSL working, not people trying to > turn off non-SSL connections. > > Here's the relevant snippets of sendmail.mc I'm using. > > TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl > define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl > define(`CERT_DIR', `/usr/local/etc/certs')dnl > define(`confCACERT_PATH', `CERT_DIR')dnl > define(`confCACERT', `CERT_DIR/hostname.pem')dnl > define(`confSERVER_CERT', `CERT_DIR/hostname.pem')dnl > define(`confSERVER_KEY', `CERT_DIR/hostname-key.pem')dnl > define(`confCLIENT_CERT', `CERT_DIR/hostname.pem')dnl > define(`confCLIENT_KEY', `CERT_DIR/hostname-key.pem')dnl > DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl > DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl > > Any suggestions greatly appreciated! Add this to your /etc/mail/`hostname`.mc: define(`confAUTH_OPTIONS', `p,y')dnl See /usr/share/doc/smm/08.sendmailop/paper.ascii.gz for details - -- search for the section on AuthOptions.. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG9V5k8Mjk52CukIwRCJzNAJ9t/LFlY9x+NCpBJMoSk2FcDwXgbQCdERcm SlUoyTu7YKZCn3L8gl/LorI= =6ZUO -----END PGP SIGNATURE-----