From owner-freebsd-questions@FreeBSD.ORG Sat Jan 5 22:07:10 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14DAE16A417 for ; Sat, 5 Jan 2008 22:07:10 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 605CE13C45D for ; Sat, 5 Jan 2008 22:07:09 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-av-03.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-02.forthnet.gr (8.14.0/8.14.0) with ESMTP id m05M71wa030766; Sun, 6 Jan 2008 00:07:01 +0200 Received: from MX-IN-05.forthnet.gr (mx-in-05.forthnet.gr [193.92.150.32]) by mx-av-03.forthnet.gr (8.14.1/8.14.1) with ESMTP id m05M71TY013642; Sun, 6 Jan 2008 00:07:01 +0200 Received: from kobe.laptop (ppp5-162.adsl.forthnet.gr [62.1.228.162]) by MX-IN-05.forthnet.gr (8.14.2/8.14.2) with ESMTP id m05M6x9n012830; Sun, 6 Jan 2008 00:07:00 +0200 Authentication-Results: MX-IN-05.forthnet.gr smtp.mail=keramida@ceid.upatras.gr; spf=neutral Authentication-Results: MX-IN-05.forthnet.gr header.from=keramida@ceid.upatras.gr; sender-id=neutral Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m05M6xsd053441; Sun, 6 Jan 2008 00:06:59 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m05M6xuX053440; Sun, 6 Jan 2008 00:06:59 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 6 Jan 2008 00:06:59 +0200 From: Giorgos Keramidas To: Andrew Falanga Message-ID: <20080105220659.GE53175@kobe.laptop> References: <200801051308.53420.af300wsm@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801051308.53420.af300wsm@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: My sendmail appears to be fixed, advice needed though X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2008 22:07:10 -0000 On 2008-01-05 13:08, Andrew Falanga wrote: > Hi everybody, > Sorry for this flurry of e-mail from me over the last few days. This > has been highly frustrating. You should post *more* details, not less. One of the things which was missing from the older posts (or at least, one thing which I didn't see) was a *FULL* copy of your local *.mc configuration file. > Basically, the instructions for setting up SSL and Authentication (from > http://www.puresimplicity.net/~hemi/freebsd/sendmail.html) instruct to have > the following lines in the .mc file: > > define(`confAUTH_MECHANISMS',`PLAIN LOGIN')dnl > TRUST_AUTH_MECH(`PLAIN LOGIN')dnl > define(`CERT_DIR', `/etc/mail/certs')dnl > define(`confCACERT_PATH', `CERT_DIR')dnl > define(`confCACERT', `CERT_DIR/mycert.pem')dnl > define(`confSERVER_CERT', `CERT_DIR/mycert.pem')dnl > define(`confSERVER_KEY', `CERT_DIR/mykey.pem')dnl > define(`confCLIENT_CERT', `CERT_DIR/mycert.pem')dnl > define(`confCLIENT_KEY', `CERT_DIR/mykey.pem')dnl > DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl > DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl > > I deleated this line: > DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl That doesn't sound right. I think it's because you have the options listed above *after* the MAILER() calls. This means that the options are not `set' at the time the MAILER() calls generate your configuration. So you probably end up with several instances of the `MTA' and `TLSMTA' daemon definitions in the final `sendmail.cf' file. This could very well be the explanation of why your Sendmail *is* listening on port :25 and it *also* tries to listen again, logging the failures in syslog. > Is this a viable fix or will I be missing something? I was able to > telnet to port 25 and send mail that way. I cannot relay without > logging in, so I think it's fixed. See my previous post about moving MAILER() calls to the end of the file, and give it another spin. You are *very* close to figuring it all out and having a fully working setup, AFAICT :) Regards, Giorgos