E-Mails automatisch abholen.

Hilfe zu Znuny Problemen aller Art
Locked
Christoph
Znuny newbie
Posts: 24
Joined: 06 Apr 2006, 08:11
Location: Ense

E-Mails automatisch abholen.

Post by Christoph »

Hallo zusammen.
Ich habe zwei Fragen: ...

Ich möchte ,dass OTRS automatisch die eingehenden Emails für den User "otrs@beispiel.de" abholt. Ich weiss, dass das mit dem Script PostMaster.pl funktioniert, jedoch muss man es in dem Fall manuell starten um zu dem gewünschten Ergebnis zu kommen.
In der OTRS Anleitung von otrs.org steht zwar beschrieben wie es funktioniert, jedoch weicht dies in meinem Fall von der Beschreibung ab. Wenn ich versuche den Cron-Job wie in der Anleitung einzurichten kommt bei mir folgendes bei herraus:

Code: Select all

 
admin@otrs:/usr/share/otrs/bin$ ./Cron.sh start
No cronjobs in /home/admin/var/cron found!
 * Check the $HOME (/etc/passwd) of the OTRS user. It must be the root dir of your OTRS system (e. g. /opt/otrs).


Dann habe ich einfach mal das gewünschte Verzeichnis erstellt und die erforderlichen Daten hinein kopiert. Nach der wiederholten Befehlseingabe lautete die Ausgabe wie folgt:

Code: Select all

admin@otrs:/usr/share/otrs/bin$ ./Cron.sh start
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.10 $>
Copyright (c) 2002 Martin Edenhofer <martin@otrs.org>
./Cron.sh: line 57: /home/admin/var/tmp/otrs-cron-tmp.9656: Datei oder Verzeichnis nicht gefunden
failed
You have new mail in /var/mail/admin
1. Wie kann ich dieses Problem lösen?

Des weiteren soll man folgenden Befehl nutzen:
Befehl + Ausgabe der Konsole

Code: Select all

linux:/opt/otrs/var/cron# cd /opt/otrs/bin/
linux:/opt/otrs/bin# su otrs
linux:~/bin$ ./Cron.sh start
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.11 $>
Copyright (c) 2002 Martin Edenhofer <martin@otrs.org>
(using /opt/otrs) done
linux:~/bin$ exit
exit
linux:/opt/otrs/bin#
Bei mir sieht die Ausgabe leider nicht so aus... :

Code: Select all

admin@otrs:/usr/share/otrs/bin$ ./Cron.sh start
Cron.sh - start/stop OTRS cronjobs - <$Revision: 1.10 $>
Copyright (c) 2002 Martin Edenhofer <martin@otrs.org>
./Cron.sh: line 57: /home/admin/var/tmp/otrs-cron-tmp.11640: Datei oder Verzeichnis nicht gefunden
failed
admin@otrs:/usr/share/otrs/bin$    
2.Wie kann ich das richtig stellen?

Danke
System: OTRS 2.0.4;
Debian;
Apache 2;
MySQL 4;
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Post by Andre Bauer »

Wie kommst du darauf die crontab Datei unter "/home/admin/var/cron" zu erstellen?

Unter Debian liegen die Cronscripte für das OTRS unter "/etc/cron.d".
Wenn nicht, kopiere Sie von "$OTRSHOME/var/cron" dort hin.

Zu starten brauchst du nichts. Cron sollte bereits laufen.
Wenn du cron neu starten wills gibt "/etc/init.d/cron restart" auf der Shell ein.
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
Christoph
Znuny newbie
Posts: 24
Joined: 06 Apr 2006, 08:11
Location: Ense

Post by Christoph »

Das frage ich mich auch gerade... :oops:

Naja ob der Befehl richtig funktioniert ist eine andere Frage... :

Code: Select all

admin@otrs:~$ /etc/init.d/cron restart
Restarting periodic command scheduler: cron/etc/init.d/cron: line 18: start-stop-daemon: command not found
/etc/init.d/cron: line 19: start-stop-daemon: command not found
.
You have new mail in /var/mail/admin
Die Richtigkeit des Befehls will ich ja nicht in frage stellen, aber bei mir scheint er nicht richtig zu funktionieren,... -.-
System: OTRS 2.0.4;
Debian;
Apache 2;
MySQL 4;
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Post by Andre Bauer »

Dir fehlt das Programm "start-stop-daemon", welches eigentlich Teil von "dpkg" ist und somit auf jedem Debian System installiert sein sollte?

Was für eine Debian Version nutzt du?
Welche Installationsart hast du genutzt?
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
Locked