Bug 932163

Summary: FETCHMAIL_POLLING_INTERVAL not honoured
Product: [openSUSE] openSUSE Tumbleweed Reporter: Andrew Beames <suse_forum>
Component: YaST2Assignee: Peter Varkoly <varkoly>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: forgotten_6EwEDK7-dH, forgotten_GJ25OdPlc3
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andrew Beames 2015-05-24 22:22:58 UTC
I am using openSUSE Tumbleweed on a reasonably fresh install.
I configured "mail server" through YaST2 and selected to use fetchmail as a daemon.
On completion I checked the running services and I see the following:

ps -ef | grep fetch
fetchma+   980     1  0 22:15 ?        00:00:00 /usr/bin/fetchmail -d 900 -f /etc/fetchmailrc

In other words the interval is set to 900.
However in the "/etc/sysconfig" YaST2 option, the interval is set to 600:

cat /etc/sysconfig/fetchmail | grep -v "#"
FETCHMAIL_POLLING_INTERVAL="600"

FETCHMAIL_FETCHALL="yes"

FETCHMAIL_SILENT="no"

FETCHMAIL_USER="fetchmail"

FETCHMAIL_EXPERT_OPTIONS=""

FETCHMAIL_RC_PATH="/etc/fetchmailrc"


Unfortunately I could not work out where the fetchmail command was being constructed so I cannot help with a solution.

However, it could be possible to specify the interval and the daemon option in the /etc/fetchmailrc file as the following entry:

set daemon 600
Comment 1 Andrew Beames 2015-05-24 22:30:42 UTC
*** Bug 932164 has been marked as a duplicate of this bug. ***
Comment 2 Forgotten User 6EwEDK7-dH 2015-07-09 09:48:58 UTC
I can confirm this annoying issue.
Workaround: Create File /etc/systemd/system/fetchmail.service with

.include /usr/lib/systemd/system/fetchmail.service

[Service]
ExecStart=
ExecStart=/usr/bin/fetchmail -d 600 -f /etc/fetchmailrc

and run "systemctl daemon-reload" afterwards.
Comment 3 Forgotten User GJ25OdPlc3 2016-01-02 19:52:21 UTC
in my opinion the bug is not fixed in opensuse 42.1.Is this right ?
Comment 4 Andrew Beames 2016-01-02 20:22:25 UTC
I am now using the leap 42.1 repos (rather than tumbleweed) but it is now a heavily customised mail system. I call fetchmail manually, for example.

However, I have just checked
/etc/sysconfig/fetchmail

and the setting is:
FETCHMAIL_POLLING_INTERVAL="300"

but, if I start the service:
/etc/sysconfig % sudo systemctl start fetchmail

and then check:
/etc/sysconfig % sudo systemctl status fetchmail
fetchmail.service - A remote-mail retrieval utility
   Loaded: loaded (/usr/lib/systemd/system/fetchmail.service; disabled)
   Active: active (running) since Sat 2016-01-02 20:15:53 GMT; 6s ago
 Main PID: 18482 (fetchmail)
   CGroup: /system.slice/fetchmail.service
           └─18482 /usr/bin/fetchmail -d 900 -f /etc/fetchmailrc

you can see that the daemon has still been kicked off with 900.

Note that my /etc/fetchmailrc file only has poll statements in it.
Comment 5 Peter Varkoly 2019-06-05 14:40:11 UTC
Duplicated

*** This bug has been marked as a duplicate of bug 905673 ***