Date: Sun, 6 Jan 2008 00:02:20 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Andrew Falanga <af300wsm@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: How do I get sendmail working again Message-ID: <20080105220220.GD53175@kobe.laptop> In-Reply-To: <200801051118.17211.af300wsm@gmail.com> References: <200801051118.17211.af300wsm@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2008-01-05 11:18, Andrew Falanga <af300wsm@gmail.com> wrote: > Wanted to post the contents of my <hostname>.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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080105220220.GD53175>