diff options
Diffstat (limited to 'usr.sbin/sendmail/cf/cf/hub.mc')
-rw-r--r-- | usr.sbin/sendmail/cf/cf/hub.mc | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/usr.sbin/sendmail/cf/cf/hub.mc b/usr.sbin/sendmail/cf/cf/hub.mc new file mode 100644 index 0000000..dce5d4a --- /dev/null +++ b/usr.sbin/sendmail/cf/cf/hub.mc @@ -0,0 +1,124 @@ +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 file is the configuration for hub.freebsd.org, the project's mail +# server. It needs to handle some ugly mail volumes. +# + +divert(0)dnl +include(../m4/cf.m4) +VERSIONID(`$Id: hub.mc,v 1.3 1997/10/06 00:09:17 jmb Exp $') + +OSTYPE(bsd4.4)dnl +DOMAIN(generic)dnl +MAILER(local)dnl +MAILER(smtp)dnl +MASQUERADE_AS(FreeBSD.ORG)dnl +FEATURE(mailertable, `hash -o /etc/mailertable')dnl +FEATURE(masquerade_envelope)dnl +EXPOSED_USER(root)dnl +EXPOSED_USER(mailman)dnl +define(`UUCP_RELAY', uunet.uu.net)dnl +define(`BITNET_RELAY', mailhost.Berkeley.EDU)dnl +define(`CSNET_RELAY', mailhost.Berkeley.EDU)dnl +define(`confCW_FILE', `-o /etc/sendmail.cw')dnl +define(`confCHECKPOINT_INTERVAL', `4')dnl +define(`confAUTO_REBUILD', `True')dnl +define(`confMIN_FREE_BLOCKS', `1024')dnl +define(`confSMTP_MAILER', `smtp8')dnl +define(`confME_TOO', `True')dnl +define(`confMCI_CACHE_TIMEOUT', `10m')dnl +define(`confTO_QUEUEWARN', `1d')dnl +define(`confTO_QUEUEWARN_NORMAL', `1d')dnl +define(`confTO_RCPT', `10m')dnl +define(`confTO_DATABLOCK', `10m')dnl +define(`confTO_DATAFINAL', `10m')dnl +define(`confTO_COMMAND', `10m')dnl +define(`confTO_HOSTSTATUS', `30m')dnl +define(`confMIN_QUEUE_AGE', `30m')dnl +define(`confNO_RCPT_ACTION', `add-to-undisclosed')dnl +define(`confTRUSTED_USERS', `majordom')dnl +define(`confRECEIVED_HEADER', `$?sfrom $s $.$?_($?s$|from $.$_) + $.by $j ($v/$Z)$?r with $r$. id $i$?u + for $u; $|; + $.$b$?g + (envelope-from $g)$.')dnl +define(`confHOST_STATUS_DIRECTORY', `.hoststat')dnl +define(`confMAX_DAEMON_CHILDREN', `8')dnl +define(`confCONNECTION_THROTTLE_RATE', `1')dnl +define(`confFORWARD_PATH', `/var/forward/$u')dnl + +LOCAL_CONFIG +Cw localhost freefall.freebsd.org + +Kdenyip hash -o -a.REJECT /etc/mail/denyip.db +Kspamsites hash -o -a.REJECT /etc/mail/spamsites.db + +Scheck_relay +# called with host.tld and IP address of connecting host. +# ip address must NOT be in the "denyip" database +R$* $| [$+ $1 $| $2 should not be needed +R$* $| $+] $1 $| $2 same (bat 2nd ed p510) +R$* $| $* $: $1 $| $(denyip $2 $) +R$* $| $*.REJECT $#error $: 521 blocked. contact postmaster@FreeBSD.ORG ($2) +# host must *not* be in the "spamsites" database +R$+.$+.$+ $| $* $2.$3 $| $4 +R$+.$+ $| $* $: $(spamsites $1.$2 $) $| $3 +R$*.REJECT $| $* $#error $: 521 blocked. contact postmaster@FreeBSD.ORG ($1) +# Host must be resolvable +#R$* $| $* $: <?> <$1 $| $2> $>3 foo@$1 +#R<?> <$*> $*<@$*.> $: $1 +#R<?> <$*> $*<@$*> $#error $: 451 Domain does not resolve ($1) + +# spamsites database optional--fail safe, deliver the mail. +Scheck_mail +# called with envelope sender, "Mail From: xxx", of SMTP conversation +# +# can't force DNS, Poul-Henning Kamp and others dont resolve +# <root@dgbmsu1.s2.dgb.tfs>... Domain does not resolve +# +R$* $: <?> $>3 $1 +R<?> $* < @ $+ . > $: $2 +# R<?> $* < @ $+ > $#error $: "451 Domain does not resolve" +R<?> $* < @ $+ > $: $2 +R$+.$+.$+ $2.$3 +R$* $: $(spamsites $1 $: OK $) +ROK $@ OK +R$+.REJECT $#error $: 521 $1 + +Sxlat # for sendmail -bt +R$* $$| $* $: $1 $| $2 +R$* $| $* $@ $>check_relay $1 $| $2 |