View Full Version : ?Fetchmail? Please...
Heinz09
15th May 2007, 13:49
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
yum install fetchmail
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 :)
falko
16th May 2007, 16:59
You must configure /etc/fetchmailrc next and restart fetchmail.
http://www.howtoforge.com/forums/showpost.php?p=34140&postcount=2
Heinz09
16th May 2007, 19:25
The moment I run fetchmail from the console it just says
fetchmail: no mailservers have been specified.
this happened after I edited the /etc/fetchmailrc
falko
17th May 2007, 17:07
What's in /etc/fetchmailrc?
Heinz09
18th May 2007, 14:50
Here goes... [Feel free to correct me :)]
set postmaster root
set no bouncemail
defaults:
timeout 300
antispam -1
batchlimit 100
poll pop3.telkomsa.net protocol POP3 user "[username]" there with password "[password]" is web1_hvz here
So ok... what did I do wrong?
falko
19th May 2007, 15:49
How do you run fetchmail? Did you start the fetchmail daemon:
/etc/init.d/fetchmail start
or did you simply run
fetchmail on the shell?
Heinz09
20th May 2007, 22:55
:eek: It seems that I found what might be causing it, I am just not sure how to go about fixing it...
/etc/init.d/fetchmail start
bash: /etc/init.d/fetchmail: no such file or directory
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?
falko
21st May 2007, 14:08
: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?
So from your answer I assume that you simply ran 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.
Heinz09
22nd May 2007, 18:43
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.
falko
23rd May 2007, 13:57
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:
crontab -e (must be run as the user for which you want to fetch mails)
*/5 * * * * /usr/bin/fetchmail
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.