This is more of a generic sendmail question. This is on a AIX server but I think tracing send mail would be the same.
There is some process sending a bad mail message.
It looks like some user has written a bad script and now I am getting a bunch of messages like this in my outlook mail box.
What I am trying to do it track down the offending job. I looked at a bunch of the crons but this is a sybase server and tons of jobs.
I was considering writing a wrapper that would call my script first before sendmail and see if it could capture some information.
There is not much information in the bounced message.
Is there a way to stop sendmail so the mail will queue up and I can try to trace the job before it leaves the server.
daemon@xxx.mydomain.com
A problem occurred during delivery of this message. Microsoft Exchange will not try to redeliver this message for you. Please try resending this message later, or provide the following diagnostic text to your system administrator.
Diagnostic information for administrators:
Generating server: xxx.mydomain.com
daemon@xxx.mydomain.com
#< #5.3.0> #SMTP#
Original message headers:
Return-Path: <MAILER-DAEMON>
Received: from localhost (localhost) by xxx.mydomain.com (AIX4.3/8.9.3/8.9.3)
with internal id IAA51924; Mon, 24 Oct 2011 08:00:01 -0400
Date: Mon, 24 Oct 2011 08:00:01 -0400
From: Mail Delivery Subsystem <MAILER-DAEMON>
Message-ID: <201110241200.IAA51924@xxx.mydomain.com>
To: daemon
MIME-Version: 1.0
Subject: Returned mail: Insufficient permission
Auto-Submitted: auto-generated (failure)
X-MIMETrack: Itemize by SMTP Server on xxx/GATEWAY/SRV/xx(Release 6.5.6FP2|October
17, 2007) at 10/24/2011 07:55:31 AM,
Serialize by Router on xxx/GATEWAY/SRV/xxx(Release 6.5.6FP2|October 17, 2007) at
10/24/2011 07:55:32 AM,
Serialize complete at 10/24/2011 07:55:32 AM
Content-Type: multipart/report; report-type=delivery-status;
boundary="IAA51924.1319457601/xxx.mydomain.com"