More sendmail debug ouput from MailScanner init.d script

Scott Silva ssilva at sgvwater.com
Thu Jan 11 19:00:58 CET 2007


Brent Strignano spake the following on 1/11/2007 9:20 AM:
> 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
> 
I found this;
http://www.devshed.com/c/a/Administration/Getting-Started-with-Sendmail/12/
It looks like you need a log level greater than 9 to get more info.
It was written for sendmail 8.12, but I don't think it changed that much.


-- 

MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!



More information about the MailScanner mailing list