The differences between two versions are shown here.
| Both sides of the previous revisionPrevious revisionNext revision | Previous revision | ||
| benno-pop3 [2019/05/23 13:09] – [Aufrufparameter] lwsystems | benno-pop3 [2024/12/17 11:57] (current) – [Konfiguration] lwsystems | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| ==== Beschreibung | ==== Beschreibung | ||
| - | benno-pop3 ist ein POP3 Konnektor für Benno MailArchiv. Die E-Mails werden aus einem Postfach eines POP3-Servers abgeholt und atomar in das INBOX-Verzeichnis von Benno geschrieben. Das Programm kann wird über das Paket // | + | benno-pop3 ist ein POP3 Konnektor für Benno MailArchiv. Die E-Mails werden aus einem Postfach eines POP3-Servers abgeholt und atomar in das INBOX-Verzeichnis von Benno geschrieben. Das Programm kann wird über das Paket // |
| + | apt install benno-pop3 | ||
| ==== Konfiguration ==== | ==== Konfiguration ==== | ||
| Zeile 13: | Line 14: | ||
| # benno-pop3.conf | # benno-pop3.conf | ||
| # | # | ||
| + | # user = | ||
| + | # pass = | ||
| + | # host = localhost | ||
| + | # port = 110 | 995 | ||
| + | # runuser | ||
| + | # numfetch | ||
| + | # inbox = / | ||
| + | # | ||
| + | # extraheader_name | ||
| + | # extraheader_value = | ||
| + | |||
| host = pop3.lw-systems.net | host = pop3.lw-systems.net | ||
| user = mailimport | user = mailimport | ||
| Zeile 18: | Zeile 30: | ||
| </ | </ | ||
| - | Danach wird der Cron-Job in der Datei ''/ | + | Danach wird der Cron-Job in der Datei ''/ |
| < | < | ||
| Zeile 24: | Zeile 36: | ||
| # | # | ||
| # | # | ||
| - | */15 * * * * benno [ -x / | + | */15 * * * * benno [ -x / |
| </ | </ | ||
| + | |||
| ==== Aufrufparameter ==== | ==== Aufrufparameter ==== | ||
| - | |||
| - | Falls mehrere Mailboxen importiert werden sollen, kann der Connector auch mit den entsprechenden Kommanozeilenparametern gestartet werden. | ||
| < | < | ||
| Zeile 52: | Zeile 63: | ||
| -v verbose | -v verbose | ||
| </ | </ | ||
| + | |||
| + | ==== 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 ''/ | ||
| + | |||
| + | |||
| + | <file bash> | ||
| + | #!/bin/bash | ||
| + | # | ||
| + | # / | ||
| + | |||
| + | CONFDIR=/ | ||
| + | |||
| + | ENABLED='' | ||
| + | for CONFFILE in $(ls -1 ${CONFDIR}/ | ||
| + | / | ||
| + | ENABLED=OK | ||
| + | done | ||
| + | |||
| + | [ ${ENABLED}x = x ] && echo "BENNO POP3 ERROR - No configuration enabled" | ||
| + | </ | ||
| + | |||
| + | This script calls all configuration files with the extension .conf from the directory one after the other. | ||
| + | |||
| + | Then activate the x-flag: | ||
| + | |||
| + | chmod +x / | ||
| + | |||
| + | and adjust the cron call: | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||