Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using Ubuntu 10.04 and by following this tutorial I have made RT run well in everything except for sending outbound emails. The difference is, I need to make RT use an external, existing mail server. The mail server is accessible via SMTP with authentication so I am looking for a place to insert the username and password, but nothing like that seems to exist.

The closest thing that I found by googling is that I need to setup ssmtp or msmtp and use it to forward my outbound emails to the mail server (sorry I lost the link). Is that true? Are there any (perhaps better) other ways?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Getting RT to use an external SMTP server is easy, except for the authentication part. As you have surmised, to use authenticated SMTP you need the support of another program, either a properly configued system MTA like Postfix or Sendmail or a minimal MTA like msmtp. This question has been asked (and answered) frequently on the RT mailing lists:

share|improve this answer
    
This is exactly what I'm afraid of, really no such option within RT? –  phunehehe Nov 20 '10 at 15:37
1  
Evidence suggests that this is the case. Where we work we have the RT server on a network that is not required to authenticate to the mail server. In general, I think many software authors assume it is the system's job to handle mail delivery appropriately (and they design their applications accordingly). –  larsks Nov 20 '10 at 15:51
    
Mind you, RT's Perl code is pretty clean. I've never looked at the mailer stuff, but you could probably make it work without too much effort (it's probably already using a standard Perl module for SMTP). –  larsks Nov 20 '10 at 15:52
    
I have been playing around with ssmtp and msmtp, now how can I make RT use msmtp? Do I just change $MailCommand to msmtp? –  phunehehe Nov 22 '10 at 3:35
    
Read through wiki.bestpractical.com/view/RT_Config...it looks like you would set MailCommand to sendmailpipe (or sendmail), and then set SendmailPath and SendmailArguments to whatever is appropriate for msmtp. Possible msmtp provides a sendmail-compatible command line; I've never used it myself. There may be some examples of configuring RT with msmtp on The Google. –  larsks Nov 22 '10 at 14:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.