?Fetchmail? Please...

Discussion in 'Installation/Configuration' started by Heinz09, May 15, 2007.

  1. Heinz09

    Heinz09 New Member

    A very nice person told me to use fetchmail. What I read is exactly what I want done.

    eg.
    user1@extmailserver -> user1@intmailserver -> pop client
    user2@extmailserver -> user2@intmailserver -> pop client

    no problem, but what now?

    I searched, but didn't quite find what I was looking for...

    PS: This will run as an internal mail server, they have broadband they just want a bit less congestion and a bit more mail filtering.

    My Config is as follows:
    OS: CentOS 4.4 32bit
    ISPConfig for them to get their mail from
    and a running system :)
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. Heinz09

    Heinz09 New Member

    The moment I run fetchmail from the console it just says
    this happened after I edited the /etc/fetchmailrc
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/fetchmailrc?
     
  5. Heinz09

    Heinz09 New Member

    Here goes... [Feel free to correct me :)]

    So ok... what did I do wrong?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    How do you run fetchmail? Did you start the fetchmail daemon:

    Code:
    /etc/init.d/fetchmail start
    or did you simply run

    Code:
    fetchmail
    on the shell?
     
  7. Heinz09

    Heinz09 New Member

    :eek: It seems that I found what might be causing it, I am just not sure how to go about fixing it...
    So it doesn't seem to be there where it is suppose to be, but I can run the fetchmail on it's own. Any ideas?
     
  8. falko

    falko Super Moderator Howtoforge Staff

    So from your answer I assume that you simply ran
    Code:
    fetchmail
    and not the fetchmail daemon. In that case, you don't need /etc/fetchmailrc, but must place a file .fetchmailrc (that looks like /etc/fetchmailrc) in the user's homedir.
     
  9. Heinz09

    Heinz09 New Member

    Let's say that I do WANT fetchmail to run as a deamon. Since it is for a couple of accounts 60, I kinda want it as automated as possible.
     
  10. falko

    falko Super Moderator Howtoforge Staff

    I don't know if there's a fetchmail daemon for CentOS (I know there's one for Debian). But you could create a cron job for each user that fetches mails every 5 minutes or so:

    Code:
    crontab -e
    (must be run as the user for which you want to fetch mails)
    Code:
    */5 * * * * /usr/bin/fetchmail
     

Share This Page