User tools

Website tools


benno pop3

Differences

The differences between two versions are shown here.

Link to this comparison view

Both sides of the previous revisionPrevious revision
Next revision
Previous revision
benno-pop3 [2023/02/20 08:10] – [Konfiguration] lwsystemsbenno-pop3 [2024/12/17 11:57] (current) – [Konfiguration] lwsystems
Zeile 30: Zeile 30:
 </code> </code>
  
-Danach wird der Cron-Job in der Datei ''/etc/cron.d/benno-pop3'' aktiviert. Hierfür wird das //#// Zeichen vor der Zeile mit dem Programmaufruf entfernt.+Danach wird der Cron-Job in der Datei ''/etc/cron.d/benno-pop3'' aktiviert. Hierfür wird das //#// Zeichen vor der Zeile mit dem Programmaufruf entfernt.\\ **Achtung!** Die E-Mails werden nach dem Import vom POP3 Server gelöscht!
  
 <code> <code>
Zeile 39: Zeile 39:
 </code> </code>
  
-Falls mehrere POP3 Mailboxen regelmäßig importiert werden sollen, bietet es sich an, für jede Mailbox eine Konfigurationsdatei zu erstellen und diese dann mit einer eigenen Zeile in der in der Cron-Datei zu konfigurieren.+
 ==== Aufrufparameter ==== ==== Aufrufparameter ====
  
Zeile 63: Zeile 63:
   -v verbose   -v verbose
 </code> </code>
 +
 +==== Abruf mehrerer Mailboxen ====
 +
 +When retrieving large mailboxes, a problem can occur where the import job is not yet finished when the next run starts. Depending on the POP3 server configuration, the emails may not yet be deleted, so the next run attempts to load the entire mailbox again. This can overload the POP3 server.
 +
 +For this reason, the program is designed so that only one job can run at a time.
 +
 +Für den Abruf mehrerer Mailboxen bietet sich ein serieller Abruf an. Hierfür wird ein kleines Script ''/etc/benno-pop3/fetch-serial'' erstellt, das die möglichen Konfigurationen der Reihe nach abarbeitet:
 +
 +
 +<file bash>
 +#!/bin/bash
 +#
 +# /etc/benno-pop3/fetch-serial
 +
 +CONFDIR=/etc/benno-pop3/
 +
 +ENABLED=''
 +for CONFFILE in $(ls -1 ${CONFDIR}/*.conf); do
 +    /usr/sbin/benno-pop3 -c "${CONFFILE}" -s -S -d
 +    ENABLED=OK
 +done
 +
 +[ ${ENABLED}x = x ] && echo "BENNO POP3 ERROR - No configuration enabled" && exit 1
 +</file>
 +
 +This script calls all configuration files with the extension .conf from the directory one after the other.
 +
 +Then activate the x-flag:
 +
 +  chmod +x /etc/benno-pop3/fetch-serial
 +
 +and adjust the cron call:
 +
 +''*/15 * * * * benno [ -x /etc/benno-pop3/fetch-serial ] && /etc/benno-pop3/fetch-serial''
  
  
benno-pop3.1676880637.txt.gz · Zuletzt geändert: 2023/02/20 08:10 von lwsystems