What the mail.log is trying to say me?

Ok,

If I edit my /etc/aliases as follow:
rt: “|/usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway
–queue general --action correspond --url
https://rtracker.rt.pop-sp.rnp.br/rt/ --debug”

The mail.log says:

Jan 27 15:48:25 rtracker postfix/smtpd[4300]: connect from
kliper.pop-sp.rnp.br[200.133.192.62]
Jan 27 15:48:25 rtracker postfix/smtpd[4300]: A59F524FC1:
client=kliper.pop-sp.rnp.br[200.133.192.62]
Jan 27 15:48:25 rtracker postfix/cleanup[4304]: A59F524FC1:
message-id=4B607C4A.2080708@pop-sp.rnp.br
Jan 27 15:48:25 rtracker postfix/qmgr[2112]: A59F524FC1:
from=wpereira@pop-sp.rnp.br, size=762, nrcpt=1 (queue active)
Jan 27 15:48:25 rtracker postfix/local[4305]: A59F524FC1:
to=rt@rtracker.rt.pop-sp.rnp.br, relay=local, delay=0.1,
delays=0.03/0.03/0/0.04, dsn=5.3.0, status=bounced (Command died with
status 2:
"/usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway --queue
general --action correspond --url https://rtracker.rt.pop-sp.rnp.br/rt/
–debug". Command output:
/usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway: line 1:
fg: no job control
/usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway: line 2:
fg: no job control
/usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway: line 3:
fg: no job control
/usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway: line 4:
fg: no job control
/usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway: line 5:
syntax error near unexpected token (' /usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway: line 5:%# This software is Copyright © 1996-2008 Best Practical Solutions,
LLC ’ )
Jan 27 15:48:25 rtracker postfix/cleanup[4304]: B7F7224FCD:
message-id=20100127174825.B7F7224FCD@rtracker.rt.pop-sp.rnp.br
Jan 27 15:48:25 rtracker postfix/qmgr[2112]: B7F7224FCD: from=<>,
size=4221, nrcpt=1 (queue active)
Jan 27 15:48:25 rtracker postfix/bounce[4307]: A59F524FC1: sender
non-delivery notification: B7F7224FCD
Jan 27 15:48:25 rtracker postfix/qmgr[2112]: A59F524FC1: removed
Jan 27 15:48:25 rtracker postfix/smtp[4308]: B7F7224FCD:
to=wpereira@pop-sp.rnp.br,
relay=kliper.pop-sp.rnp.br[200.133.192.62]:25, delay=0.14,
delays=0.03/0.02/0.01/0.09, dsn=2.0.0, status=sent (250 Ok.
4B607C69.0000517A)
Jan 27 15:48:25 rtracker postfix/qmgr[2112]: B7F7224FCD: removed
Jan 27 15:49:25 rtracker postfix/smtpd[4300]: disconnect from
kliper.pop-sp.rnp.br[200.133.192.62]

And if I edit the /etc/aliases like that:
rt: “|/usr/local/bin/rt-mailgate-3.6 --queue general --action correspond
–url https://rtracker.rt.pop-sp.rnp.br/rt/ --debug”

That’s what the mail.log records:

Jan 27 16:16:12 rtracker postfix/smtpd[4671]: connect from
kliper.pop-sp.rnp.br[200.133.192.62]
Jan 27 16:16:12 rtracker postfix/smtpd[4671]: 9F76724FC1:
client=kliper.pop-sp.rnp.br[200.133.192.62]
Jan 27 16:16:12 rtracker postfix/cleanup[4676]: 9F76724FC1:
message-id=4B6082CD.4060308@pop-sp.rnp.br
Jan 27 16:16:12 rtracker postfix/qmgr[4633]: 9F76724FC1:
from=wpereira@pop-sp.rnp.br, size=762, nrcpt=1 (queue active)
Jan 27 16:16:12 rtracker postfix/local[4677]: 9F76724FC1:
to=rt@rtracker.rt.pop-sp.rnp.br, relay=local, delay=0.31,
delays=0.03/0.02/0/0.26, dsn=4.3.0, status=deferred (temporary failure.
Command output: Connecting to
https://rtracker.rt.pop-sp.rnp.br/rt//REST/1.0/NoAuth/mail-gateway at
/usr/local/bin/rt-mailgate-3.6 line 102, <> line 1. An Error Occurred
================= 403 Forbidden This is /usr/local/bin/rt-mailgate-3.6
exiting because of an undefined server error at
/usr/local/bin/rt-mailgate-3.6 line 150, <> line 1. )
Jan 27 16:17:12 rtracker postfix/smtpd[4671]: disconnect from
kliper.pop-sp.rnp.br[200.133.192.62]

What should I understand with these messages?

Thanks.

Wagner Pereira

PoP-SP/RNP - Ponto de Presen�a da RNP em S�o Paulo
CCE/USP - Centro de Computa��o Eletr�nica da Universidade de S�o Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901

If I edit my /etc/aliases as follow:
rt: “|/usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway
–queue general --action correspond --url
https://rtracker.rt.pop-sp.rnp.br/rt/ --debug”

This is wrong and will never work

And if I edit the /etc/aliases like that:
rt: “|/usr/local/bin/rt-mailgate-3.6 --queue general --action correspond
–url https://rtracker.rt.pop-sp.rnp.br/rt/ --debug”

That’s what the mail.log records:


Command output: Connecting to
https://rtracker.rt.pop-sp.rnp.br/rt//REST/1.0/NoAuth/mail-gateway at
/usr/local/bin/rt-mailgate-3.6 line 102, <> line 1. An Error Occurred
================= 403 Forbidden This is /usr/local/bin/rt-mailgate-3.6
exiting because of an undefined server error at

And what do your Apache and RT logs say?
Apache is not allowing rt-mailgate to connect, go fix that

-kevin

Hi, Kevin.

Now I edit correctly the /etc/aliases, pointing to the right path, I hope!.
rt: “|/usr/local/bin/rt-mailgate-3.6 --queue general --action correspond
–url https://rtracker.rt.pop-sp.rnp.br/rt/ --debug”

Where the Apache and RT’s logs should be?

Please, tell me and I’ll help you to help me.

Thank you.

Wagner Pereira

PoP-SP/RNP - Ponto de Presen�a da RNP em S�o Paulo
CCE/USP - Centro de Computa��o Eletr�nica da Universidade de S�o Paulo
http://www.pop-sp.rnp.br
Tel. (11) 3091-8901

Kevin Falcone escreveu:> On Wed, Jan 27, 2010 at 04:23:54PM -0200, Wagner Pereira wrote:

If I edit my /etc/aliases as follow:
rt: “|/usr/share/request-tracker3.6/html/REST/1.0/NoAuth/mail-gateway
–queue general --action correspond --url
https://rtracker.rt.pop-sp.rnp.br/rt/ --debug”

This is wrong and will never work

And if I edit the /etc/aliases like that:
rt: “|/usr/local/bin/rt-mailgate-3.6 --queue general --action correspond
–url https://rtracker.rt.pop-sp.rnp.br/rt/ --debug”

That’s what the mail.log records:


Command output: Connecting to
https://rtracker.rt.pop-sp.rnp.br/rt//REST/1.0/NoAuth/mail-gateway at
/usr/local/bin/rt-mailgate-3.6 line 102, <> line 1. An Error Occurred
================= 403 Forbidden This is /usr/local/bin/rt-mailgate-3.6
exiting because of an undefined server error at

And what do your Apache and RT logs say?
Apache is not allowing rt-mailgate to connect, go fix that

-kevin



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

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22 & 23
Dublin, Ireland - Mar 15 & 16
Boston, MA, USA - April 5 & 6
Washington DC, USA - Oct 25 & 26

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com