RT 4.0.5 smrsh and EX_TEMPFAIL

I have scoured the web and cannot find a satisfying answer to mail not
working on RT 4.0.5.

Below is an excerpt from our log file, albeit sanitized :

Mar 30 08:59:38 RTServer sendmail[23863]: q2UCxcK5023863:
from=mylogin@mail.com, size=1997, class=0, nrcpts=1,
msgid=F1E6DB8A53C1C74CBF28ED5E83A68A343E0777D5@RTServermbx01, proto=ESMTP,
daemon=MTA, relay=mailcas02.mydomain.com [xx.xx.xx.xx]
Mar 30 08:59:39 RTServer sendmail[23865]: q2UCxcK5023863:
to=“|/etc/smrsh/rt-mailgate --queue ‘Unix Account’ --action correspond --url
http://RTServer.mail.com/”, ctladdr=rt-unixqueue@RTServer.mail.com (8/0),
delay=00:00:01, xdelay=00:00:01, mailer=prog, pri=32234, dsn=4.0.0,
stat=Deferred: prog mailer (/usr/sbin/smrsh) exited with EX_TEMPFAIL

At this point the mail is stuck in the mailq.

All the mail queues in /etc/aliases do the same thing. I copied the
/etc/aliases from RT 3.8.8 to RT 4.0.5, does anyone know if they are
different when using smrsh ?

When I test it on the server on the command line it all works, just mail
coming externally is the issue.

Any and all help is surely appreciated.

Thanks,
Scott

View this message in context: http://old.nabble.com/RT-4.0.5-smrsh-and-EX_TEMPFAIL-tp33544907p33544907.html

When I test it on the server on the command line it all works, just mail
coming externally is the issue.

This points to permissions or some other difference when running under
sendmail vs. running manually as a different user.

Update an alias to run rt-mailgate with the --debug flag and see what
that gets you. Also, check your web server logs to see if it even hits
RT or if it fails before then.

Thomas

I tried the --debug flag but it didn’t produce anything substantial.

I did find the RTAddressRegexp setting within RT_SiteConfig.pm was off and fixed that , but, it didn’t fix my problem.

I also made sure my userid had all permissions turned on but still nothing.

Any ideas on where to go next ?

Thanks again,
ScottOn Mar 30, 2012, at 9:38 AM, Thomas Sibley trs@bestpractical.com wrote:

On 03/30/2012 09:25 AM, UnixMan wrote:

When I test it on the server on the command line it all works, just mail
coming externally is the issue.

This points to permissions or some other difference when running under
sendmail vs. running manually as a different user.

Update an alias to run rt-mailgate with the --debug flag and see what
that gets you. Also, check your web server logs to see if it even hits
RT or if it fails before then.

Thomas

I tried the --debug flag but it didn’t produce anything substantial.

… what did it produce?

Did you look at your webserver logs? Are there hits to
/REST/1.0/NoAuth/mail-gateway?

I did find the RTAddressRegexp setting within RT_SiteConfig.pm was
off and fixed that , but, it didn’t fix my problem.

RTAddressRegexp has nothing to do with this problem. It matches
incoming email address, but is used for outgoing mail.

I also made sure my userid had all permissions turned on but still
nothing.

Which userid? Not your RT user, but the unix user. That is, sendmail
isn’t running as your normal unix account, so if you test with your
normal unix account you’re not testing the actual environment sendmail
is running under.

Thomas

I have ran into this problem in the past.

What happens when you interact with the rt-mailgate from the command line?

I used my the same command line as aliases file and manually provided a basic email message. The resulting error message put me on the correct path for my problem.

Keith Schincke CAP, LPIC-1, RHCA, RHCSS
Team Lead IT Security System Administration, ITAMS
Building 46, Room 110A
email to: keith.d.schincke@nasa.gov
281-244-0183 Office 832-205-1534 Mobile
281-244-5708 Fax

ITAMS - Information Technology And Multimedia Services Contract
"One Team, One Vision >> Partnered For Innovative Solutions"From: rt-users-bounces@lists.bestpractical.com [mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Senior.Unix
Sent: Friday, March 30, 2012 9:51 AM
To: Thomas Sibley
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] RT 4.0.5 smrsh and EX_TEMPFAIL

I tried the --debug flag but it didn’t produce anything substantial.

I did find the RTAddressRegexp setting within RT_SiteConfig.pm was off and fixed that , but, it didn’t fix my problem.

I also made sure my userid had all permissions turned on but still nothing.

Any ideas on where to go next ?

Thanks again,
Scott

I have scoured the web and cannot find a satisfying answer to mail not
working on RT 4.0.5.

At this point the mail is in the mailq.

All the mail queues in /etc/aliases do the same thing. I copied the
/etc/aliases from RT 3.8.8 to RT 4.0.5, does anyone know if they are
different when using smrsh ?

When I test it on the server on the command line it all works, just mail
coming externally is the issue.

Any and all help is surely appreciated.

Thanks,
Scott

View this message in context: http://old.nabble.com/RT-4.0.5-smrsh-and-EX_TEMPFAIL-tp33544914p33544914.html

I found the issue. I forgot that this system uses https and so I changed the
/etc/aliases http to https and all is now working.

UnixMan wrote:

I have scoured the web and cannot find a satisfying answer to mail not
working on RT 4.0.5.

At this point the mail is in the mailq.

All the mail queues in /etc/aliases do the same thing. I copied the
/etc/aliases from RT 3.8.8 to RT 4.0.5, does anyone know if they are
different when using smrsh ?

When I test it on the server on the command line it all works, just mail
coming externally is the issue.

Any and all help is surely appreciated.

Thanks,
Scott

View this message in context: http://old.nabble.com/RT-4.0.5-smrsh-and-EX_TEMPFAIL-tp33544914p33671910.html