Sendmail question
#1
Scooby Regular
Thread Starter
iTrader: (1)
Join Date: Apr 2001
Posts: 531
Likes: 0
Received 0 Likes
on
0 Posts
One of our customers has got a legacy app that communicates with another system via email, and it's going a bit "wonky" at the moment and they've asked me to help.
Unfortunately, its debugging capabilities are somewhat limited, so I'd like to set sendmail to copy all mails to and from its' account to my account so that I can see what's going on. After a good few hours trawling through man sendmail and various Google searches, I'm still not really sure what I'm supposed to do
I've got full access to the sendmail.mc file and can change it if needs be, plus I can possibly install some extra software if that's what's needed to do the deed.
For reference, I'm dealing with Sendmail V10 on RedHat 8.0 and any and all suggestions would be gratefully received
Unfortunately, its debugging capabilities are somewhat limited, so I'd like to set sendmail to copy all mails to and from its' account to my account so that I can see what's going on. After a good few hours trawling through man sendmail and various Google searches, I'm still not really sure what I'm supposed to do
I've got full access to the sendmail.mc file and can change it if needs be, plus I can possibly install some extra software if that's what's needed to do the deed.
For reference, I'm dealing with Sendmail V10 on RedHat 8.0 and any and all suggestions would be gratefully received
#2
Can't you just use procmail ? If you don't have it defined as your local delivery agent in the sendmail config file you can call it from a .forward in the receiving accounts home dir, should like something like:
"|IFS=' ' && exec /usr/local/bin/procmail || exit 75 #userid"
Configure a procmail "recipe" in your .procmailrc to send a copy to your email account, should look something like this:
:0c # That's colon, zero, lowercase "c"
! youraccount@other-place.com # That's exclamation mark, address to forward to
-- OR If you want the email saved to a file, which may be easier --
# First, we forward a copy to your account
:0c
! youraccount@other-place.com
# Then, save it in a folder
:0:
app-debug
Here's a useful procmail page if your unfamiliar with it's use:
http://www.uwasa.fi/~ts/info/proctips.html
HTH
Michael
[Edited by michael_clarkson - 6/18/2003 8:16:21 AM]
[Edited by michael_clarkson - 6/18/2003 8:20:29 AM]
"|IFS=' ' && exec /usr/local/bin/procmail || exit 75 #userid"
Configure a procmail "recipe" in your .procmailrc to send a copy to your email account, should look something like this:
:0c # That's colon, zero, lowercase "c"
! youraccount@other-place.com # That's exclamation mark, address to forward to
-- OR If you want the email saved to a file, which may be easier --
# First, we forward a copy to your account
:0c
! youraccount@other-place.com
# Then, save it in a folder
:0:
app-debug
Here's a useful procmail page if your unfamiliar with it's use:
http://www.uwasa.fi/~ts/info/proctips.html
HTH
Michael
[Edited by michael_clarkson - 6/18/2003 8:16:21 AM]
[Edited by michael_clarkson - 6/18/2003 8:20:29 AM]
#4
Scooby Regular
Thread Starter
iTrader: (1)
Join Date: Apr 2001
Posts: 531
Likes: 0
Received 0 Likes
on
0 Posts
Can't you just use procmail ?
Thanks for that. Now all I've got to do is reverse engineer the fixed-width format embedded in the message bodies, work out what the problem is and try and come up with a fix
Oh well, keeps me busy I s'pose
Thread
Thread Starter
Forum
Replies
Last Post
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM