Hello, I tried to start with the fetchmail module (mainly to get mail spam-checked when retrieving it), but I’m not bringing it up, maybe also due to my lack of knowledge.
I installed fetchmail container via GUI/Software Center
When I try to start setup according to here:
runagent -m fetchmail1
- I do not find the config files in dir /home/fetchmail1/.config/state as stated in the doc
created then these directories
/home/fetchmail1/.config/state/cron
/home/fetchmail1/.config/state/fetchmail
with the respective files as you suggested:
[fetchmail1@ns8 cron]$ more cronjob1
*/5 * * * * root /usr/bin/fetchmail -d0 -v -f /etc/fetchmail/fetchmailrc -L /var/log/fetchmail.log
[root@ns8 fetchmail]# sudo more fetchmailrc
set no bouncemail
set no spambounce
set properties ""
#poll pop.server tracepolls proto pop3 uidl auth password port 995 timeout 60
# user "<USER_NAME>" password "<PASSWORD>" ssl keep is <localmailuser@localmailserver.com> smtphost <Neth_IP>
# IMAP
poll securemail.>a1.net proto imap port 993
user "USER" password "PASSWORD" keep is "NS8USERMAIL" here smtphost <<NS8IP>>
What is unclear:
- which ownership do the files need? (currrently root/root). Do they need to be owned by fetchmail1/fetchmail1
In addition:
when configuring at the NS8 GUI The fetchmail hostname, the following error occurs:
{"context":{"action":"configure-module","data":{"host":"HOSTNAMR"},"extra":{"description":"Configuring","eventId":"a4ce4372-6f29-49eb-b7a0-d0873b4fcc21","title":"Configure fetchmail"},"id":"3e6f4ad7-0807-438c-bea3-a18b90b8b394","parent":"","queue":"module/fetchmail1/tasks","timestamp":"2025-06-14T05:27:10.909580501Z","user":"admin"},"status":"aborted","progress":50,"subTasks":[],"validated":true,"result":{"error":"<7>dump_env() is deprecated and implemented as a no-op\nCreated symlink /home/fetchmail1/.config/systemd/user/default.target.wants/fetchmail.service → /home/fetchmail1/.config/systemd/user/fetchmail.service.\nJob for fetchmail.service failed because the control process exited with error code.\nSee \"systemctl --user status fetchmail.service\" and \"journalctl --user -xeu fetchmail.service\" for details.\n","exit_code":1,"file":"task/module/fetchmail1/3e6f4ad7-0807-438c-bea3-a18b90b8b394","output":""}}
<7>dump_env() is deprecated and implemented as a no-op
Created symlink /home/fetchmail1/.config/systemd/user/default.target.wants/fetchmail.service → /home/fetchmail1/.config/systemd/user/fetchmail.service.
Job for fetchmail.service failed because the control process exited with error code.
See "systemctl --user status fetchmail.service" and "journalctl --user -xeu fetchmail.service" for details.
systemctl and journalctl does reply the following:
[root@ns8 fetchmail]# systemctl --user status fetchmail.service
Failed to connect to bus: No medium found
[root@ns8 fetchmail]# systemctl status fetchmail.service
Unit fetchmail.service could not be found.
In the logs for fetchmail1 node I see the following:
2025-06-14T07:27:14+02:00 [1:fetchmail1:systemd] Stopped fetchmail server.
2025-06-14T07:27:14+02:00 [1:fetchmail1:systemd] Starting fetchmail server...
2025-06-14T07:27:15+02:00 [1:fetchmail1:podman] Error: lsetxattr /home/fetchmail1/.config/state/fetchmail: operation not permitted
2025-06-14T07:27:15+02:00 [1:fetchmail1:systemd] fetchmail.service: Control process exited, code=exited, status=126/n/a
2025-06-14T07:27:15+02:00 [1:fetchmail1:podman] 59e29f77c0457e2665b951068031006d9bb18c94c3ad0b33e12d19907daf697f
2025-06-14T07:27:15+02:00 [1:fetchmail1:systemd] fetchmail.service: Failed with result 'exit-code'.
2025-06-14T07:27:15+02:00 [1:fetchmail1:systemd] Failed to start fetchmail server.
2025-06-14T07:27:15+02:00 [1:fetchmail1:systemd] fetchmail.service: Scheduled restart job, restart counter is at 4.
2025-06-14T07:27:15+02:00 [1:fetchmail1:systemd] Stopped fetchmail server.
2025-06-14T07:27:15+02:00 [1:fetchmail1:systemd] Starting fetchmail server...
2025-06-14T07:27:15+02:00 [1:fetchmail1:podman] Error: lsetxattr /home/fetchmail1/.config/state/fetchmail: operation not permitted
2025-06-14T07:27:15+02:00 [1:fetchmail1:systemd] fetchmail.service: Control process exited, code=exited, status=126/n/a
2025-06-14T07:27:15+02:00 [1:fetchmail1:podman] f35bb0b36599b9cefc70bce91c39c58b226a65945fb0c3fff019c6e90ae6daa1
2025-06-14T07:27:15+02:00 [1:fetchmail1:systemd] fetchmail.service: Failed with result 'exit-code'.
2025-06-14T07:27:15+02:00 [1:fetchmail1:systemd] Failed to start fetchmail server.
2025-06-14T07:27:16+02:00 [1:fetchmail1:systemd] fetchmail.service: Scheduled restart job, restart counter is at 5.
2025-06-14T07:27:16+02:00 [1:fetchmail1:systemd] Stopped fetchmail server.
2025-06-14T07:27:16+02:00 [1:fetchmail1:systemd] fetchmail.service: Start request repeated too quickly.
2025-06-14T07:27:16+02:00 [1:fetchmail1:systemd] fetchmail.service: Failed with result 'exit-code'.
2025-06-14T07:27:16+02:00 [1:fetchmail1:systemd] Failed to start fetchmail server.
2025-06-14T18:15:15+02:00 [1:fetchmail1:systemd] Starting Cleanup of User's Temporary Files and Directories...
2025-06-14T18:15:15+02:00 [1:fetchmail1:systemd] Finished Cleanup of User's Temporary Files and Directories.
2025-06-15T18:16:15+02:00 [1:fetchmail1:systemd] Starting Cleanup of User's Temporary Files and Directories...
2025-06-15T18:16:15+02:00 [1:fetchmail1:systemd] Finished Cleanup of User's Temporary Files and Directories.
Any hints what I’m doing wrong here (as a tried to follow the documentation)?
Many thanks!