SuSE 9.0 - fails delivering email - cronjob - */1 * * * * root /usr/sbin/postqueue -f
Hello, I've SuSE 9.0 professional with Postfix installed on my Linux box. Postfix is confiquered to send all outgoing email to an smtp-relayhost. When I send an email mailq shows for all entries -> deferred transport. So I have to put the command 'sendmail -q' or 'postqueue -f' manually as root. For the sake of convenience I tried to deliver email with the crontab entry 'postqueue -f' with no success (see last line of /etc/crontab). If I enter the command in a shell, then everything works fine. Does anybody can give me a hint why the cronjob fails? Thanks Klaus ############################### # /etc/crontab SHELL=/bin/sh PATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin MAILTO=root # # check scripts in cron.hourly, cron.daily, cron.weekly, and cron.monthly # -*/15 * * * * root test -x /usr/lib/cron/run-crons && /usr/lib/cron/run-crons >/dev/null 2>&1 59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly 14 4 * * * root rm -f /var/spool/cron/lastrun/cron.daily 29 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly 44 4 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly */1 * * * * root /usr/sbin/postqueue -f ############################### -- Klaus Uetrecht Lehenstraße 17 Stuttgart
Am Montag, 12. April 2004 18:59 schrieb Klaus Uetrecht:
I've SuSE 9.0 professional with Postfix installed on my Linux box. Postfix is confiquered to send all outgoing email to an smtp-relayhost. When I send an email mailq shows for all entries -> deferred transport. So I have to put the command 'sendmail -q' or 'postqueue -f' manually as root.
Willst Du denn, dass die Mails aufgehalten werden? Oder sollen die einfach nur direkt ausgeliefert werden?
For the sake of convenience I tried to deliver email with the crontab entry 'postqueue -f' with no success (see last line of /etc/crontab). If I enter the command in a shell, then everything works fine. Does anybody can give me a hint why the cronjob fails?
Zeig doch mal einen Auszug aus /var/log/mail. -- Andreas
Andreas Winkelmann schrieb:
Am Montag, 12. April 2004 18:59 schrieb Klaus Uetrecht:
I've SuSE 9.0 professional with Postfix installed on my Linux box. Postfix is confiquered to send all outgoing email to an smtp-relayhost. When I send an email mailq shows for all entries -> deferred transport. So I have to put the command 'sendmail -q' or 'postqueue -f' manually as root.
Willst Du denn, dass die Mails aufgehalten werden? Oder sollen die einfach nur direkt ausgeliefert werden?
Mir würde es reichen, wenn die E-Mails direkt verschickt werden. Ich habe mal gehört, dass es so einen Befehl queue_run_delay für Postfix geben soll. Nur wo stellt man den ein und ist es überhaupt der richtige Ansatz?
For the sake of convenience I tried to deliver email with the crontab entry 'postqueue -f' with no success (see last line of /etc/crontab). If I enter the command in a shell, then everything works fine. Does anybody can give me a hint why the cronjob fails?
Zeig doch mal einen Auszug aus /var/log/mail.
Apr 12 19:48:07 tiefsee postfix/qmgr[6932]: D296789C:
to=
Am Montag, 12. April 2004 20:03 schrieb Klaus Uetrecht:
I've SuSE 9.0 professional with Postfix installed on my Linux box. Postfix is confiquered to send all outgoing email to an smtp-relayhost. When I send an email mailq shows for all entries -> deferred transport. So I have to put the command 'sendmail -q' or 'postqueue -f' manually as root.
Willst Du denn, dass die Mails aufgehalten werden? Oder sollen die einfach nur direkt ausgeliefert werden?
Mir würde es reichen, wenn die E-Mails direkt verschickt werden. Ich habe mal gehört, dass es so einen Befehl queue_run_delay für Postfix geben soll. Nur wo stellt man den ein und ist es überhaupt der richtige Ansatz?
Um himmelswillen.
For the sake of convenience I tried to deliver email with the crontab entry 'postqueue -f' with no success (see last line of /etc/crontab). If I enter the command in a shell, then everything works fine. Does anybody can give me a hint why the cronjob fails?
Zeig doch mal einen Auszug aus /var/log/mail.
Apr 12 19:48:07 tiefsee postfix/qmgr[6932]: D296789C: to=
, relay=none, delay=1, status=deferred (deferred transport)
Da steht keine Fehlermeldung, dann hast Du einfach nur defer_transports gesetzt. Mach mal: # postconf defer_transports Vermute mal, da steht "smtp". Nimm das doch mal raus (main.cf). -- Andreas
Andreas Winkelmann schrieb:
Am Montag, 12. April 2004 20:03 schrieb Klaus Uetrecht:
I've SuSE 9.0 professional with Postfix installed on my Linux box. Postfix is confiquered to send all outgoing email to an smtp-relayhost. When I send an email mailq shows for all entries -> deferred transport. So I have to put the command 'sendmail -q' or 'postqueue -f' manually as root.
Willst Du denn, dass die Mails aufgehalten werden? Oder sollen die einfach nur direkt ausgeliefert werden?
Mir würde es reichen, wenn die E-Mails direkt verschickt werden. Ich habe mal gehört, dass es so einen Befehl queue_run_delay für Postfix geben soll. Nur wo stellt man den ein und ist es überhaupt der richtige Ansatz?
Um himmelswillen.
:-)
For the sake of convenience I tried to deliver email with the crontab entry 'postqueue -f' with no success (see last line of /etc/crontab). If I enter the command in a shell, then everything works fine. Does anybody can give me a hint why the cronjob fails?
Zeig doch mal einen Auszug aus /var/log/mail.
Apr 12 19:48:07 tiefsee postfix/qmgr[6932]: D296789C: to=
, relay=none, delay=1, status=deferred (deferred transport) Da steht keine Fehlermeldung, dann hast Du einfach nur defer_transports gesetzt. Mach mal:
# postconf defer_transports
Vermute mal, da steht "smtp". Nimm das doch mal raus (main.cf).
Du hattest recht! Vielen Dank für deine Hilfe, jetzt werden die E-Mails direkt verschickt. Ich verstehe nur noch nicht, warum der cronjob nicht funtionieren will?
Am Dienstag, 13. April 2004 08:05 schrieb Klaus Uetrecht:
Du hattest recht! Vielen Dank für deine Hilfe, jetzt werden die E-Mails direkt verschickt. Ich verstehe nur noch nicht, warum der cronjob nicht funtionieren will?
Habe ich gar nicht drauf geachtet, hmm: */1 * * * * root /usr/sbin/postqueue -f aus der "*/1" hätte ich mal "*" gemacht. -- Andreas
participants (2)
-
Andreas Winkelmann
-
Klaus Uetrecht