[PLUG] Sendmail Help?

Russ Gilman-Hunt gilmanhunt at comcast.net
Mon Feb 4 04:32:34 UTC 2008


Ok, I've fouled this up somehow, and I need help making it work again. 

The scenario is:
Company A is a hosting company, and provides mail service for companyb.
They've been doing this for a while, and their current setup has worked
in the past, but something I've done in the last week or perhaps year
( it's hard to say how long this hasn't been working ) has fouled it up.

CompanyB is assigned a real live user on CompanyA's mailserver,
usercompanyb. CompanyB is in the /etc/mail/local-host-names
and /etc/mail/virtuser-domains, and there are several users assigned to
this company in the /etc/mail/virtusertable ( which is hashed ). A
segment of /etc/mail/virtusertable looks like
alice at companyb.com usercompanyb
bob at companyb.com usercompanyb
carol at companyb.com usercompanyb

There's a seriously funny looking procmailrc file to move the files from
usercompanyb to /home/usercompanyb/mail/(alice|bob|carol) .

The problem, in a nutshell, is this: If I send mail from
bob at companyb.com to alice at companyb.com and cc to carol at companyb.com,
carol does not get it. It does not even show up in the maillog file when
I "tail -f /var/log/maillog | grep companyb.com" -- the one for alice
shows up but not carol.  If I send mail from my gmail account to both
alice and carol ( to:alice, cc:carol, same as testing as bob ) both
entries show up in the /var/log/maillog and in their mailboxes.

Which means it looks to me like something in the sendmail.cf file that
keeps bob from sending duplicate messages to usercompanyb ( something in
local delivery?). I build it regular like from sendmail.mc, which I've
duplicated below, trimming out some comments and assorted crap.

So, the question is; what did I break?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTRUSTED_USER', `smmsp')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS',
`authwarnings,novrfy,noexpn,restrictqrun,needmailhelo')dnl
define(`confAUTH_OPTIONS', `A')dnl
dnl define(`confDELIVERY_MODE', `deferred')dnl
dnl # this to play with bcc settings
dnl # see p728 of the bat book
define(`confNO_RCPT_ACTION',`add-to-undisclosed')dnl
define(`confTO_QUEUEWARN', `3h')dnl
define(`confTO_QUEUERETURN', `2d')dnl
define(`confTO_QUEUERETURN_NORMAL', `3d')dnl
define(`confTO_QUEUERETURN_URGENT', `18h')dnl
define(`confTO_QUEUERETURN_NONURGENT', `3d')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
VIRTUSER_DOMAIN_FILE( `/etc/mail/virtuser-domains' )dnl
FEATURE(`virtuser_entire_domain')dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`greet_pause', 1500)dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`dnsbl', `sbl-xbl.spamhaus.org')dnl
EXPOSED_USER(`root')dnl
dnl #
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav-milter/milter.sock, F=m, T=S:4m;R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clmilter')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

define(`confCONNECTION_RATE_THROTTLE', `50')dnl
define(`confTO_ICONNECT', `15s')dnl
define(`confTO_HELO', `2m')dnl
define(`confTO_MAIL', `1m')dnl
define(`confTO_RCPT', `1m')dnl
define(`confTO_DATAINIT', `1m')dnl
define(`confTO_DATABLOCK', `1m')dnl
define(`confTO_DATAFINAL', `1m')dnl
define(`confTO_RSET', `1m')dnl
define(`confTO_QUIT', `1m')dnl
define(`confTO_MISC', `1m')dnl
define(`confTO_COMMAND', `1m')dnl

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Thanks in advance for shining any light on this confusing situation.
Russ




More information about the PLUG mailing list