RE: [otrs] Problems w/ getting mail from cron

Jen, I seem to recall having a similar problem at one time. Did you try running the CRON jobs as your OTRS user? Check out the last line item on the Chapter 14. Cronjobs of the documentation. It indicates to install these as the OTRS user (su otrs). After installing I had to modify the crontab to do what I wanted (/var/spool/cron/) (Fedora Core 3) I hope this helps. :) Bradley G. West Network/Systems Engineer Spang & Company 412-963-5767 direct 412-696-0333 facsimile bwest@spang.com -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of jennyw Sent: Wednesday, June 22, 2005 3:34 PM To: otrs@otrs.org Subject: [otrs] Problems w/ getting mail from cron I'm using getmail to download e-mail from a pop server to OTRS. Under Debian (Sarge) it worked great; Under SUSE 9.2, it works from from the command line, but not in cron. It's possible this is related to the cron environment being different than the regular one, but I'm not sure what the important difference is. The error: getmail version 4.3.10 Copyright (C) 1998-2005 Charles Cazabon. Licensed under the GNU GPL version 2. SimplePOP3SSLRetriever:it@example.com@mail.example.com:995: Delivery error (command PostMaster.pl 18129 error (255, fileparse(): need a valid pathname at /opt/otrs/bin/PostMaster.pl line 26 BEGIN failed--compilation aborted at /opt/otrs/bin/PostMaster.pl line 26.)) msg 1/1 (1443 bytes), delivery error (command PostMaster.pl 18129 error (255, fileparse(): need a valid pathname at /opt/otrs/bin/PostMaster.pl line 26 BEGIN failed--compilation aborted at /opt/otrs/bin/PostMaster.pl line 26.)) 1 messages retrieved, 0 skipped Here are the lines in PostMaster.pl: 24: use File::Basename; 25: use FindBin qw($RealBin); 26: use lib dirname($RealBin); I did some testing and it seems like when PostMaster.pl is run from the command-line, the value of $RealBin is what would be expected; when it's run from cron, it's unitialized. Any ideas? Thanks! Jen _______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support oder Consulting für Ihr OTRS System? => http://www.otrs.de/
participants (1)
-
West, Bradley G.