FW: [rt-users] rt-mailgate

Cassily, Ryan rcassily at DENOVIS.COM
Wed Jun 4 17:44:08 EDT 2003


I changed the config file to read the following yet the rt.log is still o bytes.
-rw-rw-rw-    1 root     rt              0 Jun  4 16:24 rt.log

#  Mail loops will generate a critical log message.
Set($LogToSyslog    , undef);
Set($LogToScreen    , undef);
Set($LogToFile      , 'debug');
Set($LogToFileNamed , "$LogDir/rt.log");    #log to rt.log.<pid>.<user>

The only thing being recorded is the maillog.  Could there be a permission issue?  What should the permissions look like on the rt3 directory?  Mine is currently:

drwxr-xr-x    2 root     rt           4096 Jun  3 10:57 bin
drwxr-xr-x    2 root     rt           4096 Jun  4 17:17 etc
drwxr-xr-x    4 root     bin          4096 May 30 07:39 lib
drwxr-xr-x    4 root     nobody       4096 May 30 07:39 local
drwxr-xr-x    2 root     rt           4096 May 30 07:39 sbin
drwxr-xr-x    3 root     root         4096 May 30 07:39 share
drwxr-xr-x    5 root     rt           4096 May 30 07:39 var



-----Original Message-----
From: Michael van Elst [mailto:mlelstv at dev.de.cw.net]
Sent: Wednesday, June 04, 2003 11:49 AM
To: Cassily, Ryan
Subject: Re: FW: [rt-users] rt-mailgate


On Wed, Jun 04, 2003, Cassily, Ryan wrote:

> The log file is configured to be located at /opt/rt3/var/log but the directory is empty.

In RT_SiteConfig.pm you need to have something like:

Set($LogToSyslog    , undef);
Set($LogToFile      , 'debug');

the default is the opposite:

Set($LogToSyslog    , 'debug');
Set($LogToFile      , undef);

so the log output is sent to to syslog.

You also must ensure that rt-mailgate (i.e you, when you run it)
have write access to the configured directory.


> I have a quick question.  There seems to be a testing section at the beginning of the rt-mailgate file.  Is that run everytime rt-,ailgate is called by sendmail?  

No, it isn't.

Greetings,
-- 
    ,eM""=.            a"-.                         Michael van Elst
   dWWMWM" -          :GM==;                        mlelstv at dev.de.cw.net
  :WWMWMw=--.          "W='  cable & wireless
   9WWMm==-.
    "-Wmw-"  CABLE & WIRELESS



More information about the rt-users mailing list