Cover V11, I11
nov2002.tar

Listing 3 Sendmail configuration details

1. port 25 mc file:     

divert(-1)
dnl ################################################ dnl
dnl #   Please leave a copy of this mc file in     # dnl
dnl #   /etc/mail for reference purposes.          # dnl
dnl ################################################ dnl
divert(0)dnl
VERSIONID(`$Id: qbert.mc,v 8.12.1 11/15/2001 Enrique Flores EHF Exp $')
OSTYPE(`solaris2')dnl
EXPOSED_USER(`root')dnl
DOMAIN(`generic')dnl
dnl FEATURE(`ldap_routing', <mailHost>, <mailRoutingAddress>, <bounce>, <detail>)dnl
FEATURE(`ldap_routing', `ldap -1 -v mailHost -k \
  (&(objectClass=MailRecipient)(mail=%0))', `ldap -1 -v mailRoutingAddress -k \
  (&(objectClass=MailRecipient)(mail=%0))', `', `')dnl
FEATURE(`relay_entire_domain')dnl
FEATURE(`promiscuous_relay')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`mailertable', `btree /etc/mail/mailertable')dnl
FEATURE(`virtusertable', `btree /etc/mail/virtusertable')dnl
define(`ALIAS_FILE',`ldap:-k (&(objectClass=mailGroup)(!(objectclass=nisMap))(mail=%0)) -v \
  mgrpRFC822MailMember,/etc/mail/aliases')dnl
define(`confLDAP_DEFAULT_SPEC', `-p 389 -h "ldap1 ldap2 ldap3" -b o=cypress.com')dnl
LDAPROUTE_DOMAIN(`cypress.com')dnl
dnl LDAPROUTE_DOMAIN_FILE(`/etc/mail/ldap-route')dnl
INPUT_MAIL_FILTER(`bmifilter', `S=inet:5513@localhost')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl


2. port 5512 mc file:

divert(-1)
dnl ################################################ dnl
dnl #   Please leave a copy of this mc file in     # dnl
dnl #   /etc/mail for reference purposes.          # dnl
dnl ################################################ dnl
divert(0)dnl
VERSIONID(`$Id: qbert-graymail.mc,v 8.12.1 11/15/2001 Enrique Flores EHF Exp $')
OSTYPE(`solaris2')dnl
EXPOSED_USER(`root')dnl
DOMAIN(`generic')dnl
DAEMON_OPTIONS(`Port=5512')dnl
FEATURE(`no_default_msa')dnl
FEATURE(`use_cw_file')dnl
define(`LUSER_RELAY',`local:nobody')dnl
define(`confCW_FILE', `/etc/mail/local-graymail-hosts')dnl
define(`ALIAS_FILE', `ldap:-k (&(objectClass=mailGroup)(mail=%0)) -v \
  mgrpRFC822MailMember,ldap:-k (&(objectClass=mailRecipient)(mail=%0)) \
  -v mailroutingaddress,/etc/mail/aliases')dnl
define(`QUEUE_DIR', `/var/spool/graymqueue/')dnl
define(`confSMTP_LOGIN_MSG', `Sendmail 8.12.1 w/libmilter and graymail')dnl 
define(`confLDAP_DEFAULT_SPEC', `-p 389 -h "ldap1 ldap2 ldap3" -b o=cypress.com')dnl
LDAPROUTE_DOMAIN(`cypress.com')dnl
dnl LDAPROUTE_DOMAIN_FILE(`/etc/mail/ldap-route')dnl
MAILER(`local')dnl



3. Mlocal entry:

Mlocal,         P=/usr/local/bin/maildrop, F=lsA5:/|@SPfhn, S=10/30, R=20/40,
                T=DNS/RFC822/X-Unix,
                A=maildrop -d $u