diff options
author | Richard A Nelson (Rick) <cowboy@debian.org> | 2000-05-25 17:00:00 -0500 |
---|---|---|
committer | Andreas Beckmann <debian@abeckmann.de> | 2012-10-01 19:58:40 +0200 |
commit | e138436bd1943587e16b03505f8b8cc0307c4211 (patch) | |
tree | 23d7165ea5ea99bb43ae1568f4b74d5e59a3bddb /debian/cf | |
parent | 4e2c4cdcd62c4ab1d5e884e8afaa0bbe1b981e42 (diff) | |
download | sendmail-e138436bd1943587e16b03505f8b8cc0307c4211.tar.gz |
Imported Debian patch 8.9.3-23debian/8.9.3-23
Diffstat (limited to 'debian/cf')
-rw-r--r-- | debian/cf/cf/debproto.mc | 42 | ||||
-rw-r--r-- | debian/cf/feature/dont_masquerade_local.m4 | 9 | ||||
-rw-r--r-- | debian/cf/feature/dssl.m4 | 5 | ||||
-rw-r--r-- | debian/cf/feature/imrss.m4 | 5 | ||||
-rw-r--r-- | debian/cf/feature/ldap.m4 | 13 | ||||
-rw-r--r-- | debian/cf/feature/orbs.m4 | 7 | ||||
-rw-r--r-- | debian/cf/feature/orca.m4 | 6 | ||||
-rw-r--r-- | debian/cf/feature/vnet.m4 | 47 | ||||
-rw-r--r-- | debian/cf/hack/nodns.m4 | 44 | ||||
-rw-r--r-- | debian/cf/mailer/xagent.m4 | 26 | ||||
-rw-r--r-- | debian/cf/ostype/debian.m4 | 105 |
11 files changed, 309 insertions, 0 deletions
diff --git a/debian/cf/cf/debproto.mc b/debian/cf/cf/debproto.mc new file mode 100644 index 0000000..ea20179 --- /dev/null +++ b/debian/cf/cf/debproto.mc @@ -0,0 +1,42 @@ +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 used to configure sendmail for use with Debian systems. +# + +divert(0) +VERSIONID(`@(#)sendmail.mc 8.9.3-21 (Debian) 20000309') +OSTYPE(debian)dnl diff --git a/debian/cf/feature/dont_masquerade_local.m4 b/debian/cf/feature/dont_masquerade_local.m4 new file mode 100644 index 0000000..5748721 --- /dev/null +++ b/debian/cf/feature/dont_masquerade_local.m4 @@ -0,0 +1,9 @@ +divert(-1) +# +# Prevent masquerading of local senders when sending to local recipients +# used by: mailer/local.m4 +# +divert(0) +VERSIONID(`@(#)dont_masquerade_local.m4 1.0 (Debian) 1999-04-22') +divert(-1) +define(`_DONT_MASQUERADE_LOCAL_', 1)dnl diff --git a/debian/cf/feature/dssl.m4 b/debian/cf/feature/dssl.m4 new file mode 100644 index 0000000..2ed99ee --- /dev/null +++ b/debian/cf/feature/dssl.m4 @@ -0,0 +1,5 @@ +divert(0) +VERSIONID(`@(#)dssl.m4 1.0 (Debian) 1999-08-03') +divert(-1) +FEATURE(rbl,`dssl.imrss.org',` Mail from $&{client_addr} + rejected - dynamic ip; see http://www.imrss.org/dssl/unblock.html') diff --git a/debian/cf/feature/imrss.m4 b/debian/cf/feature/imrss.m4 new file mode 100644 index 0000000..c01a992 --- /dev/null +++ b/debian/cf/feature/imrss.m4 @@ -0,0 +1,5 @@ +divert(0) +VERSIONID(`@(#)imrss.m4 1.0 (Debian) 1999-08-03') +divert(-1) +FEATURE(rbl,`mr-out.imrss.org',` Mail from $&{client_addr} + rejected - open relay; see http://www.imrss.org/error.html') diff --git a/debian/cf/feature/ldap.m4 b/debian/cf/feature/ldap.m4 new file mode 100644 index 0000000..57ea0e0 --- /dev/null +++ b/debian/cf/feature/ldap.m4 @@ -0,0 +1,13 @@ +divert(-1) +# commentary/copyright +divert(0) +VERSIONID(`@(#)ldap.m4 1.0 (Debian) 1999-04-23') +divert(-1) +dnl # +dnl # Mark LDAP in use for subsequent S5 rule +dnl # +define(`_LDAP_MAP_', 1)dnl +LOCAL_CONFIG +# Define ldap map, arguments come directly from the `FEATURE(ldap, xxx)' +# This version of ldap.m4 only checks the map in the S5 rule +Kldap ldapx _ARG_ diff --git a/debian/cf/feature/orbs.m4 b/debian/cf/feature/orbs.m4 new file mode 100644 index 0000000..aec60a4 --- /dev/null +++ b/debian/cf/feature/orbs.m4 @@ -0,0 +1,7 @@ +divert(0) +VERSIONID(`@(#)orbs.m4 2.0 (Debian) 1999-04-22') +divert(-1) +dnl define(`_ORBS_', ifelse(_ARG_, `', `orbs.dorkslayers.com', `_ARG_'))dnl +dnl define(`_ORBS_', ifelse(_ARG_, `', `relays.orbs.org', `_ARG_'))dnl +FEATURE(rbl,`relays.orbs.org',` Mail from $&{client_addr} + rejected - open relay; see http://www.orbs.org') diff --git a/debian/cf/feature/orca.m4 b/debian/cf/feature/orca.m4 new file mode 100644 index 0000000..4f8e874 --- /dev/null +++ b/debian/cf/feature/orca.m4 @@ -0,0 +1,6 @@ +divert(0) +VERSIONID(`@(#)orca.m4 2.0 (Debian) 1999-04-22') +divert(-1) +dnl define(`_ORCA_', ifelse(_ARG_, `', `dul.orca.bc.ca', `_ARG_'))dnl +FEATURE(rbl,`dul.maps.vix.com',` Mail from $&{client_addr} + rejected - dul; see http://maps.vix.com') diff --git a/debian/cf/feature/vnet.m4 b/debian/cf/feature/vnet.m4 new file mode 100644 index 0000000..56377f4 --- /dev/null +++ b/debian/cf/feature/vnet.m4 @@ -0,0 +1,47 @@ +PUSHDIVERT(0) +LOCAL_CONFIG +# +# Support routing of .rscs nodes via XAGENT +# +# Define vnet/rscs node hlq +CAvnet rscs +# Note: you'll to define your XAGENT node: +#DAlexvmk.lexington.ibm.com +dnl # +dnl # +dnl # +LOCAL_RULE_3 +# +# Support Lotus Notes and VM TCP/IP MTAs +# +# Remove stupid route addressing (%hack) added by VM TCP/IP +R$* % ibmus.rscs < @ $+> $* $: $1 < @ us.ibm.com > $3 +R$* % ibmuk.rscs < @ $+> $* $: $1 < @ uk.ibm.com > $3 +R$* % $-.rscs < @ $+> $* $: $1 < @ $2.rscs > $4 +# Now, try the domaintable yet again... +R$* < @ $-.rscs > $* $: $1 < @ $(domaintable $2.rscs $) > $3 +dnl # +dnl # +dnl # +LOCAL_NET_CONFIG +#------------------------------------------------------------------------ +# Handle RSCS/VM messages and messages addressed to sites internal to IBM +#------------------------------------------------------------------------ +# + +# Skip any local addresses +# (or we'll get a "mail loops back to itself" error +R$* < @ $=w . > $* $@ $1 < @ $2 . > $3 regular local name +R$* < @ $=w > $* $@ $1 < @ $2 . > $3 regular local name + +# Recipients inside IBM--transfer the mail directly. + +R$* < @ $+.ibm.com > $* $#smtp $@ $2.ibm.com $: $1 < @$2.ibm.com > $3 +R$* < @ $+.ibm.com. > $* $#smtp $@ $2.ibm.com $: $1 < @$2.ibm.com > $3 + +# Recipients of the form user@node.vnet get rewritten to +# user@node.RSCS, the message itself is forwarded to the RSCS/VM node +# specified in $A. + +R$* < @ $-.$=A > $* $#smtp $@ $A $: $1 < @$2.RSCS > $4 +POPDIVERT diff --git a/debian/cf/hack/nodns.m4 b/debian/cf/hack/nodns.m4 new file mode 100644 index 0000000..41216f1 --- /dev/null +++ b/debian/cf/hack/nodns.m4 @@ -0,0 +1,44 @@ +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. +# +divert(0) +VERSIONID(`@(#)nodns.m4 8.1 (Debian) 19991013') +divert(-1) +LOCAL_CONFIG +undefine(`confBIND_OPTS')dnl +define(`confSERVICE_SWITCH_FILE', `/etc/mail/service.switch-nodns')dnl +FEATURE(nocanonify)dnl +define(`confDONT_PROBE_INTERFACES', `True')dnl + + diff --git a/debian/cf/mailer/xagent.m4 b/debian/cf/mailer/xagent.m4 new file mode 100644 index 0000000..2a432d1 --- /dev/null +++ b/debian/cf/mailer/xagent.m4 @@ -0,0 +1,26 @@ +PUSHDIVERT(-1) +# +# Copyright (c) 1998 Sendmail, Inc. All rights reserved. +# Copyright (c) 1983 Eric P. Allman. All rights reserved. +# Copyright (c) 1988, 1993 +# The Regents of the University of California. All rights reserved. +# +# By using this file, you agree to the terms and conditions set +# forth in the LICENSE file which can be found at the top level of +# the sendmail distribution. +# +# + +ifdef(`XAGENT_MAILER_PATH',, `define(`XAGENT_MAILER_PATH', /usr/lib/xagent)') +ifdef(`XAGENT_MAILER_FLAGS',, `define(`XAGENT_MAILER_FLAGS', `DFMueXLn')') +ifdef(`XAGENT_MAILER_ARGS',, `define(`XAGENT_MAILER_ARGS', `xagent $h $u')') +POPDIVERT +#################################### +### XAGENT Mailer specification ### +#################################### + +VERSIONID(`@(#)xagent.m4 0.1 (ISSC) 4/19/1996') + +Mxagent, P=XAGENT_MAILER_PATH, F=XAGENT_MAILER_FLAGS, S=11/31, R=21/31, + _OPTINS(`XAGENT_MAILER_MAX', `M=', `, ')T=DNS/RFC822/X-Unix, + A=XAGENT_MAILER_ARGS, E=\n diff --git a/debian/cf/ostype/debian.m4 b/debian/cf/ostype/debian.m4 new file mode 100644 index 0000000..ddc04bc --- /dev/null +++ b/debian/cf/ostype/debian.m4 @@ -0,0 +1,105 @@ +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. +# +divert(0)dnl +VERSIONID(`@(#)debian.m4 8.9.3-21 (Debian) 20000309') +define(`confCF_VERSION', `Debian 8.9.3-21')dnl +dnl # +dnl # changes made herein *must* be reflected in parsemc,updatedb,debian.m4 +dnl # +dnl # paths +define(`_USE_ETC_MAIL_', `True')dnl # a little late for some items ;-{ +define(`DATABASE_MAP_TYPE', `hash')dnl # Default +define(`STATUS_FILE', `/var/lib/sendmail/sendmail.st')dnl +define(`confHOST_STATUS_DIRECTORY', `/var/lib/sendmail/host_status')dnl +define(`HELP_FILE', `/usr/share/sendmail/sendmail.hf')dnl +define(`confCR_FILE', `-o /etc/mail/relay-domains %[^\#]')dnl +define(`confCT_FILE', `-o /etc/mail/trusted-users %[^\#]')dnl +define(`confCW_FILE', `-o /etc/mail/local-host-names %[^\#]')dnl +define(`confUSERDB_SPEC', `/etc/mail/users')dnl +define(`ALIAS_FILE', `/etc/mail/aliases')dnl +define(`confSERVICE_SWITCH_FILE', `/etc/mail/service.switch')dnl +define(`confEBINDIR', `/usr/lib/sm.bin')dnl +dnl # +dnl # flags +define(`confCON_EXPENSIVE', `True')dnl +define(`confDIAL_DELAY', `45')dnl +define(`confMAX_DAEMON_CHILDREN', `30')dnl +define(`confNO_RCPT_ACTION', `add-to-undisclosed')dnl +define(`confQUEUE_SORT_ORDER', `Host')dnl +define(`confSAFE_FILE_ENV')dnl +define(`confSAFE_QUEUE', `True')dnl +define(`confTEMP_FILE_MODE', `600')dnl +define(`confTO_ICONNECT', `30s')dnl +dnl # +dnl # features +dnl # +dnl # mailers +define(`LOCAL_MAILER_PATH', `/usr/lib/sm.bin/sensible-mda')dnl +dnl define(`LOCAL_MAILER_FLAGS', `mnru9')dnl +define(`LOCAL_MAILER_FLAGS', `hnPu90')dnl +define(`LOCAL_MAILER_ARGS', `sensible-mda $g $u $h ${client_addr}')dnl +define(`LOCAL_SHELL_FLAGS', `u90')dnl +define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl +define(`USENET_MAILER_PATH', `/usr/bin/inews')dnl +# +# These undocumented features are available in Debian sendmail. +# O PidFile=/var/run/sendmail.pid +# O DontProbeInterfaces=False +# O MaxRecipientsPerMessage= +# O DeadLetterDrop=False +# O RrtImpliesDsn=False +# +# Sendmail 8.9.1a patch for mime headers to protect the various MUAs: +# This option causes MIME headers to be truncated to a total of 256 +# characters; no individual field is permitted to exceed 128 +# characters. These values should be safe for the common mail clients +# that are vulnerable. +# +# Note: there is a speed trade here, as the entire message must be scanned +#O MaxMimeHeaderLength=256/128 +#`define'(`confMAX_MIME_HEADER_LENGTH', `256/128') +define(`confMAX_MIME_HEADER_LENGTH', `256/128')dnl +# +# Sendmail 8.9.3 fix for header based DOS +# Number of bytes allowed for mail headers, default=32k. +#O MaxHeadersLength=32768 +#`define'(`confMAX_HEADERS_LENGTH', `32768') +define(`confMAX_HEADERS_LENGTH', `32768')dnl +dnl # +dnl # Debian users have group writable directories/files by default... +define(`confDONT_BLAME_SENDMAIL', `ClassFileInUnsafeDirPath,ForwardFileInGroupWritableDirPath,GroupWritableAliasFile,GroupWritableForwardFileSafe,GroupWritableIncludeFileSafe,IncludeFileInGroupWritableDirPath,MapInUnsafeDirPath')dnl +# +DOMAIN(generic)dnl +LOCAL_CONFIG |