summaryrefslogtreecommitdiff
path: root/debian/db-examples
diff options
context:
space:
mode:
Diffstat (limited to 'debian/db-examples')
-rw-r--r--debian/db-examples/access26
-rw-r--r--debian/db-examples/aliases15
-rw-r--r--debian/db-examples/domaintable26
-rw-r--r--debian/db-examples/genericstable36
-rw-r--r--debian/db-examples/mailertable50
-rw-r--r--debian/db-examples/relay-domains2
-rw-r--r--debian/db-examples/sendmail.cM32
-rw-r--r--debian/db-examples/virtusertable8
8 files changed, 192 insertions, 3 deletions
diff --git a/debian/db-examples/access b/debian/db-examples/access
index 31d8c38..9eea701 100644
--- a/debian/db-examples/access
+++ b/debian/db-examples/access
@@ -10,7 +10,7 @@
# * Who we will not send to
#
# Usage:
-# FEATURE(access_db[, hash -o /etc/mail/access])dnl
+# FEATURE(access_db[, type [-o] /etc/mail/access])dnl
# makemap hash access < access
#
# Format:
@@ -54,13 +54,35 @@
# FEATURE(blacklist_recipients)dnl
# FEATURE(rbl[,alternate server])dnl
# FEATURE(orbs[,alternate server])dnl <<- Debian addition
+# FEATURE(orca[,alternate server])dnl <<- Debian addition
# FEATURE(accept_unqualified_senders)dnl
# FEATURE(accept_unresolvable_domains)dnl
#
-# Local addresses 10.x.x.x, 127.x.x.x, 192.168.x.x can relay
+# Local addresses 10.x.x.x, 127.x.x.x, 172.16-31.x.x 192.168.x.x can relay
+# Note Well! You *must* make sure these address can't be spoofed externally
10 RELAY
127 RELAY
+172.16 RELAY
+172.17 RELAY
+172.18 RELAY
+172.19 RELAY
+172.20 RELAY
+172.21 RELAY
+172.22 RELAY
+172.23 RELAY
+172.24 RELAY
+172.25 RELAY
+172.26 RELAY
+172.27 RELAY
+172.28 RELAY
+172.29 RELAY
+172.30 RELAY
+172.31 RELAY
192.168 RELAY
#
# Hosts that are allowed to talk to me
#
+#
+# Blacklisted users
+#
+reject@ REJECT
diff --git a/debian/db-examples/aliases b/debian/db-examples/aliases
new file mode 100644
index 0000000..8e99427
--- /dev/null
+++ b/debian/db-examples/aliases
@@ -0,0 +1,15 @@
+#
+# Mail aliases for sendmail
+#
+# You must run newaliases(1) after making changes to this file.
+#
+
+# Required aliases
+postmaster: root
+MAILER-DAEMON: postmaster
+
+# Common aliases
+abuse: postmaster
+spam: postmaster
+
+# Other aliases
diff --git a/debian/db-examples/domaintable b/debian/db-examples/domaintable
new file mode 100644
index 0000000..82b3ff7
--- /dev/null
+++ b/debian/db-examples/domaintable
@@ -0,0 +1,26 @@
+# /etc/mail/domaintable
+# Copyright (c) 1998, Richard Nelson <cowboy@debian.org>.
+# Time-stamp: <1998/10/27 10:00:00 cowboy>
+# GPL'd config file, please feed any gripes, suggestions, etc. to me
+#
+# Function:
+# Specify a mapping from old host name to new host name.
+# Commonly used to support old (or merged) domain names.
+# The host name in the lhs will be rewritten to that in the rhs
+#
+# Usage:
+# FEATURE(domaintable[, type [-o] /etc/mail/domaintable])dnl
+# makemap hash domaintable < domaintable
+#
+# Format:
+# old fqdn new fqdn
+#
+# Examples:
+# debian.com debian.org
+# .debian.com %0.debian.org
+#
+# Notes:
+#
+# Related:
+#
+#.cv.lexington.ibm.com %0.lexington.ibm.com
diff --git a/debian/db-examples/genericstable b/debian/db-examples/genericstable
new file mode 100644
index 0000000..44bf03c
--- /dev/null
+++ b/debian/db-examples/genericstable
@@ -0,0 +1,36 @@
+# /etc/mail/genericstable
+# Copyright (c) 1998, Richard Nelson <cowboy@debian.org>.
+# Time-stamp: <1998/10/27 10:00:00 cowboy>
+# GPL'd config file, please feed any gripes, suggestions, etc. to me
+#
+# Function:
+# Cause certain addresses originating locally (unqualified), or
+# from a domain in $=G to be rewritten based upon the map below.
+# This mapping may change both the user and domain name.
+#
+# Usage:
+# FEATURE(genericstable[, type [-o] /etc/mail/genericstable])dnl
+# makemap hash genericstable < genericstable
+#
+# Format:
+# localuser realuser@realdomain <<- implied $j or masq domain
+# user@host realuser@realhost <<- tried first
+# user[@host] realuser[@realhost]
+#
+# Examples:
+#
+# Notes:
+# * Masquerading is *required* for genericstable support!
+# * Then genericstable should only be enabled if needed as it
+# causes every sender to be looked up in the database
+# * Members of $=w are *not* automatically placed in $=G
+# * For local mail, FEATURE(always_add_domain) is necessary
+#
+# Related:
+# EXPOSED_USER(root uucp)dnl <<- these are exempt from masquerading
+# FEATURE(allmasquerade)dnl <<- rewrite recipient addrs too
+# FEATURE(always_add_domain)dnl <<- add domain to unqualified names
+# FEATURE(limited_masquerade)dnl <<- only masq domains in $=M
+# FEATURE(masquerade_envelope)dnl <<- rewrite envelope return address too
+# GENERICS_DOMAIN_FILE(`/etc/mail/sendmail.cG')dnl <<- masq From:
+#
diff --git a/debian/db-examples/mailertable b/debian/db-examples/mailertable
new file mode 100644
index 0000000..79d950f
--- /dev/null
+++ b/debian/db-examples/mailertable
@@ -0,0 +1,50 @@
+# /etc/mail/mailertable
+# Copyright (c) 1998, Richard Nelson <cowboy@debian.org>.
+# Time-stamp: <1998/10/27 10:00:00 cowboy>
+# GPL'd config file, please feed any gripes, suggestions, etc. to me
+#
+# Function:
+# Specify a mapping from old host name to new host name.
+# Commonly used to support old (or merged) domain names.
+# The host name in the lhs will be rewritten to that in the rhs
+#
+# Usage:
+# FEATURE(mailertable[, type [-o] /etc/mail/mailertable])dnl
+# makemap hash mailertable < mailertable
+#
+# Format:
+# Local recipients:
+# <address> local:user
+# <address> local: <<- will use same user
+# Error messages:
+# badhost error:nohost mail to %0 is prohibited
+# .baddomain error:nohost mail to %1%0 is prohibited
+#
+# Examples:
+# Local recipients:
+# <address> local:user
+# <address> local: <<- will use same user
+# Error messages:
+# badhost error:nohost mail to %0 is prohibited
+# .baddomain error:nohost mail to %1%0 is prohibited
+#
+# Notes:
+#
+# Related:
+#
+# Address rewrites for hosts *NOT IN* class $w
+# Direct delivery, %0 is left side
+# friend.dom smtp:[%0]:[some.smart.host]
+# Direct deliver of domain, smarthost as second choice
+# .friend.dom smtp:[%1%0]:[some.smart.host]
+# Default route, via smarthost
+# . smtp:[some.smart.host]
+#
+badhost error:nohost mail to %0 is prohibited
+.baddomain error:nohost mail to %1%0 is prohibited
+#
+# Sites we deliver directly to, bypassing SMARTHOST:
+#
+# Sites that use DUL: Dialup User Lists (or equivalent)
+#aol.com esmtp:[relay]
+#primenet.com esmtp:[relay]
diff --git a/debian/db-examples/relay-domains b/debian/db-examples/relay-domains
index a1f319d..393f65d 100644
--- a/debian/db-examples/relay-domains
+++ b/debian/db-examples/relay-domains
@@ -7,7 +7,7 @@
# Control what hosts are allowed to relay (or be a relay)
#
# Usage:
-# define(`confCR_FILE', `-o /etc/mail/relay-domains')dnl
+# define(`confCR_FILE', `[-o ]/etc/mail/relay-domains')dnl
#
# Format:
# lhs:
diff --git a/debian/db-examples/sendmail.cM b/debian/db-examples/sendmail.cM
new file mode 100644
index 0000000..8806f3b
--- /dev/null
+++ b/debian/db-examples/sendmail.cM
@@ -0,0 +1,32 @@
+# /etc/mail/sendmail.cM
+# Copyright (c) 1998, Richard Nelson <cowboy@debian.org>.
+# Time-stamp: <1998/10/27 10:00:00 cowboy>
+# GPL'd config file, please feed any gripes, suggestions, etc. to me
+#
+# Function:
+# Specify mail domains, which when relayed, will be rewritten
+# to appear as the MASQUERADE_AS address
+#
+# Usage:
+# MASQUERADE_DOMAIN_FILE(`[-o ]/etc/mail/sendmail.cM')dnl
+#
+# Format:
+# fqdn
+#
+# Examples:
+# debian.org
+#
+# Notes:
+# Class=$M
+#
+# Related:
+# EXPOSED_USER(root uucp)dnl <<- these are exempt from masquerading
+# FEATURE(allmasquerade)dnl <<- rewrite recipient addrs too
+# FEATURE(always_add_domain)dnl <<- add domain to unqualified names
+# FEATURE(limited_masquerade)dnl <<- only masq domains in $=M
+# FEATURE(masquerade_entire_domain)dnl <<- masq all hosts under domain
+# FEATURE(masquerade_envelope)dnl <<- rewrite envelope return address too
+# GENERICS_DOMAIN_FILE(`/etc/mail/sendmail.cG')dnl <<- masq From:
+#
+# Local names
+#
diff --git a/debian/db-examples/virtusertable b/debian/db-examples/virtusertable
new file mode 100644
index 0000000..3512635
--- /dev/null
+++ b/debian/db-examples/virtusertable
@@ -0,0 +1,8 @@
+# Address rewrites for incomming mail
+# user@realdomain (must be in $w) localuser (may be an alias)
+# info@foo.com foo-info
+# info@bar.com bar-info
+# @baz.org jane@elsewhere.net
+# @foo.org %1@elsewhere.com
+# @bar.org error:nouser User unknown
+#