ScoobyNet.com - Subaru Enthusiast Forum

ScoobyNet.com - Subaru Enthusiast Forum (https://www.scoobynet.com/)
-   Computer & Technology Related (https://www.scoobynet.com/computer-and-technology-related-34/)
-   -   Sendmail question (https://www.scoobynet.com/computer-and-technology-related-34/220971-sendmail-question.html)

stu200 17 June 2003 08:51 PM

One of our customers has got a legacy app that communicates with another system via email, and it's going a bit "wonky" :rolleyes: 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 :)

michael_clarkson 18 June 2003 08:09 AM

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]

bashful 18 June 2003 08:39 AM

Or, if the box isn't too busy, set sendmail to run with a '-X /file' flag to send a copy of all mail to /file.

stu200 18 June 2003 08:14 PM


Can't you just use procmail ?
If I'd known about it ... ;) I tend to leave the sysadmin stuff to others these days, but they were just giving me blank looks as they "only do Windows" :rolleyes:

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 :rolleyes:

Oh well, keeps me busy I s'pose :)


All times are GMT +1. The time now is 12:08 PM.


© 2024 MH Sub I, LLC dba Internet Brands