diff options
author | rwatson <rwatson@FreeBSD.org> | 2000-03-12 22:08:35 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2000-03-12 22:08:35 +0000 |
commit | b680890228275589cbf296a51cca5bd5fd2e1ce4 (patch) | |
tree | c783429787e04cfb36f732c559c7e74dc0a41077 /etc/mail | |
parent | 4f641923fca928ef7104ded58de62940c0dcba1f (diff) | |
download | FreeBSD-src-b680890228275589cbf296a51cca5bd5fd2e1ce4.zip FreeBSD-src-b680890228275589cbf296a51cca5bd5fd2e1ce4.tar.gz |
Add sample databases for sendmail (access, mailertable, virtusertable),
as well as rename access.txt back to the standard access. Also modify
the Makefile to know how to build hashes for each of these databases.
If one of the databases is missing when Make is run, use a commented
out version of the sample.
Reviewed by: peter
Approved by: jkh
Diffstat (limited to 'etc/mail')
-rw-r--r-- | etc/mail/Makefile | 31 | ||||
-rw-r--r-- | etc/mail/access.sample | 10 | ||||
-rw-r--r-- | etc/mail/mailertable.sample | 7 | ||||
-rw-r--r-- | etc/mail/virtusertable.sample | 11 |
4 files changed, 56 insertions, 3 deletions
diff --git a/etc/mail/Makefile b/etc/mail/Makefile index fbce06e..b912a05 100644 --- a/etc/mail/Makefile +++ b/etc/mail/Makefile @@ -1,6 +1,31 @@ # $FreeBSD$ -install: - /usr/sbin/makemap hash /etc/mail/access < /etc/mail/access.txt +all: access.db mailertable.db virtusertable.db \ +# /etc/aliases.db -all: install +access.db: access + /usr/sbin/makemap hash access < access + +virtusertable.db: virtusertable + /usr/sbin/makemap hash virtusertable < virtusertable + +mailertable.db: mailertable + /usr/sbin/makemap hash mailertable < mailertable + +#/etc/aliases.db: /etc/aliases +# newaliases + +mailertable: + @echo Generating empty mailertable + sed -e 's/^/#/' < mailertable.sample > mailertable + +access: + @echo Generating empty access + sed -e 's/^/#/' < access.sample > access + +virtusertable: + @echo Generating empty virtusertable + sed -e 's/^/#/' < virtusertable.sample > virtusertable + +clean: + rm -f access.db virtusertable.db mailertable.db diff --git a/etc/mail/access.sample b/etc/mail/access.sample new file mode 100644 index 0000000..cfe4964 --- /dev/null +++ b/etc/mail/access.sample @@ -0,0 +1,10 @@ +# $FreeBSD $ +# +# Mail relay access control list. Default is to reject mail unless the +# destination is local, or listed in /etc/mail/sendmail.cw +# +cyberspammer.com 550 We don't accept mail from spammers +FREE.STEALTH.MAILER@ 550 We don't accept mail from spammers +another.source.of.spam REJECT +okay.cyberspammer.com OK +128.32 RELAY diff --git a/etc/mail/mailertable.sample b/etc/mail/mailertable.sample new file mode 100644 index 0000000..efea3c3 --- /dev/null +++ b/etc/mail/mailertable.sample @@ -0,0 +1,7 @@ +# $FreeBSD $ +# +# List of domains (possibly wildcarded) and destination mailers +# +.my.domain xnet:%1.my.domain +uuhost1.my.domain suucp:uuhost1 +.bitnet smtp:relay.bit.net diff --git a/etc/mail/virtusertable.sample b/etc/mail/virtusertable.sample new file mode 100644 index 0000000..de9b950 --- /dev/null +++ b/etc/mail/virtusertable.sample @@ -0,0 +1,11 @@ +# $FreeBSD $ +# +# Map one or all usernames at a source hostname to a specific (or the same) +# username at another target hostname. Remember to add the source hostname +# to /etc/mail/sendmail.cw so that sendmail will accept mail for the +# source hostname. +# +username@a.sample.hostname localuser +username@a.sample.hostname specificuser@a.possibly.different.hostname +@another.sample.hostname specificuser@a.possibly.different.hostname +@yet.another.sample.hostname %1@a.possibly.different.hostname |