warrenliang
IS-IT--Management
Morning,
I have question about sendmail configuration and how it determines which /etc/mail/access.* database to use.
File sendmail.mc:
divert(-1)
#
divert(0)dnl
VERSIONID(`$Id: generic-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro Exp $')
OSTYPE(solaris2)dnl
DOMAIN(mydomain)dnl
define('confHOST_STATUS_DIRECTORY', '/etc/mail/statistics')dnl
define(`DATABASE_MAP_TYPE', `dbm')dnl
define(`confTO_HELO', `5m')dnl
define(`confTO_IDENT', `0s')dnl
define(`confDONT_BLAME_SENDMAIL')dnl
define(`QUEUE_DIR', `/var/spool/mqueue')dnl
QUEUE_GROUP(`regular', `')dnl
QUEUE_GROUP(`slowq', `P=/var/spool/mqueue/slowq', I=30m)dnl
FEATURE(`nouucp', `reject')
FEATURE(`redirect')
FEATURE(`mailertable')
FEATURE(`access_db', `dbm -T<TMPF> /etc/mail/access')
FEATURE(`blacklist_recipients')
FEATURE(`queuegroup')dnl
MAILER(local)dnl
MAILER(smtp)dnl
INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, T=S:5m;R:5m;E:5m')
In /etc/mail/access file, I enter an entry to disable a recipiant:
…
To:Jsmith@mydomain.com REJECT
…
Then issue command $makemap hash /etc/mail/access < /etc/mail/access
#
Send an email from Internet to Jsmith@mydomain.com, the recipient still accepts email…
On the /etc/mail directory, there are several access.* files:
-rw-r--r-- 1 root other 4007 Jun 14 08:43 access
-rw-r--r-- 1 root other 40960 Jun 14 08:44 access.db
-rw-r----- 1 root other 4096 Apr 5 12:59 access.dir
-rw-r----- 1 root other 5120 Apr 5 12:59 access.pag
It looks like sendmail does not pick up access.db, and uses access.pag instead. Is it possible?
Thanks in advance,
Sendmail: V8.12.10
O/S: Solaris 8
Patch level: 117000-03
Warren L.
I have question about sendmail configuration and how it determines which /etc/mail/access.* database to use.
File sendmail.mc:
divert(-1)
#
divert(0)dnl
VERSIONID(`$Id: generic-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro Exp $')
OSTYPE(solaris2)dnl
DOMAIN(mydomain)dnl
define('confHOST_STATUS_DIRECTORY', '/etc/mail/statistics')dnl
define(`DATABASE_MAP_TYPE', `dbm')dnl
define(`confTO_HELO', `5m')dnl
define(`confTO_IDENT', `0s')dnl
define(`confDONT_BLAME_SENDMAIL')dnl
define(`QUEUE_DIR', `/var/spool/mqueue')dnl
QUEUE_GROUP(`regular', `')dnl
QUEUE_GROUP(`slowq', `P=/var/spool/mqueue/slowq', I=30m)dnl
FEATURE(`nouucp', `reject')
FEATURE(`redirect')
FEATURE(`mailertable')
FEATURE(`access_db', `dbm -T<TMPF> /etc/mail/access')
FEATURE(`blacklist_recipients')
FEATURE(`queuegroup')dnl
MAILER(local)dnl
MAILER(smtp)dnl
INPUT_MAIL_FILTER(`mimedefang', `S=unix:/var/spool/MIMEDefang/mimedefang.sock, T=S:5m;R:5m;E:5m')
In /etc/mail/access file, I enter an entry to disable a recipiant:
…
To:Jsmith@mydomain.com REJECT
…
Then issue command $makemap hash /etc/mail/access < /etc/mail/access
#
Send an email from Internet to Jsmith@mydomain.com, the recipient still accepts email…
On the /etc/mail directory, there are several access.* files:
-rw-r--r-- 1 root other 4007 Jun 14 08:43 access
-rw-r--r-- 1 root other 40960 Jun 14 08:44 access.db
-rw-r----- 1 root other 4096 Apr 5 12:59 access.dir
-rw-r----- 1 root other 5120 Apr 5 12:59 access.pag
It looks like sendmail does not pick up access.db, and uses access.pag instead. Is it possible?
Thanks in advance,
Sendmail: V8.12.10
O/S: Solaris 8
Patch level: 117000-03
Warren L.