Results 1 to 9 of 9

Thread: Fetching mails from a remote server

  1. #1
    Join Date
    Apr 2006
    Posts
    37
    Rep Power
    9

    Default Fetching mails from a remote server

    Hello,

    I tried to look that within this forum and in the admin guide but didn't see anything related to this. (Maybe i've skipped some part)

    I would like to fetch mails for my LAN users from a remote server. (retrieving these mails and have them sent to respective mailboxes).

    Sorry if this question have already been catered for ... send me a link to the related info is that's the case.

    Cheers

  2. #2
    Join Date
    Oct 2005
    Location
    Belgium
    Posts
    68
    Rep Power
    10

    Default

    You can use fetchmail for this.
    See:
    http://www.zimbra.com/forums/showthr...ight=fetchmail

  3. #3
    Join Date
    Apr 2006
    Posts
    37
    Rep Power
    9

    Default

    Sorry, just seen a sticky about fetchmail regarding something similar from what i want. Can i run fetchmail alongside Zimbra ? I thought that postfix (installed with the zimbra suite) could be configured to do something like that within Zimbra ?

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by fredo
    Sorry, just seen a sticky about fetchmail regarding something similar from what i want. Can i run fetchmail alongside Zimbra ?
    Yes, if you need to collect mail from other (ISP) accounts then you need a program to do it - fetchmail gets the mail and delivers it to your local SMTP.


    Quote Originally Posted by fredo
    I thought that postfix (installed with the zimbra suite) could be configured to do something like that within Zimbra ?
    No, Postfix doesn't do that. Postfix is a Mail Transport Agent and (basically) it just sits there waiting for a connection on port 25 from another MTA which will deliver the messages to it. Postfix isn't designed to fetch mail from some other system.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Unhappy fetchmail and maildrop (external catchall)

    I've used fetchmail as described above to collect mail for specific users, but how would I collect mail from a pop3 catchall account and forward to zimbra to be distributed to local accounts?

    I've tried the following:

    Code:
    poll mail.example.com
        proto pop3
        user test@example.com password 'test123' to * here
    as well as:
    Code:
    poll mail.example.com
        proto pop3
        user test@example.com password 'test123'
        smtphost mail.mydomain.com
    Both fetch the mail successfully but never get delivered locally.

    Any ideas?

    Sorry if this is posted elsewhere in the forums but I couldn't find it in my searches.

    As always... Thanks!

    jimbo
    Last edited by jimbo; 05-07-2006 at 09:31 PM.

  6. #6
    Join Date
    Apr 2006
    Posts
    37
    Rep Power
    9

    Default

    That's what i used in my fetchmailrc config file :

    //Beginning of fetchmailrc file
    set daemon 600 (polls server every 10 mins)

    //First user
    poll mail.example.com
    proto pop3
    user "user1@example.com"
    pass "example"
    is "user1@example.com"

    //Second user
    poll mail.example.com
    proto pop3
    user "user2@example.com"
    pass "example"
    is "user2@example.com"


    You must create your zimbra accounts first and the line "is "example@example.com"" is one of your zimbra accounts that you created.

    I don't know if it's right to do it like that but it works for me. I'm still testing the server anyway.

  7. #7
    Join Date
    Nov 2005
    Posts
    108
    Rep Power
    10

    Thumbs up fetchmail and multidrop (solved)

    OK,

    I've got it figured out...

    This worked...

    Code:
    poll mail.example.com localdomains mydomain.com
        proto pop3
        no dns
        user test@example.com password 'test123' to * here
    This will fetch all mail from the multi-drop pop3 account named test on the mail server 'mail.example.com' and forward them to zimbra for local delivery

  8. #8
    Join Date
    Jun 2006
    Posts
    100
    Rep Power
    9

    Default

    Thank you friends.

    I have been struggling with the same and finally did it. Please reply me if there could be any other issues that could raise.

    Heartfull wishes

  9. #9
    Join Date
    Sep 2006
    Posts
    21
    Rep Power
    9

    Default

    Quote Originally Posted by jimbo
    OK,

    I've got it figured out...

    This worked...

    Code:
    poll mail.example.com localdomains mydomain.com
        proto pop3
        no dns
        user test@example.com password 'test123' to * here
    This will fetch all mail from the multi-drop pop3 account named test on the mail server 'mail.example.com' and forward them to zimbra for local delivery

    Multi-drop is not really suitable for production use. This is because of things the internet/isp mail server does when forwarding mail to a single drop account, or processing bcc mail in general that result in the information fetchmail needs to route the message to the correct local account being lost.

    The code above works well for mail addressed 'to' or 'cc' the recipient, but in my experience, identical messages to multiple users are lost after the first user and bcc mail is always lost.

    For details on why this is, see the fetchmail FAQ: http://www.catb.org/~esr/fetchmail/f...il-man.html#25

    The only solution I have found is to support individual user accounts in fetchmail. Unfortunately, this means maintaining user, password and email in three locations (Zimbra, fetchmail and internet/isp mail server).

    -Glen

Similar Threads

  1. initializing ldap...FAILED(256)ERROR
    By manjunath in forum Installation
    Replies: 39
    Last Post: 06-07-2013, 11:27 AM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 08:46 PM
  4. Error 256 on Installation
    By RuinExplorer in forum Installation
    Replies: 5
    Last Post: 10-19-2006, 10:19 AM
  5. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 11:34 PM

Posting Permissions

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