From owner-freebsd-questions@FreeBSD.ORG Wed Aug 24 20:13:49 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BE1B16A41F for ; Wed, 24 Aug 2005 20:13:49 +0000 (GMT) (envelope-from jstarng@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27F7E43D48 for ; Wed, 24 Aug 2005 20:13:47 +0000 (GMT) (envelope-from jstarng@gmail.com) Received: by wproxy.gmail.com with SMTP id i7so206683wra for ; Wed, 24 Aug 2005 13:13:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=EY/3p/U5stVkJbRWR1deWEgSDq9cHb5sxURqbSnCmZedpQA3Q+mL0Pv+CQXD7WDN8Kbf2wozd/5yysT3qBMCfH8ZBpJv4uLRoWAN0pHmeGdLoRFH9Mo/y83EKIPXNCjYFDajvXqeU2e1A3aRjExPGXWZK1eeUJN/meUuVunnSuQ= Received: by 10.54.6.59 with SMTP id 59mr1081905wrf; Wed, 24 Aug 2005 13:13:46 -0700 (PDT) Received: by 10.54.147.8 with HTTP; Wed, 24 Aug 2005 13:13:46 -0700 (PDT) Message-ID: <2d3ab02605082413136df4481c@mail.gmail.com> Date: Wed, 24 Aug 2005 16:13:46 -0400 From: jstarng To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: problem sendmail with msgidruleset.m4 : *** ERROR: FEATURE() should be before MAILER() 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: Wed, 24 Aug 2005 20:13:49 -0000 I'm trying to set up sendmail with the msgidruleset.m4 so that all inbound and outbound emails from the server are copied to an archiving account. i'm following the directions listed at: http://www.usenix.org/publications/login/1999-10/features/archiving.html or http://www.geocities.com/sbmilbur/sendmail/email_archiving.html i get all the way to the new sendmail.cf creation using: m4 ../m4/cf.m4 /etc/mail/freebsd.mc > sendmail.cf and it responds with an error: *** ERROR: FEATURE() should be before MAILER() when i put the line: FEATURE(msgidruleset) before the MAILER() line, it errors out with: *** MAILER(smtp) must appear before copymail mailer') I see that error's created from msgidruleset.m4 and so i assume it has to appear after smtp for it to work and i cant just comment it out.... How do i get things to work, allowing me to put feature() after mailer(). here's a copy of my freebsd.mc file: divert(-1) # # This is a generic configuration file for FreeBSD 5.X and later systems. # If you want to customize it, copy it to a name appropriate for your # environment and do the modifications there. # # The best documentation for this .mc file is: # /usr/share/sendmail/cf/README or # /usr/src/contrib/sendmail/cf/README # divert(0) VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.29 2003/12/24 21:15:09 gshapiro Exp $') OSTYPE(freebsd5) DOMAIN(generic) FEATURE(access_db, `hash -o -T /etc/mail/access') FEATURE(blacklist_recipients) FEATURE(local_lmtp) FEATURE(mailertable, `hash -o /etc/mail/mailertable') FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') dnl Uncomment to allow relaying based on your MX records. dnl NOTE: This can allow sites to use your server as a backup MX without dnl your permission. dnl FEATURE(relay_based_on_MX) dnl DNS based black hole lists dnl -------------------------------- dnl DNS based black hole lists come and go on a regular basis dnl so this file will not serve as a database of the available servers. dnl For that, visit dnl http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklist= s/ dnl Uncomment to activate Realtime Blackhole List dnl information available at http://www.mail-abuse.com/ dnl NOTE: This is a subscription service as of July 31, 2001 dnl FEATURE(dnsbl) dnl Alternatively, you can provide your own server and rejection message: dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from " $&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/lookup?" $&{client_addr}') dnl Dialup users should uncomment and define this appropriately dnl define(`SMART_HOST', `your.isp.mail.server') dnl Uncomment the first line to change the location of the default dnl /etc/mail/local-host-names and comment out the second line. dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw') define(`confCW_FILE', `-o /etc/mail/local-host-names') dnl Enable for both IPv4 and IPv6 (optional) DAEMON_OPTIONS(`Name=3DIPv4, Family=3Dinet') DAEMON_OPTIONS(`Name=3DIPv6, Family=3Dinet6, Modifiers=3DO') define(`confBIND_OPTS', `WorkAroundBrokenAAAA') define(`confNO_RCPT_ACTION', `add-to-undisclosed') define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy') MAILER(smtp) MAILER(local) FEATURE(msgidruleset)