>Кое-какие используемые фичи перечислены в самом начале cf-файла,
>например,
>blacklist_recipients.m4
>ratecontrol.m4
>dnsbl.m4
>... угу, но только в любом случае мало толку, например:
[unix1]/tmp > grep "\.m4" /etc/mail/sendmail.cf
##### $Id: cfhead.m4,v 8.116 2004/01/28 22:02:22 ca Exp $ #####
##### $Id: cf.m4,v 8.32 1999/02/07 07:26:14 gshapiro Exp $ #####
##### $Id: freebsd5.m4,v 1.1 2001/10/08 22:25:34 gshapiro Exp $ #####
##### $Id: generic.m4,v 8.15 1999/04/04 00:51:09 ca Exp $ #####
##### $Id: redirect.m4,v 8.15 1999/08/06 01:47:36 gshapiro Exp $ #####
##### $Id: use_cw_file.m4,v 8.11 2001/08/26 20:58:57 gshapiro Exp $ #####
##### $Id: always_add_domain.m4,v 8.11 2000/09/12 22:00:53 ca Exp $ #####
##### $Id: access_db.m4,v 8.26 2004/06/24 18:10:02 ca Exp $ #####
##### $Id: blacklist_recipients.m4,v 8.13 1999/04/02 02:25:13 gshapiro Exp $ #####
##### $Id: local_lmtp.m4,v 8.17 2002/11/17 04:41:04 ca Exp $ #####
##### $Id: mailertable.m4,v 8.25 2002/06/27 23:23:57 gshapiro Exp $ #####
##### $Id: virtusertable.m4,v 8.23 2002/06/27 23:23:57 gshapiro Exp $ #####
##### $Id: nouucp.m4,v 8.13 1999/11/24 18:37:07 ca Exp $ #####
##### $Id: no_default_msa.m4,v 8.2 2001/02/14 05:03:22 gshapiro Exp $ #####
##### $Id: masquerade_envelope.m4,v 8.9 1999/02/07 07:26:10 gshapiro Exp $ #####
##### $Id: stickyhost.m4,v 8.9 1999/02/07 07:26:13 gshapiro Exp $ #####
##### $Id: delay_checks.m4,v 8.8 2000/12/05 18:50:45 ca Exp $ #####
##### $Id: require_rdns.m4,v 1.7 2003/06/13 03:59:16 rickert Exp $ #####
##### $Id: relay_entire_domain.m4,v 8.10 1999/02/07 07:26:12 gshapiro Exp $ #####
##### $Id: dnsbl.m4,v 8.29 2002/08/09 21:02:08 ca Exp $ #####
##### $Id: proto.m4,v 8.711 2004/08/04 21:29:55 ca Exp $ #####
##### $Id: local.m4,v 8.59 2004/11/23 00:37:25 ca Exp $ #####
##### $Id: smtp.m4,v 8.64 2001/04/03 01:52:54 gshapiro Exp $ #####
[unix1]/tmp >
и сравнить с исходником:
# less /etc/mail/unix1.mc
divert(-1)
# всякая ненужная лабуда
divert(0)
VERSIONID(`$FreeBSD: lavr Exp $')
OSTYPE(freebsd5)
DOMAIN(generic)
FEATURE(always_add_domain)
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')
FEATURE(nouucp,reject)
FEATURE(`no_default_msa')
FEATURE(`masquerade_envelope')
FEATURE(stickyhost)dnl
FEATURE(`delay_checks')
HACK(require_rdns, `REJECT')
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)
FEATURE(`relay_entire_domain')
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 http://dmoz.org/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
FEATURE(`dnsbl',`sbl.spamhaus.org',`Spam bloked - see http://www.spamhaus.org/')
FEATURE(`dnsbl',`list.dsbl.org',`Spam bloked - see http://dsbl.org/')
FEATURE(`dnsbl',`dnsbl.njabl.org',`Spam bloked - see http://njabl.org/')
dnl FEATURE(`dnsbl',`dnsbl.sorbs.net',`Spam bloked - see http://dnsbl.sorbs.net'
)
FEATURE(`dnsbl',`cbl.abuseat.org',`Spam bloked - see http://cbl.abuseat.org/')
FEATURE(`dnsbl',`relays.ordb.org',`Spam bloked - see http://ordb.org/')
FEATURE(`dnsbl', `dul.ru',`Spam bloked - Use mail relays of your ISP')
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 define(`SMART_HOST', `sunct0.jinr.ru')
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 Uncomment both of the following lines to listen on IPv6 as well as IPv4
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
dnl DAEMON_OPTIONS(`Name=IPv6, Family=inet6')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confMAX_HEADERS_LENGTH',16384)
define(`confMAX_MIME_HEADER_LENGTH', `256/128')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
dnl DISABLE DSN, add "noreceipts" to confPRIVACY_FLAGS
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy,noetrn')
define(`confSMTP_MAILER', `smtp8')
define(`confMAX_MESSAGE_SIZE', `50000')
define(`confSMTP_LOGIN_MSG',`JINR-Net Lavr-Antispam-MTA; "Non-authorized relayin
g DENIED." ')
define(`confMAX_RCPTS_PER_MESSAGE', `50')
dnl Enable Return-Receipt-To
dnl define(`confRRT_IMPLIES_DSN',`True')
dnl for Majordomo
dnl define(`ALIAS_FILE', `/etc/mail/aliases,/etc/mail/majordomo.aliases')
dnl for SMTP-AUTH
dnl The group needs to be mail in order to read the sasldb2 file
dnl define(`confRUN_AS_USER',`root:mail')dnl
dnl set SASL options
dnl TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')
dnl define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')
dnl define(`confDEF_AUTH_INFO', `/etc/mail/auth-info')
dnl Milter for Amavisd-new
define(`MILTER',1)
INPUT_MAIL_FILTER(`milter-amavis',`S=local:/var/amavis/amavis-milter.sock,T=S:10
m;R:10m;E:10m')
MAILER(local)
MAILER(smtp)