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

jstarng jstarng at gmail.com
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
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<TMPF> /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/Blacklists/

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=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')
MAILER(smtp)
MAILER(local)
FEATURE(msgidruleset)


More information about the freebsd-questions mailing list