More sendmail debug ouput from MailScanner init.d script

Brent Strignano brent at mirabito.com
Thu Jan 11 18:20:28 CET 2007


Hello,

I'm trying to edit the MailScanner init script to make sendmail log
debug info for outgoing mail only maillog. I've found this line in the
StartOutSendmail() section or the init script:

$SENDMAIL $([ -n "$QUEUETIME" ] && echo -q$QUEUETIME) \
                  -OPidFile=$OUTPID

And tried to change it to: 

$SENDMAIL -v $([ -n "$QUEUETIME" ] && echo -q$QUEUETIME) \
                  -OPidFile=$OUTPID \
                -OLogLevel=5

But the log remains the same:

I've also tried $SENDMAIL -v -d 2-17.5 $([ -n "$QUEUETIME" ] && echo
-q$QUEUETIME) \
                  -OPidFile=$OUTPID

Which will print some debug info to the console, but not the SMTP
transaction in the log.

I need try and determine some of my users cant send to a particular
domain. In the log:

Jan  11 10:25:27 mailscan sendmail[26414]: l09FOsYh026289:
to=<xxxxxxx at yyyyyyyy.com>, delay=00:00:33, xdelay=00:00:06,
mailer=esmtp, pri=137329, relay=zzzzz.yyyyyyyyy.com. [xx.yy.220.178],
dsn=5.0.0, stat=Service unavailable

Other users, including test messages sent from root on the mailscanner
server show:

Jan 11 11:03:09 mailscan sendmail[29032]: l0BG2XHF028958:
to=<xxxxxxx at yyyyyyyy.com>, ctladdr=<root at mailscan.zzzzzzzz.com> (0/0),
delay=00:00:36, xdelay=00:00:04, mailer=esmtp, pri=120332,
relay=zzzzz.yyyyyyyyy.com. [xx.yy.220.178], dsn=2.0.0, stat=Sent
(l0BG0s4x006941 Message accepted for delivery)

Or

Jan  8 11:01:28 mailscan sendmail[10082]: l08G0Uo8009878:
to=<xxxxxxx at yyyyyyyy.com>, delay=00:00:58, xdelay=00:00:03,
mailer=esmtp, pri=130984, relay=zzzzz.yyyyyyyyy.com. [xx.yy.220.178],
dsn=2.0.0, stat=Sent (l08FxU0b020718 Message accepted for delivery)

And I'm trying to get enough information to prove it isn't us :)

Not sure what else to try, I think running MailScanner -d just debugs
the MailScanner and Spamassassin process right?

Thanks all

Brent

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list