RT and MSMTP

I am running RT 4.0.10 using external SMTP server for emailing
(fetchmail for receveing and msmtp for delivering).
I have able to configure fetchmail with no problem ie. when somebody
sends an email to RT, ticket is automatically raised.
However, they do not receive anything back. And if somebody replies to
the ticket, no email is sent out. (Including precanned reply).

My apache conf:
AddDefaultCharset UTF-8

 Alias /rt/NoAuth/images /usr/local/rt/share/html/NoAuth/images/
 ScriptAlias /rt /usr/local/rt/sbin/rt-server.fcgi/

 LogLevel debug
 ErrorLog /usr/local/rt/var/log/error.log

 DocumentRoot "/usr/local/rt/share/html"
 <Location /rt>
     #SSLRequireSSL
     Order allow,deny
     Allow from all

     Options +ExecCGI
     AddHandler fcgid-script fcgi
 </Location>

My RT config:
Set($rtname, “eltoma-offshore.com”);
Set($WebDomain, “centos.eltoma.cyp”);
Set($WebPort, 80);
Set($WebPath, “/rt”);
Set($SendmailPath , “/usr/local/rt/etc/msmtp_wrapper”);
Set($CorrespondAddress, "rt@eltoma-offshore.com");
Set($CommentAddress, "rt@eltoma-offshore.com");
Set($Timezone, “Asia/Nicosia”);
Set($MailCommand, “sendmail”);
Set($SendmailArguments, “-t”);
Set($SendmailPath , “/usr/local/bin/msmtp”);
Set($LogToFile, “error”);
Set($LogDir, “/var/log”);
Set($LogToFileNamed, “rt.log”);

MSMTP is working on its own ie. if I send email using “msmtp” command, I
receive it. But RT seems to have issue using it.
PS: Logs are not created for some reason (except for RT, which requires
file to be created but it is empty).

Set($SendmailPath , “/usr/local/bin/msmtp”);
Set($LogToFile, “error”);
Set($LogDir, “/var/log”);
Set($LogToFileNamed, “rt.log”);

MSMTP is working on its own ie. if I send email using “msmtp” command, I receive it. But RT
seems to have issue using it.
PS: Logs are not created for some reason (except for RT, which requires file to be created but
it is empty).

LogToFile should be set to something like ‘debug’ when you’re
debugging. Also turn on msmtp’s log files. Alternately, use a real
MTA in relay-only mode, this helps ensure mail won’t be lost.

-kevin

[…] Alternately, use a real
MTA in relay-only mode, this helps ensure mail won’t be lost.

+1 having a local mta is a must have and really easy to configure and
manage (such as a postfix listen on the loopback). With a true mta, if
you’re network is down, the mail will stay in the local mailq (with
msmtp, the mail will never be sent and you will just have a notice in
the ticket history if you run a recent version of RT) and will be sent
when network is back.

You should add the RT server mailq in your monitoring server.

Easter-eggs Sp�cialiste GNU/Linux
44-46 rue de l’Ouest - 75014 Paris - France - M�tro Gait�
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com

My linux knowledge is very limited. Which MTA would you advise to use ?
(Eg. easier to confgiure and maintain, wider support such as examples,
etc). My distro is CentOS 6.3 64bit.On 4/3/2013 6:29 PM, Emmanuel Lacour wrote:

On Mon, Mar 04, 2013 at 11:25:28AM -0500, Kevin Falcone wrote:

[…] Alternately, use a real
MTA in relay-only mode, this helps ensure mail won’t be lost.

+1 having a local mta is a must have and really easy to configure and
manage (such as a postfix listen on the loopback). With a true mta, if
you’re network is down, the mail will stay in the local mailq (with
msmtp, the mail will never be sent and you will just have a notice in
the ticket history if you run a recent version of RT) and will be sent
when network is back.

You should add the RT server mailq in your monitoring server.

My linux knowledge is very limited. Which MTA would you advise to
use ? (Eg. easier to confgiure and maintain, wider support such as
examples, etc). My distro is CentOS 6.3 64bit.

postfix

Easter-eggs Sp�cialiste GNU/Linux
44-46 rue de l’Ouest - 75014 Paris - France - M�tro Gait�
Phone: +33 (0) 1 43 35 00 37 - Fax: +33 (0) 1 43 35 00 76
mailto:elacour@easter-eggs.com - http://www.easter-eggs.com

you have doubled “SendmailPath” with different values