diff options
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 |