Results 1 to 2 of 2

Thread: Fetchmail and Zimbra

  1. #1
    thomi is offline Intermediate Member
    Join Date
    Mar 2009
    Posts
    20
    Rep Power
    6

    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.

  2. #2
    thomi is offline Intermediate Member
    Join Date
    Mar 2009
    Posts
    20
    Rep Power
    6

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Don't download e-mail wicth fetchmail
    By zap985 in forum Installation
    Replies: 7
    Last Post: 09-08-2008, 06:19 AM
  2. Debian ETCH Install Well Done Zimbra!
    By bobthebuilder in forum Installation
    Replies: 11
    Last Post: 07-30-2007, 02:52 AM
  3. Reliable Zimbra installation on Debian Etch?
    By holunde in forum Installation
    Replies: 7
    Last Post: 06-21-2007, 12:01 AM
  4. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM
  5. Seeming variety of problems on suse-9.1
    By Crexis in forum Installation
    Replies: 52
    Last Post: 03-04-2006, 12:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •