Keine automatische Abholung von E-Mails

Hilfe zu Znuny Problemen aller Art
Locked
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Keine automatische Abholung von E-Mails

Post by ollibraun »

Hallo,

seit dem Update auf 3.0.3 werden E-Mails per POP3 nicht mehr automatisch abgeholt (openSUSE 11.1).

Ich habe schon alles mögliche probiert und nun völlig den Überblick verloren. Deshalb die Installation (welches nur eine Testinstallation war) entfernt und neu installiert (rpm -Uvh http://ftp.otrs.org/pub/otrs/RPMS/suse/ ... noarch.rpm), Datenbank neu angelegt, und nun ganz systematisch:

Abholen per Klick "Emails abholen" funktioniert. Es liegt offenbar an Rechten/Cronjob/...?

Was wäre der nächste Schritt?

Viele Grüße,
Oliver
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Keine automatische Abholung von E-Mails

Post by jojo »

/etc/init.d/otrs restart

und prüfen ob OTRS auch bootfest ist.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

Falls Du mit bootfest meinst, dass das Problem nach einem Serverneustart weiter besteht, OTRS aber ansonsten funktioniert: Ja!

Code: Select all

h2742260:~ # /etc/init.d/otrs restart
Shutting down OTRS
 Disable /opt/otrs/bin/otrs.PostMaster.pl ... done.
 Shutting down cronjobs ... done.
                                                                     done
Starting OTRS
 Checking Apache ... done.
 Checking MySQL ... done.
 Checking database connect... (It looks Ok!).
 Enable /opt/otrs/bin/otrs.PostMaster.pl ... done.
 Checking otrs spool dir...  done.
 Creating cronjobs (source /opt/otrs/var/cron/*) ... done.

  -->> http://h2742260.stratoserver.net/otrs/index.pl <<--
                                                                     done
h2742260:~ #
/etc/init.d/otrs restart
ulis
Znuny newbie
Posts: 13
Joined: 14 Dec 2010, 21:57
Znuny Version: 3.0.x

Re: Keine automatische Abholung von E-Mails

Post by ulis »

Hi Olli,

bei mir bestand das Problem darin, dass die Skripte plötzlich otrs.PostMaster.pl usw. heissen und die Einträge im cron eben <HOME$>/bin/PostMaster.pl aufgerufen wird.

Mit crontab -l -u otrs kannst Du sehen, was bei cron aufgerufen wird.

Die Skripte kannst Du unter /opt/otrs/var/cron finden und entsprechend anpassen.

Gruss,
Uli
Gruss,
Uli
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Keine automatische Abholung von E-Mails

Post by jojo »

wenn Du die Cronjobs via Cron.sh oder über das init script neu baust hast Du das Problem nicht.

Bootfest heisst, das der OTRS Service im entsprechenden Runlevel eingetragen sein sollte
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

ulis wrote:bei mir bestand das Problem darin, dass die Skripte plötzlich otrs.PostMaster.pl usw. heissen und die Einträge im cron eben <HOME$>/bin/PostMaster.pl aufgerufen wird.

Mit crontab -l -u otrs kannst Du sehen, was bei cron aufgerufen wird.

Die Skripte kannst Du unter /opt/otrs/var/cron finden und entsprechend anpassen.
Die Scripte heißen tatsächlich otrs.PostMaster.pl usw.

Di Skripte sind aber nach meinem Eindruck richtig?

Code: Select all

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/opt/otrs/var/tmp/cron installed on Mon Dec 13 23:19:40 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
# --
# cron/aaa_base - base crontab package
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: aaa_base.dist,v 1.7 2009/02/16 20:35:25 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# Who gets the cron emails?
MAILTO="root@localhost"
# --
# cron/cache - delete expired cache
# Copyright (C) 2001-2010 xxx, http://otrs.org/
# --
# $Id: cache.dist,v 1.2 2010/11/22 12:15:35 mg Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# delete expired cache weekly (Sunday mornings)
20 0 * * 0  $HOME/bin/otrs.DeleteCache.pl --expired >> /dev/null
30 0 * * 0  $HOME/bin/otrs.LoaderCache.pl -o delete >> /dev/null
# --
# cron/fetchmail - fetchmail cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: fetchmail.dist,v 1.10 2009/02/16 20:53:10 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# fetch every 5 minutes emails via fetchmail
#*/5 * * * * [ -x /usr/bin/fetchmail ] && /usr/bin/fetchmail -a >> /dev/null
#*/5 * * * *    /usr/bin/fetchmail -a --ssl >> /dev/null
# --
# cron/generic_agent - otrs.GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: generic_agent.dist,v 1.13 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# start generic agent every 20 minutes
*/20 * * * *    $HOME/bin/otrs.GenericAgent.pl >> /dev/null

# example to execute otrs.GenericAgent.pl on 23:00 with
# Kernel::Config::GenericAgentMove job file
#0 23 * * * $HOME/bin/otrs.GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null
# --
# cron/generic_agent - otrs.GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: generic_agent-database.dist,v 1.9 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# start generic agent every 10 minutes
*/10 * * * *    $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null
# --
# cron/pending_jobs - pending_jobs cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: pending_jobs.dist,v 1.12 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# check every 120 min the pending jobs
45 */2 * * *    $HOME/bin/otrs.PendingJobs.pl >> /dev/null
# --
# cron/postmaster - postmaster cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: postmaster.dist,v 1.9 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# check daily the spool directory of OTRS
#10 0 * * * * [ -e /etc/init.d/otrs ] && /etc/init.d/otrs cleanup >> /dev/null; [ -e /etc/rc.d/init.d/otrs ] && /etc/rc.d/init.d/otrs cleanup >> /dev/null
10 0 * * *  $HOME/bin/otrs.cleanup >> /dev/null
# --
# cron/postmaster_mailbox - postmaster_mailbox cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: postmaster_mailbox.dist,v 1.3 2009/11/09 15:24:13 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# fetch emails every 10 minutes
*/10 * * * *    $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null
# --
# cron/rebuild_ticket_index - rebuild ticket index for OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: rebuild_ticket_index.dist,v 1.10 2009/11/09 15:24:13 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# just every day
01 01 * * * $HOME/bin/otrs.RebuildTicketIndex.pl >> /dev/null
# --
# cron/session - delete old session ids of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: session.dist,v 1.12 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# delete every 120 minutes old/idle session ids
55 */2 * * *    $HOME/bin/otrs.DeleteSessionIDs.pl --expired >> /dev/null
# --
# cron/unlock - unlock old locked ticket of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: unlock.dist,v 1.11 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# unlock every hour old locked tickets
35 * * * *  $HOME/bin/otrs.UnlockTickets.pl --timeout >> /dev/null
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Keine automatische Abholung von E-Mails

Post by jojo »

was ist das Home Deines OTRS Users und wo ist OTRS installiert?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

jojo wrote:wenn Du die Cronjobs via Cron.sh oder über das init script neu baust hast Du das Problem nicht.

Bootfest heisst, das der OTRS Service im entsprechenden Runlevel eingetragen sein sollte
Wie überprüfe ich, ob der Service im richtigen Runlevel steht?

Dies hat nicht geholfen:

Code: Select all

h2742260:~ # cd /opt/otrs/bin/
h2742260:/opt/otrs/bin # su otrs
h2742260:/opt/otrs/bin # ./Cron.sh start
Run this script just as OTRS user! Or use 'Cron.sh {start|stop|restart} OTRS_USER' as root!
h2742260:/opt/otrs/bin # ./Cron.sh start otrs
/opt/otrs/bin
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.19 $>
Copyright (C) 2001-2009 xxx, http://otrs.org/
(using /opt/otrs) done
h2742260:/opt/otrs/bin #
Hm, ohne das geringste von Linux zu verstehen... ist es ok, dass der erste Aufruf von Cron.sh trotz vorherigem su otrs fehlschlug? Oder trägt das zur Fehlersuche bei?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Keine automatische Abholung von E-Mails

Post by jojo »

was sagt crontab -l -u otrs?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

jojo wrote:was sagt crontab -l -u otrs?
Dieses:

Code: Select all

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/opt/otrs/var/tmp/otrs-cron-tmp.4024 installed on Tue Dec 14 22:32:30 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
# --
# cron/aaa_base - base crontab package
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: aaa_base.dist,v 1.7 2009/02/16 20:35:25 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# Who gets the cron emails?
MAILTO="root@localhost"
# --
# cron/cache - delete expired cache
# Copyright (C) 2001-2010 xxx, http://otrs.org/
# --
# $Id: cache.dist,v 1.2 2010/11/22 12:15:35 mg Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# delete expired cache weekly (Sunday mornings)
20 0 * * 0  $HOME/bin/otrs.DeleteCache.pl --expired >> /dev/null
30 0 * * 0  $HOME/bin/otrs.LoaderCache.pl -o delete >> /dev/null
# --
# cron/fetchmail - fetchmail cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: fetchmail.dist,v 1.10 2009/02/16 20:53:10 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# fetch every 5 minutes emails via fetchmail
#*/5 * * * * [ -x /usr/bin/fetchmail ] && /usr/bin/fetchmail -a >> /dev/null
#*/5 * * * *    /usr/bin/fetchmail -a --ssl >> /dev/null
# --
# cron/generic_agent - otrs.GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: generic_agent.dist,v 1.13 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# start generic agent every 20 minutes
*/20 * * * *    $HOME/bin/otrs.GenericAgent.pl >> /dev/null

# example to execute otrs.GenericAgent.pl on 23:00 with
# Kernel::Config::GenericAgentMove job file
#0 23 * * * $HOME/bin/otrs.GenericAgent.pl -c "Kernel::Config::GenericAgentMove" >> /dev/null
# --
# cron/generic_agent - otrs.GenericAgent.pl cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: generic_agent-database.dist,v 1.9 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# start generic agent every 10 minutes
*/10 * * * *    $HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null
# --
# cron/pending_jobs - pending_jobs cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: pending_jobs.dist,v 1.12 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# check every 120 min the pending jobs
45 */2 * * *    $HOME/bin/otrs.PendingJobs.pl >> /dev/null
# --
# cron/postmaster - postmaster cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: postmaster.dist,v 1.9 2009/02/16 20:55:11 tr Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# check daily the spool directory of OTRS
#10 0 * * * * [ -e /etc/init.d/otrs ] && /etc/init.d/otrs cleanup >> /dev/null; [ -e /etc/rc.d/init.d/otrs ] && /etc/rc.d/init.d/otrs cleanup >> /dev/null
10 0 * * *  $HOME/bin/otrs.cleanup >> /dev/null
# --
# cron/postmaster_mailbox - postmaster_mailbox cron of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: postmaster_mailbox.dist,v 1.3 2009/11/09 15:24:13 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# fetch emails every 10 minutes
*/1 * * * *    $HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null
# --
# cron/rebuild_ticket_index - rebuild ticket index for OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: rebuild_ticket_index.dist,v 1.10 2009/11/09 15:24:13 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# just every day
01 01 * * * $HOME/bin/otrs.RebuildTicketIndex.pl >> /dev/null
# --
# cron/session - delete old session ids of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: session.dist,v 1.12 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# delete every 120 minutes old/idle session ids
55 */2 * * *    $HOME/bin/otrs.DeleteSessionIDs.pl --expired >> /dev/null
# --
# cron/unlock - unlock old locked ticket of the OTRS
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: unlock.dist,v 1.11 2009/11/04 12:27:57 mn Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

# unlock every hour old locked tickets
35 * * * *  $HOME/bin/otrs.UnlockTickets.pl --timeout >> /dev/null
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

jojo wrote:was ist das Home Deines OTRS Users und wo ist OTRS installiert?
"pwd otrs" liefert: /root

OTRS sitzt hier: "/opt/otrs"
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Keine automatische Abholung von E-Mails

Post by jojo »

pwd otrs zeigt Dir bestimmt nicht das home vom otrs user...

Probiers mal mit id otrs
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

Code: Select all

h2742260:~ # id otrs
uid=10016(otrs) gid=8(www) groups=8(www),16(dialout),33(video)
Hat das etwas mit dem Punkt zu tun, der mir in http://forums.otrs.org/viewtopic.php?f= ... 079#p28060 ganz am Ende des Beitrages aufgefallen ist?
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

Inzwischen habe ich nochmal versucht, neu zu installieren, aber es hilft nichts.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Keine automatische Abholung von E-Mails

Post by jojo »

bitte prüf nochmal das Home des OTRS users
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

jojo wrote:bitte prüf nochmal das Home des OTRS users
Ganz blöde Frage: wie?

In yast users ist für den benutzer otrs "/opt/otrs" eingetragen, aber wie kann ich das über die Shell verifizieren?

"su otrs" scheint nicht zu funktionieren, wie ich als Linux-Laie es verstehen würde, siehe meine Beobachtung in meinem früheren Posting.

Deshalb auch so etwas:

Code: Select all

h2742260:~ # su otrs
h2742260:~ # pwd otrs
/root
h2742260:~ #
Inzwischen habe ich versuchsweise bei den geplanten Aufgaben des root über die hier verwendete Plesk-Oberfläche eine Aufgabe "/opt/otrs/bin/otrs.PostMasterMailbox.pl >> /dev/null" hinzugefügt, aber das hilft auch nicht.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Keine automatische Abholung von E-Mails

Post by jojo »

grep otrs /etc/passwd würde z.B. helfen
Die Cron Logfiles sollten ggf. auch aufschluss geben
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

jojo wrote:grep otrs /etc/passwd würde z.B. helfen
Die Cron Logfiles sollten ggf. auch aufschluss geben

Code: Select all

h2742260:~ # grep otrs /etc/passwd
otrs:x:10016:8:OTRS System User:/opt/otrs:/bin/false
Wo finde ich die Cron-Logfiles (openSUSE 11)?

In der /var/log/messages gibt es minütlich:

Code: Select all

Dec 13 10:18:01 h2742260 /usr/sbin/cron[26577]: (otrs) CMD ($HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null)
...aber nichts, was für mich wie ein Fehler aussieht.
ollibraun
Znuny newbie
Posts: 14
Joined: 05 Nov 2010, 00:36
Znuny Version: 3.0.0

Re: Keine automatische Abholung von E-Mails

Post by ollibraun »

Hm, gibt es für solche kleinen Problemchen (ich spekuliere doch auf einen fehlerhaften User, siehe die Beobachtung zu "su otrs") eine Möglichkeit, irgendwo kostenpflichtigen Support zu beziehen?

Unter otrs.com finde ich nur große Supportpakete, nichts, was sich für solche Kinkerlitzchen eignen würde. Ich denke, es reicht, wenn jemand mit ordentichen Linux-Kenntnissen und einem voll funktionsfähigen Referenzsystem die Sache ansehen würde...
rbroda
Znuny expert
Posts: 152
Joined: 03 Jun 2013, 14:40
Znuny Version: 6.0.33
Real Name: Robert
Company: Gebr. Steimel GmbH

Re: Keine automatische Abholung von E-Mails

Post by rbroda »

Laut Dokumentation gib es den Serice "rcotrs". Leider gibts den nicht bei mir...Habe ich was flasch gemacht?
KlausNehrer
Znuny ninja
Posts: 1312
Joined: 25 May 2012, 08:51
Znuny Version: OTRS 4
Real Name: Klaus Nehrer

Re: Keine automatische Abholung von E-Mails

Post by KlausNehrer »

Grundkurs Linux?

Code: Select all

# su otrs
wechselst Du nur die ID, was Du mit

Code: Select all

# id
prüfen kannst. Verwende lieber

Code: Select all

# su - otrs
damit bekommst Du auch die Pfade vom Benutzer.
Das kann aber nur funktionieren, wenn der Benutzer eine gültige Shell hat, z.B. /bin/bash

Die Ausgabe der cron Jobs wird nach /dev/null umgeleitet. Du könntest es auch in eine reguläre Datei umleiten, z.B. /tmp/cron.log
Locked