Unknown mailer error 2 when sending mail to rt-mailgate program

Hi,

I have rt3+mod_perl2+mysql and everything is running except when I try
to email the alias for the queue…Here is my /etc/mail/aliases

pcg-support:"|/opt/rt345/bin/rt-mailgate --queue pcg-support --debug
–action correspond --url http://xxx"
pcg-support-comment: “|/opt/rt345/bin/rt-mailgate --queue pcg-support
–debug --action comment --url http://xxx

I have tested rt-mailgate manually and it works fine and adds a ticket
to the queue:

cat msg.txt | /etc/smrsh/rt-mailgate --queue pcg-support --action correspond --url http://xxx

However, when I try to use senmail to create a ticket I get this in my log:

Apr 20 19:01:54 pcglinux sendmail[11476]: k3L01qFs011476:
to=pcg-support@xxx, ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:02,
mailer=relay, pri=30050, relay=xxx. [127.0.0.1], dsn=2.0.0, stat=Sent
(k3L01s0Q011477 Message accepted for delivery)
Apr 20 19:01:54 pcglinux sendmail[11478]: k3L01s0Q011477:
to="|/opt/rt345/bin/rt-mailgate --queue pcg-support --debug --action
correspond --url http://xxx", ctladdr=pcg-support@xxx (2/0),
delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30577, dsn=5.3.0,
stat=unknown mailer error 2
Apr 20 19:01:54 pcglinux sendmail[11478]: k3L01s0Q011477:
k3L01s0Q011478: DSN: unknown mailer error 2

I do not have a clue as to how to go about debugging this.but I believe
it has to do with sendmail not being able to run a program (rt-mailgate)
because of (perhaps) a permission problem?

Any help/suggestions appreciated.

thx, heather

Does anyone have any debugging ideas on why I continue to see a
"unknown mailer error 2" when attempting to mail to rt-mailgate via
sendmail?

any suggestions greatly appreciated.

heather

Heather Drury wrote:

Hi Heather.

Heather Drury wrote:

Does anyone have any debugging ideas on why I continue to see a
"unknown mailer error 2" when attempting to mail to rt-mailgate via
sendmail?

any suggestions greatly appreciated.

heather

Heather Drury wrote:

Hi,

I have rt3+mod_perl2+mysql and everything is running except when I
try to email the alias for the queue…Here is my /etc/mail/aliases

pcg-support:"|/opt/rt345/bin/rt-mailgate --queue pcg-support --debug
–action correspond --url http://xxx"
pcg-support-comment: “|/opt/rt345/bin/rt-mailgate --queue pcg-support
–debug --action comment --url http://xxx

I have tested rt-mailgate manually and it works fine and adds a
ticket to the queue:

cat msg.txt | /etc/smrsh/rt-mailgate --queue pcg-support --action
correspond --url http://xxx

However, when I try to use senmail to create a ticket I get this in
my log:

Apr 20 19:01:54 pcglinux sendmail[11476]: k3L01qFs011476:
to=pcg-support@xxx, ctladdr=root (0/0), delay=00:00:02,
xdelay=00:00:02, mailer=relay, pri=30050, relay=xxx. [127.0.0.1],
dsn=2.0.0, stat=Sent (k3L01s0Q011477 Message accepted for delivery)
Apr 20 19:01:54 pcglinux sendmail[11478]: k3L01s0Q011477:
to="|/opt/rt345/bin/rt-mailgate --queue pcg-support --debug --action
correspond --url http://xxx", ctladdr=pcg-support@xxx (2/0),
delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30577, dsn=5.3.0,
stat=unknown mailer error 2
Apr 20 19:01:54 pcglinux sendmail[11478]: k3L01s0Q011477:
k3L01s0Q011478: DSN: unknown mailer error 2

It looks like your first email is ok, but your second is failing. If you
look at the ‘to’ field in the log for the second email you’ll see that
it’s trying to send to the rt-mailgate command. That won’t work!
I think maybe the space after the colon.
so instead of
pcg-support-comment:"|
pcg-support-comment: "|

HTH.

Kind regards.
Luke.

I do not have a clue as to how to go about debugging this.but I
believe it has to do with sendmail not being able to run a program
(rt-mailgate) because of (perhaps) a permission problem?

Any help/suggestions appreciated.

thx, heather


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

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

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

We’re hiring! Come hack Perl for Best Practical:
http://bestpractical.com/about/jobs.html


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

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

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

We’re hiring! Come hack Perl for Best Practical:
http://bestpractical.com/about/jobs.html

Luke