Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Sendmail question

Thread Tools
 
Search this Thread
 
Old 17 June 2003, 08:51 PM
  #1  
stu200
Scooby Regular
Thread Starter
iTrader: (1)
 
stu200's Avatar
 
Join Date: Apr 2001
Posts: 531
Likes: 0
Received 0 Likes on 0 Posts
Question

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
Old 18 June 2003, 08:09 AM
  #2  
michael_clarkson
Scooby Regular
 
michael_clarkson's Avatar
 
Join Date: Jan 2001
Posts: 253
Likes: 0
Received 0 Likes on 0 Posts
Post

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]
Old 18 June 2003, 08:39 AM
  #3  
bashful
Scooby Regular
 
bashful's Avatar
 
Join Date: Aug 2002
Posts: 154
Likes: 0
Received 0 Likes on 0 Posts
Post

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.
Old 18 June 2003, 08:14 PM
  #4  
stu200
Scooby Regular
Thread Starter
iTrader: (1)
 
stu200's Avatar
 
Join Date: Apr 2001
Posts: 531
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

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"

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
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
slimwiltaz
General Technical
20
09 October 2015 07:40 PM
IanG1983
Wheels, Tyres & Brakes
2
06 October 2015 03:08 PM
Brzoza
Engine Management and ECU Remapping
1
02 October 2015 05:26 PM
the shreksta
Other Marques
26
01 October 2015 02:30 PM



Quick Reply: Sendmail question



All times are GMT +1. The time now is 11:41 PM.