Skip site navigation (1)Skip section navigation (2)
Date:      07 Dec 2000 12:07:49 +0100
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        Lauri Laupmaa <mauri@inspiral.net>
Cc:        stable@FreeBSD.ORG
Subject:   Re: sendmail, rbl & orbs
Message-ID:  <3dg0qyka.fsf@gits.dyndns.org>
In-Reply-To: Lauri Laupmaa's message of "Thu, 07 Dec 2000 01:28:17 %2B0200"
References:  <3A2ECB8F.70173458@inspiral.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Lauri Laupmaa <mauri@inspiral.net> writes:

> Can anyone send me two(or four:) simple lines to add to freebsd stock
> sendmail.cf that block mail from sites that are listed in RBL and ORBS
> databases ?

here is my /usr/src/etc/sendmail/gits.mc

divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#	The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#

#
#  This is a generic configuration file for 4.4 BSD-based 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/src/contrib/sendmail/cf/README
#

divert(0)dnl
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10 1999/12/29 18:20:23 peter Exp $')

dnl ----------==========---------- DEFAULTS ----------==========----------
dnl define(`DATABASE_MAP_TYPE', `hash')
dnl define(`ALIAS_FILE', `MAIL_SETTINGS_DIR`'aliases')
dnl define(`confMAILER_NAME', ``MAILER-DAEMON'')
dnl define(`confFROM_LINE', `From $g $d')
dnl define(`confOPERATORS', `.:%@!^/[]+')
dnl define(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z; $b')
dnl define(`confRECEIVED_HEADER', `_REC_HDR_
dnl	_REC_AUTH_$?{auth_ssf} (${auth_ssf} bits)$.)
dnl	_REC_BY_
dnl	_REC_TLS_
dnl	_REC_END_')
dnl define(`confSEVEN_BIT_INPUT', `False')
dnl define(`confEIGHT_BIT_HANDLING', `pass8')
dnl define(`confALIAS_WAIT', `10')
dnl define(`confMIN_FREE_BLOCKS', `100')
dnl define(`confBLANK_SUB', `.')
dnl define(`confCON_EXPENSIVE', `False')
dnl define(`confDELIVERY_MODE', `background')
dnl define(`confTEMP_FILE_MODE', `0600')
dnl define(`confMCI_CACHE_SIZE', `2')
dnl define(`confMCI_CACHE_TIMEOUT', `5m')
dnl define(`confUSE_ERRORS_TO', `False')
dnl define(`confLOG_LEVEL', `9')
dnl define(`confCHECK_ALIASES', `False')
dnl define(`confOLD_STYLE_HEADERS', `True')
dnl define(`confPRIVACY_FLAGS', `authwarnings')
dnl define(`confSAFE_QUEUE', `True')
dnl define(`confTO_QUEUERETURN', `5d')
dnl define(`confTO_QUEUEWARN', `4h')
dnl define(`confTIME_ZONE', `USE_SYSTEM')
dnl define(`confCW_FILE', `MAIL_SETTINGS_DIR`'local-host-names')
dnl define(`confMIME_FORMAT_ERRORS', `True')
dnl define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')
dnl define(`confCR_FILE', `-o MAIL_SETTINGS_DIR`'relay-domains')

dnl ----------==========---------- OSTYPE ----------==========----------
OSTYPE(bsd4.4)dnl
dnl STATUS_FILE LOCAL_MAILER_PATH LOCAL_MAILER_ARGS UUCP_MAILER_ARGS

dnl ----------==========---------- DOMAIN ----------==========----------
DOMAIN(generic)dnl
dnl confFORWARD_PATH confMAX_HEADERS_LENGTH redirect use_cw_file CEroot

dnl ----------==========---------- FEATURES ----------==========----------
dnl FEATURE(relay_based_on_MX)dnl
dnl FEATURE(mailertable)dnl
dnl FEATURE(access_db)dnl
dnl FEATURE(blacklist_recipients)dnl
dnl FEATURE(virtusertable)dnl

dnl Uncomment to activate Realtime Blackhole List (recommended!)
dnl information available at http://maps.vix.com/rbl/
dnl FEATURE(dnsbl)dnl rbl.maps.vix.com http://maps.vix.com/cgi-bin/lookup?
FEATURE(dnsbl,`blackholes.mail-abuse.org',` Mail from $&{client_addr} rejected, see http://mail-abuse.org/cgi-bin/lookup?$&; {client_addr}')dnl
FEATURE(dnsbl,`dialups.mail-abuse.org',` Mail from dial-up rejected; see http://mail-abuse.org/dul/enduser.htm')
FEATURE(dnsbl,`relays.mail-abuse.org',` Mail from $&{client_addr} rejected; see http://mail-abuse.org/cgi-bin/nph-rss?$&; {client_addr}')dnl

FEATURE(local_lmtp)dnl
dnl FEATURE(local_procmail)dnl

dnl ----------==========---------- OPTIONS ----------==========----------
define(`confCW_FILE', `-o /etc/mail/local-host-names')dnl
define(`confMAX_MESSAGE_SIZE', `2000000')dnl overrides
define(`confLOG_LEVEL', `11')dnl overrides
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')dnl overrides
define(`confCOPY_ERRORS_TO', `Postmaster')dnl
undefine(`confTO_QUEUERETURN')dnl
define(`confTO_QUEUERETURN_NORMAL', `5d')dnl
define(`confTO_QUEUERETURN_URGENT', `2d')dnl
define(`confTO_QUEUERETURN_NONURGENT', `7d')dnl
undefine(`confTO_QUEUEWARN')dnl
define(`confTO_QUEUEWARN_NORMAL', `4h')dnl
define(`confTO_QUEUEWARN_URGENT', `1h')dnl
define(`confTO_QUEUEWARN_NONURGENT', `12h')dnl
define(`confQUEUE_LA', `16')dnl overrides
define(`confREFUSE_LA', `24')dnl overrides
define(`confMAX_DAEMON_CHILDREN', `20')dnl overrides
define(`confCONNECTION_RATE_THROTTLE', `3')dnl
define(`confMIN_QUEUE_AGE', `30m')dnl
define(`confDEF_CHAR_SET', `iso-8859-1')dnl
define(`confNO_RCPT_ACTION', `add-to-undisclosed')dnl
define(`confMAX_RCPTS_PER_MESSAGE', `128')dnl overrides
define(`confRRT_IMPLIES_DSN', `True')dnl overrides
define(`confMAX_MIME_HEADER_LENGTH', `256/128')dnl

dnl ----------==========---------- MAILERS ----------==========----------
MAILER(local)dnl
MAILER(smtp)dnl
dnl MAILER(procmail)dnl

dnl ----------==========---------- LOCAL INFOS ----------==========----------
VERSIONID(`@(#)gits.m4   8.9 (gits) 7/23/2000')

define(`confDOMAIN_NAME', `$w.$m')dnl
Dwgits
Dmdyndns.org
dnl Many sites reject email connections from dialup ip addresses
dnl by using the MAPS Dial-up User List (DUL).  http://maps.vix.com/dul/
dnl Dialup users should uncomment and define this appropriately
define(`SMART_HOST', `mail.cybercable.fr')dnl
dnl define(`LOCAL_RELAY', `mail.gits.fr')dnl
dnl define(`MAIL_HUB', `mail.gits.fr')dnl
dnl MASQUERADE_AS(gits.dyndns.org)

to use and install your proper mc file (not de default one)
you also need to add the following line to /etc/make.conf :

SENDMAIL_CF=    gits.cf

PS : all dnl lines are comments or disabled.

Cyrille.
--
home: mailto:clefevre@citeweb.net work: mailto:Cyrille.Lefevre@edf.fr


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3dg0qyka.fsf>