Unknown mailer error 126

I just moved RT (version 1.0.7) from one server to another. The web
interface works fine on the new machine, but mailgate does not. When I
send a message to mailgate (e.g. /usr/sbin/sendmail -v sysadmin), I get
the following bounce. I have mailgate in smrsh, double-check all
permissions to make sure they match. I even cat’ed a file to mailgate
and that worked. Any thoughts?

Message 1:

I’ve done a clean, out-of-the-box install of RT 2.0.11, but I’m getting an
“Unknown mailer error 2” when I send an email to my rt alias.

My maillog contains entries like this:

Feb 8 07:17:52 localhost sendmail[8776]: g18CHpM08775:
to=“|/home/rt2/bin/rt-mailgate --queue general --action correspond”,
ctladdr=support@xxxxxxxxxxxx.com (8/0), delay=00:00:01, xdelay=00:00:00,
mailer=prog, pri=30022, dsn=5.3.0, stat=unknown mailer error 2

Here’s a snippet of my aliases file:

support: “|/home/rt2/bin/rt-mailgate --queue general --action correspond”
support-comment: “|/home/rt2/bin/rt-mailgate --queue general --action
comment”

My /etc/smrsh contains a suitable symlink

lrwxrwxrwx 1 root root 25 Feb 8 06:17 rt-mailgate →
/home/rt2/bin/rt-mailgate

My rt logging directory contains nothing (zero length files)

Any hints or tips on how I can fix or diagnose this problem gratefully
received!

paul@elphin.com

Here’s a snippet of my aliases file:

support: “|/home/rt2/bin/rt-mailgate --queue general --action correspond”
support-comment: “|/home/rt2/bin/rt-mailgate --queue general --action
comment”

My /etc/smrsh contains a suitable symlink

lrwxrwxrwx 1 root root 25 Feb 8 06:17 rt-mailgate →
/home/rt2/bin/rt-mailgate

Try invoking “|/etc/smrsh/rt-mailgate (etc)” instead. You may also find
that rt-mailgate is unable to load some libraries. A ‘perl -c’ on
rt-mailgate will show this.

To turn on excessive debugging, change etc/config.pm’s $LogToFile to read
‘debug’.

Regards,

                         Bruce Campbell                            RIPE
               Systems/Network Engineer                             NCC
             www.ripe.net - PGP562C8B1B                      Operations

Just in case anyone else gets this problem, I diagnosed it by piping an
email into rt-mailgate and got a message telling me I had no permission to
create tickets. It would seem that in my haste to try the glorious features
of RT2, I forgot to RTFM and set up some initial permissions for my queue
:slight_smile:

Hope that helps someone someday!

Paul.