summaryrefslogtreecommitdiffabout
path: root/mc/relay2.mc
authorSergey Poznyakoff <gray@gnu.org.ua>2005-09-07 11:23:39 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2005-09-07 11:23:39 (GMT)
commit414c3c66895ef47a02e9ab1e6271197a91cbd4e8 (patch) (side-by-side diff)
tree5bcdced6c6c0be4df521b99ca6ce3c19d85dda70 /mc/relay2.mc
parent3a85a9666c0c86eee3e7d8f4f1d42d32d4762b9a (diff)
downloadgsc-414c3c66895ef47a02e9ab1e6271197a91cbd4e8.tar.gz
gsc-414c3c66895ef47a02e9ab1e6271197a91cbd4e8.tar.bz2
Added to the repository
git-svn-id: file:///svnroot/gsc/trunk@125 d2de0444-eb31-0410-8365-af798a554d48
Diffstat (limited to 'mc/relay2.mc') (more/less context) (ignore whitespace changes)
-rw-r--r--mc/relay2.mc85
1 files changed, 85 insertions, 0 deletions
diff --git a/mc/relay2.mc b/mc/relay2.mc
new file mode 100644
index 0000000..da5b7af
--- a/dev/null
+++ b/mc/relay2.mc
@@ -0,0 +1,85 @@
+dnl * Sendmail configuration for tor.farlep.net
+
+divert(-1)
+
+VERSIONID(`$Id$')
+OSTYPE(linux)dnl
+
+define(`confCF_VERSION',`Relay2 $Revision$')
+
+# Additional header
+HOrganization: ISP Farlep (Odessa)
+DUtor
+Cwtor
+
+dnl * To eliminate 8->7 bit base64 enconding
+define(`SMTP_MAILER_FLAGS',`8')
+define(`ALIAS_FILE', `/etc/mail/aliases')
+
+dnl * Do not reveal my version number
+define(`confRECEIVED_HEADER',`$?sfrom $s $.$?_($?s$|from $.$_) $.
+ by $j$?r with $r$. id $i$?u
+ for $u$.; $b')
+dnl * Also, disable HELP,VRFY,EXPN
+define(`HELP_FILE',`none')
+define(`confSMTP_LOGIN_MSG',`$j Sendmail; $b')
+define(`confPRIVACY_FLAGS',`authwarnings,novrfy,noexpn,noetrn,needmailhelo')
+
+define(`confMAX_MESSAGE_SIZE',`5242880')
+define(`confMESSAGE_TIMEOUT',`7d/3d')
+define(`confTO_INITIAL', `5m')
+define(`confTO_IDENT', `25s')
+define(`confTO_HELO', `5m')
+define(`confTO_MAIL', `15m')
+define(`confTO_RCPT', `60m')
+define(`confTO_DATAINIT', `5m')
+define(`confTO_DATABLOCK',`30m')
+define(`confTO_DATAFINAL',`40m')
+define(`confTO_RSET', `5m')
+define(`confTO_QUIT', `2m')
+define(`confTO_MISC', `2m')
+define(`confTO_COMMAND', `30m')
+define(`confREFUSE_LA',`16')
+define(`confQUEUE_LA',`25')
+define(`confMAX_DAEMON_CHILDREN',`64')
+define(`confCONNECTION_RATE_THROTTLE',`64')
+define(`confCHECK_ALIASES',`False')
+define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
+define(`confFORWARD_PATH', `$z/.forward:$z/.forward.$w')
+define(`confTRY_NULL_MX_LIST')
+
+define(`STATUS_FILE', `/etc/mail/sendmail.st')
+
+FEATURE(use_cw_file)
+FEATURE(redirect)
+FEATURE(always_add_domain)
+FEATURE(access_db, hash -o -T<TMPF> /etc/mail/access)
+FEATURE(mailertable, hash -o /etc/mail/xroutes)
+FEATURE(domaintable, hash -o /etc/mail/domains)
+FEATURE(blacklist_recipients)
+FEATURE(relay_entire_domain)
+
+dnl * RBL configuration
+
+FEATURE(dnsbl, `dyn-rbl.farlep.net', `"E-Cards are not allowed to use SMTP"')
+
+PUSHDIVERT(8)
+# Allow all addresses from our dialup pool
+R$* $: $&{client_addr}
+R::ffff:$-.$-.$-.$- $: OKSOFAR
+R$-.$-.$-.$- $: <?> $(host $4.$3.$2.$1.dialup-rev.farlep.net. $: OK $)
+R<?>OK $: OKSOFAR
+R<?>$* $@ OKSOFAR
+POPDIVERT
+
+FEATURE(dnsbl, `rbl.farlep.net', `"Stop SPAM from this host"')
+FEATURE(dnsbl, `bl.spamcop.net', `"Spam blocked see; http://spamcop.net/bl.shtml?"$&{client_addr}')
+
+include(`milter.conf')
+
+undefine(`LOCAL_MAILER_PATH')
+define(`LOCAL_MAILER_PATH', `/usr/local/libexec/mail.local')
+define(`LOCAL_MAILER_ARGS', `Mail -xt -S /home/%u/.Sive $u')
+
+MAILER(local)
+MAILER(smtp)

Return to:

Send suggestions and report system problems to the System administrator.