From owner-freebsd-questions@FreeBSD.ORG Sat Jan 5 23:30:57 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 1B2CA16A419 for ; Sat, 5 Jan 2008 23:30:57 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-out-04.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by mx1.freebsd.org (Postfix) with ESMTP id 908C913C455 for ; Sat, 5 Jan 2008 23:30:56 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from mx-av-01.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-04.forthnet.gr (8.13.8/8.13.8) with ESMTP id m05M2MGL017692; Sun, 6 Jan 2008 00:02:22 +0200 Received: from MX-IN-05.forthnet.gr (mx-in-05.forthnet.gr [193.92.150.32]) by mx-av-01.forthnet.gr (8.14.1/8.14.1) with ESMTP id m05M2MbN022442; Sun, 6 Jan 2008 00:02:22 +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 m05M2KfF002571; Sun, 6 Jan 2008 00:02:21 +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 m05M2Ken053406; Sun, 6 Jan 2008 00:02:20 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m05M2KGJ053405; Sun, 6 Jan 2008 00:02:20 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 6 Jan 2008 00:02:20 +0200 From: Giorgos Keramidas To: Andrew Falanga Message-ID: <20080105220220.GD53175@kobe.laptop> References: <200801051118.17211.af300wsm@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200801051118.17211.af300wsm@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: How do I get sendmail working again 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 23:30:57 -0000 On 2008-01-05 11:18, Andrew Falanga wrote: > Wanted to post the contents of my .mc file: > > whitbap# cat whitbap.mc > [...] > FEATURE(`no_default_msa') > MAILER(local) > MAILER(smtp) This part seems ok. > dnl set SASL options > dnl TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl > dnl define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl > 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/whitbap_cert.pem')dnl > define(`confSERVER_CERT', `CERT_DIR/whitbap_cert.pem')dnl > define(`confSERVER_KEY', `CERT_DIR/whitbap_key.pem')dnl > define(`confCLIENT_CERT', `CERT_DIR/whitbap_cert.pem')dnl > define(`confCLIENT_KEY', `CERT_DIR/whitbap_key.pem')dnl > DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl > DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA')dnl But I'm not sure it is a good idea to keep options like these *AFTER* the MAILER() macros. The `README' file of Sendmail's macros says: % Beware: MAILER declarations should only be followed by LOCAL_* % sections. The general rules are that the order should be: % % VERSIONID % OSTYPE % DOMAIN % FEATURE % local macro definitions % MAILER % LOCAL_CONFIG % LOCAL_RULE_* % LOCAL_RULESETS % % There are a few exceptions to this rule. Local macro definitions which % influence a FEATURE() should be done before that feature. For example, % a define(`PROCMAIL_MAILER_PATH', ...) should be done before % FEATURE(`local_procmail'). You can read the entire `README' file at: /usr/share/sendmail/cf/README But first give it a try, and move the last part of your *.mc file before the MAILER() macro calls. - Giorgos