Configure ‘/usr/lib/mail/cf/sendmail.mc’ to meet your needs; for example, to use the access_db and mailertable features:
divert(0)dnl
VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04')
OSTYPE(`solaris8')dnl
DOMAIN(`generic')dnl
FEATURE(access_db, `hash -o -T
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
MAILER(`local')dnl
MAILER(`smtp')dnl
The new ‘sendmail.cf’ can be built in ‘/usr/lib/mail/cf/sendmail.mc’ by running ‘make’ as root. Copy the new ‘sendmail.cf’ file to ‘/etc/mail’ and restart sendmail by running:
# svcadm restart sendmail
An example mailertable mail map would be as follows:
example.org smtp:mx.example.org
Once your map files are ready, use ‘makemap’ to create the database files for each map:
# makemap -v hash mailertable < mailertable
# makemap -v hash access < access
Post a Comment