hi all
have read all about fetchmail and zimbra... and the solution in following thread is great... marcmac's zmfetchercfg
after that steps i run:
fetchmail -v -c -f /opt/zimbra/conf/my_fetchrc
i get:
/opt/zimbra/.fetchmail.pid: Permission denied
fetchmail: lock creation failed.
the problem is, that the zimbra user can't write directly into /opt/zimbra
so, i created /home/zimbra_fetchmail and chowned it to zimbra:zimbra
sudo mkdir /home/zimbra_fetchmail
sudo chown zimbra:zimbra /home/zimbra_fetchmail
then is used following command, including special pidfile for fetchmail:
fetchmail -v -c -f /opt/zimbra/conf/my_fetchrc --pidfile /home/zimbra_fetchmail/.fetchmail.pid
now it works fine... removing -c and all my emails from external accounts are in my zimbra account..
one little error, i get at the end of fetchmail transfer:
fetchmail: Cannot open fetchids file /opt/zimbra/.fetchids_ for writing: Permission denied
fetchmail: normal termination, status 0
fetchmail: Cannot open fetchids file /opt/zimbra/.fetchids_ for writing: Permission denied
i think this is the same problem as with the pidfile, cause the zimbra user can't write directly to /opt/zimbra...
so.. i run this command, including special idfile parameter:
fetchmail -v -f /opt/zimbra/conf/my_fetchrc --pidfile /home/zimbra_fetchmail/.fetchmail.pid --idfile /home/zimbra_fetchmail/.fetchids_
now, all works without errors...
running now above, last command as a daemon mode:
fetchmail -d 300 -f /opt/zimbra/conf/my_fetchrc --pidfile /home/zimbra_fetchmail/.fetchmail.pid --idfile /home/zimbra_fetchmail/.fetchids_ --syslog
with daemon mode it works fine... but one question
how can i start the fetchmail daemon mode on system boot with user zimbra?
have nice fetching
thomi


LinkBack URL
About LinkBacks


