problem sendmail with msgidruleset.m4 : *** ERROR: FEATURE() should be before MAILER()

jstarng jstarng at
Wed Aug 24 20:13:49 GMT 2005

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

i'm following the directions listed at:

i get all the way to the new creation using:
 m4 ../m4/cf.m4 /etc/mail/ >

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 file:

#  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

VERSIONID(`$FreeBSD: src/etc/sendmail/,v 1.29 2003/12/24
21:15:09 gshapiro Exp $')

FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
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 Uncomment to activate Realtime Blackhole List
dnl information available at
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, `', `"550 Mail from "
$&{client_addr} " rejected, see"

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/')
define(`confCW_FILE', `-o /etc/mail/local-host-names')

dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')

define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')

More information about the freebsd-questions mailing list