PMG und IMAP Spam Begone

empx

New Member
Sep 30, 2024
2
0
1
Guten Tag zusammen,
ich habe einen extra Mailaccount eingereicht um hier die Mails in den configurierten imap folder zu verschieben damit alle Büromitarbeiter einfach Spam und Ham kategorisieren können.

Dafür wird isbg (IMAP Spam Begone) verwendet.
Dazu wird der Befehl wie folgt aufgerufen:
/root/isbg/bin/isbg --imaphost imap.easyname.com --imapuser <MAILUSER> --imappasswd <MAILPWD> --spaminbox iLoveSpam --learnspambox iLoveSpam --learnhambox FalseAlarm --spamc --verbose

Das funktioniert soweit gut und wird auch verarbeitet nur gibt es das Problem, dass nicht an Spamassasin übermittelt wird....

Errorlog:
1.) spamassasin is misconfigured (use --allow-tell)
und im PMG LOG
Oct 03 11:14:44 pmg spamc[10531]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused
Oct 03 11:14:44 pmg spamc[10531]: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection refused
Oct 03 11:14:45 pmg spamc[10531]: connect to spamd on ::1 failed, retrying (#2 of 3): Connection refused
Oct 03 11:14:45 pmg spamc[10531]: connect to spamd on 127.0.0.1 failed, retrying (#2 of 3): Connection refused
Oct 03 11:14:46 pmg spamc[10531]: connect to spamd on ::1 failed, retrying (#3 of 3): Connection refused
Oct 03 11:14:46 pmg spamc[10531]: connect to spamd on 127.0.0.1 failed, retrying (#3 of 3): Connection refused
Oct 03 11:14:46 pmg spamc[10531]: connection attempt to spamd aborted after 3 retries


Wenn man dann einmal mit spamd -l startet kann sich isbg zwar verbinden, es folgen aber dann folgende logs:
Oct 03 11:47:30 pmg spamd[2424]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody
Oct 03 11:47:30 pmg spamd[2424]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /root/.spamassassin/bayes.mutex: Permission denied
Oct 03 11:47:30 pmg spamd[2424]: spamd: Tell: Did nothing for root:65534 in 0.1 seconds, 171459 bytes
Oct 03 11:47:30 pmg spamd[2425]: spamd: connection from ::1 [::1]:46082 to port 783, fd 5
Oct 03 11:47:30 pmg spamd[2425]: spamd: setuid to root succeeded
Oct 03 11:47:30 pmg spamd[2080]: prefork: child states: IB
Oct 03 11:47:30 pmg spamd[2425]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody
Oct 03 11:47:30 pmg spamd[2425]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /root/.spamassassin/bayes.mutex: Permission denied
Oct 03 11:47:30 pmg spamd[2425]: spamd: Tell: Did nothing for root:65534 in 0.1 seconds, 184925 bytes
Oct 03 11:47:30 pmg spamd[2080]: prefork: child states: II
Oct 03 11:47:30 pmg spamd[2424]: spamd: connection from ::1 [::1]:46084 to port 783, fd 5
Oct 03 11:47:30 pmg spamd[2424]: spamd: setuid to root succeeded
Oct 03 11:47:31 pmg spamd[2424]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody
Oct 03 11:47:31 pmg spamd[2424]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /root/.spamassassin/bayes.mutex: Permission denied
Oct 03 11:47:31 pmg spamd[2424]: spamd: Tell: Did nothing for root:65534 in 0.1 seconds, 107932 bytes
Oct 03 11:47:31 pmg spamd[2425]: spamd: connection from ::1 [::1]:46098 to port 783, fd 5
Oct 03 11:47:31 pmg spamd[2425]: spamd: setuid to root succeeded
Oct 03 11:47:31 pmg spamd[2080]: prefork: child states: IB
Oct 03 11:47:31 pmg spamd[2425]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody
Oct 03 11:47:31 pmg spamd[2425]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /root/.spamassassin/bayes.mutex: Permission denied
Oct 03 11:47:31 pmg spamd[2425]: spamd: Tell: Did nothing for root:65534 in 0.1 seconds, 42832 bytes
Oct 03 11:47:31 pmg spamd[2080]: prefork: child states: II
Oct 03 11:47:31 pmg spamd[2424]: spamd: connection from ::1 [::1]:46100 to port 783, fd 5
Oct 03 11:47:31 pmg spamd[2424]: spamd: setuid to root succeeded
Oct 03 11:47:31 pmg spamd[2424]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody
Oct 03 11:47:31 pmg spamd[2424]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /root/.spamassassin/bayes.mutex: Permission denied
Oct 03 11:47:31 pmg spamd[2424]: spamd: Tell: Did nothing for root:65534 in 0.1 seconds, 108262 bytes
Oct 03 11:47:31 pmg spamd[2425]: spamd: connection from ::1 [::1]:46116 to port 783, fd 5
Oct 03 11:47:31 pmg spamd[2425]: spamd: setuid to root succeeded
Oct 03 11:47:31 pmg spamd[2080]: prefork: child states: IB
Oct 03 11:47:31 pmg spamd[2425]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody
Oct 03 11:47:31 pmg spamd[2425]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /root/.spamassassin/bayes.mutex: Permission denied
Oct 03 11:47:31 pmg spamd[2425]: spamd: Tell: Did nothing for root:65534 in 0.0 seconds, 98362 bytes
Oct 03 11:47:31 pmg spamd[2424]: spamd: connection from ::1 [::1]:46118 to port 783, fd 5
Oct 03 11:47:31 pmg spamd[2080]: prefork: child states: BI
Oct 03 11:47:31 pmg spamd[2424]: spamd: setuid to root succeeded
Oct 03 11:47:31 pmg spamd[2424]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody
Oct 03 11:47:31 pmg spamd[2424]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create lockfile /root/.spamassassin/bayes.mutex: Permission denied
Oct 03 11:47:31 pmg spamd[2424]: spamd: Tell: Did nothing for root:65534 in 0.1 seconds, 97644 bytes

kann mir eventuell wer helfen das Problem zu lösen?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!