[rt-users] How does RT mail?

Mike Johnson Mike.Johnson at NorMed.ca
Thu Oct 1 08:56:54 EDT 2009


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.
 
An example,
 
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!
 
 
Mike Johnson
Datatel Programmer/Analyst
Northern Ontario School of Medicine
955 Oliver Road
Thunder Bay, ON   P7B 5E1
Phone: 807.766.7331
Email: mike.johnson at normed.ca 
Technology assistance: email nosmhelpdesk at normed.ca 
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" <eroode at barrack.com> 30/09/2009 5:09 pm >>>

On Wednesday, September 30, 2009 at 3:57 PM, Mike Johnson wrote:
> I believe RT executes the send mail command...
> 
> Do like you would for any program...
> 
> replace sendmail with a wrapper sendmail that calls sendmail :P but
> before it calls it, it logs how it calls it to a log file :D


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
creates,
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


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users 

Community help: http://wiki.bestpractical.com ( http://wiki.bestpractical.com/ )
Commercial support: sales at bestpractical.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/ )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20091001/6eaab3cb/attachment.htm>


More information about the rt-users mailing list