Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-11-2009, 02:52 AM
Intermediate Member
 
Posts: 20
Thumbs up Fetchmail and Zimbra

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

Last edited by thomi; 03-11-2009 at 04:00 AM..
Reply With Quote
  #2 (permalink)  
Old 10-07-2009, 02:30 AM
Intermediate Member
 
Posts: 20
Default

Hi all

back again, with a zimbra fetchmail question..

the above works fine.. for me

i tried now this as zimbra user:

crontab - e and add folowing lines:

# fetchmail
* * * * * fetchmail -f /opt/zimbra/conf/my_fetchrc --pidfile /home/zimbra_fetchmail/.fetchmail.pid --idfile /home/zimbra_fetchmail/.fetchids_ --syslog

now i get this error in /var/log/zimbra.log:

Oct 7 11:29:02 zimbra fetchmail[23901]: execvp(openssl) failed
Oct 7 11:29:02 zimbra fetchmail[23869]: socket error while fetching from mailbox1@mail.domain.ch
Oct 7 11:29:02 zimbra fetchmail[23869]: Query status=2 (SOCKET)
Oct 7 11:29:03 zimbra fetchmail[23926]: execvp(openssl) failed
Oct 7 11:29:03 zimbra fetchmail[23869]: socket error while fetching from mailbox2@mail.domain.ch
Oct 7 11:29:03 zimbra fetchmail[23869]: Query status=2 (SOCKET)


thanks for help
thomi
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.