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
This commit is contained in:
parent
02a0de0245
commit
c6b23672b0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57947
@ -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
|
||||
|
10
etc/mail/access.sample
Normal file
10
etc/mail/access.sample
Normal file
@ -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
|
7
etc/mail/mailertable.sample
Normal file
7
etc/mail/mailertable.sample
Normal file
@ -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
|
11
etc/mail/virtusertable.sample
Normal file
11
etc/mail/virtusertable.sample
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user