You didn’t understand what I was saying.
In your RT installation there is a line in the config file that tells you what RT is using to send the mail. This is exploration you need to do.
Once you know how RT sends mail(by default it uses the sendmail command)… you know how to intercept it.
If it uses /usr/bin/sendmail
What you do…
Create a script in /usr/local/bin called sendmaillogging
Make RT call that one, and in that script, take the arguments that RT is sending to sendmaillogging and call sendmail using those arguments. You now have intercepted RT’s call… that’s the ENTIRE sendmail command RT sends. You could even add yourself as a Bcc to get the actual email it sends… you can do anything, because you are now in control of the command.
Hope that helps!
Northern Ontario School of Medicine
955 Oliver Road
Thunder Bay, ON P7B 5E1
Technology assistance: email email@example.com
Technology Emergency Contact (TEC) Mon-Fri, 8am to 5pm excluding stat holidays:
Off campus toll free 1-800-461-8777, option 8, or locally either
(705)-662-7120 or (807)-766-7500
“Roode, Eric” firstname.lastname@example.org 30/09/2009 5:09 pm >>>
I believe RT executes the send mail command…
Do like you would for any program…
replace sendmail with a wrapper sendmail that calls sendmail but
before it calls it, it logs how it calls it to a log file
I turned logging on, and cranked the log level up to ‘debug’.
I see the headers of the e-mail message that RT::Action::SendEmail
but I do not see the send mail wrapper like you say.
I want to know which program (I assumed
sendmail, but who knows)
RT calls, and what command-line options it uses.
Any helpful information would be appreciated.
– Eric Roode
Community help: http://wiki.bestpractical.com ( http://wiki.bestpractical.com/ )
Commercial support: email@example.com
Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com ( http://rtbook.bestpractical.com/ )