On Fri, 6 Oct 2000, Barry Smoke wrote:
> I can't find how to log only failures....
> I am using Bruce's qmail rpm, and daemontools, svscan,
> I only want connection failures, and delivery failures in the log...
> How do I do this?
You can do it by applying appropriate filtering rules to multilog.
However, it's not going to be useful. Failure and deferral messages only
have the delivery tag:
@4000000039dde6360d85b15c delivery 298676: failure:
172.16.130.10_does_not_like_recipient./Remote_host_said:_550_unknown_user_<[EMAIL PROTECTED]>/Giving_up_on_172.16.130.10./
@4000000039dde56e3436fb44 delivery 298646: deferral:
Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
They don't contain any details about sender or recipient.
A better approach wuld be to log everything and then use qmailanalog
to extract the failure and deferral details. The matchup program from
qmailanalog matches message details and can show complete deferral and
failure details.
d z 970843006.580543500 970843407.818370500 970843440.506717500 11211
<> [EMAIL PROTECTED] 9688 404
209.96.210.73_failed_on_DATA_command./Remote_host_said:_451_qqt_failure_(#4.3.0)/
You'll need some way of converting the tai64 timestamps to unix epoch
timestamps. Russ Allbery has such a program, as do I - see www.qmail.org
for details.
>
> Thanks,
> Barry Smoke
> Network Administrator
> Bryant Public Schools
> Bryant, AR
>
--
Regards
Peter
----------
Peter Samuel [EMAIL PROTECTED]
http://www.e-smith.org (development) http://www.e-smith.com (corporate)
Phone: +1 613 368 4398 Fax: +1 613 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada
"If you kill all your unhappy customers, you'll only have happy ones left"