Trying to figure out how to configure it for multiple users. By default CentOS doesn't have a daemon setup if you want to do this.
Preston
On Wed, 2005-10-12 at 16:03 -0700, Preston Crawford wrote:
Trying to figure out how to configure it for multiple users. By default CentOS doesn't have a daemon setup if you want to do this.
---- I think fetchmail by design wasn't intended to run for anything but a single user and you can run many instances for many users.
There is indeed a daemon mode... 'man fetchmail' will clearly describe it.
I suppose there have been people who have gotten it to work for a domain but generally, you could probably work out a store and forward with your ISP and use ETRN to pull in email for an entire domain instead of using fetchmail.
Craig
Doesn't fetchmail have ETRN handling and even multi-domain support? I think it is designed for it, it's just a lot of configuration options to sift through.
Cheers, MaZe.
On Wed, 12 Oct 2005, Craig White wrote:
On Wed, 2005-10-12 at 16:03 -0700, Preston Crawford wrote:
Trying to figure out how to configure it for multiple users. By default CentOS doesn't have a daemon setup if you want to do this.
I think fetchmail by design wasn't intended to run for anything but a single user and you can run many instances for many users.
There is indeed a daemon mode... 'man fetchmail' will clearly describe it.
I suppose there have been people who have gotten it to work for a domain but generally, you could probably work out a store and forward with your ISP and use ETRN to pull in email for an entire domain instead of using fetchmail.
Craig
On Thu, 2005-10-13 at 01:42 +0200, Maciej Żenczykowski wrote:
Doesn't fetchmail have ETRN handling and even multi-domain support? I think it is designed for it, it's just a lot of configuration options to sift through.
---- Yes it does (just looked a man page) - good luck - it's been a long time since I configured it.
Craig
On Wed, 12 Oct 2005, Craig White wrote:
On Wed, 2005-10-12 at 16:03 -0700, Preston Crawford wrote:
Trying to figure out how to configure it for multiple users. By default CentOS doesn't have a daemon setup if you want to do this.
I think fetchmail by design wasn't intended to run for anything but a single user and you can run many instances for many users.
True. I think my problem in this regard is that I used SuSE for a couple years and they setup fetchmail as a daemon so I thought this was kosher. But now that I think about it...
Anyway, I only want to run it for two people. Would I just run both of them in daemon mode?
I suppose there have been people who have gotten it to work for a domain but generally, you could probably work out a store and forward with your ISP and use ETRN to pull in email for an entire domain instead of using fetchmail.
Maybe. We're just individual users, though, so just being able to pop the email is easier if we can do it.
Preston
On Wed, 2005-10-12 at 16:44 -0700, Preston Crawford wrote:
On Wed, 12 Oct 2005, Craig White wrote:
On Wed, 2005-10-12 at 16:03 -0700, Preston Crawford wrote:
Trying to figure out how to configure it for multiple users. By default CentOS doesn't have a daemon setup if you want to do this.
I think fetchmail by design wasn't intended to run for anything but a single user and you can run many instances for many users.
True. I think my problem in this regard is that I used SuSE for a couple years and they setup fetchmail as a daemon so I thought this was kosher. But now that I think about it...
Anyway, I only want to run it for two people. Would I just run both of them in daemon mode?
---- yes - simply put their configs in each of their $HOME/.fetchmailrc
probably add to /etc/rc.d/rc.local su - craig -c 'fetchmail' & su - preston -c 'fetchmail' &
# cat /home/craig/.fetchmailrc defaults set daemon 180 set postmaster craig set nospambounce set nobouncemail set logfile /home/craig/fetchmail.log poll mail10.alevelhigher.com proto imap localdomains azapple.com user "MY_USERNAME" pass "MY_PASS batchlimit 25
YMMV
Craig
Anyway, I only want to run it for two people. Would I just run both of them in daemon mode?
If you want to run it for two people then just set up the "~/.fetchmailrc" file for each user and run "fetchmail" on each users account
example "~/.fetchmailrc" file:
set daemon 1800 poll server.pl protocol POP3 tracepolls user myname smtpname email+tag@destination.pl poll server2.pl protocol POP3 tracepolls user myname2 smtpname email+tag2@destination.pl user myname3 smtpname email+tag3@destination.pl
and "fetchmail" added to the end of "~/.bash_profile" which loads fetchmail when you login (or pings it to force refresh) and it stays loaded till reboot.
I suppose there have been people who have gotten it to work for a domain but generally, you could probably work out a store and forward with your ISP and use ETRN to pull in email for an entire domain instead of using fetchmail.
Maybe. We're just individual users, though, so just being able to pop the email is easier if we can do it.
Preston _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Might have to scrap using fetchmail. It's not getting mail in daemon mode for me. And for my wife's account it's actually getting the email over and over for her each time since she has the "keep" flag. I have the keep flag too, but for some reason I only get the email once. Anyone know of a better alternative that's relatively easy to setup?
Preston
On 10/13/05, Preston Crawford me@prestoncrawford.com wrote:
Might have to scrap using fetchmail. It's not getting mail in daemon mode for me. And for my wife's account it's actually getting the email over and over for her each time since she has the "keep" flag. I have the keep flag too, but for some reason I only get the email once. Anyone know of a better alternative that's relatively easy to setup?
Following is my .fetchmailrc:
set daemon 0 # Do we need to test with bounce mail if this can avoid spam? set no bouncemail set logfile /var/log/fetchmail.log
poll www.xxx.yyy.zzz with protocol pop3 user user1 with password abcdef is * here user user2 with password abcdef is user2 here poll eee.fff.ggg.hhh with protocol pop3 user user1 with password tomany3e is user1 here
poll someserver.com with protocol pop3 user user3 with password something is user3 here
Then I add the following in crontab to run fetchmail 14 minutes past every hour between 4am and 8pm:
14 4-20 * * * /usr/bin/fetchmail -f /etc/fetchmailrc/.fetchmailrc
Caution the file .fetchmailrc expects 600 permissions!
OR you can create lot of individual HTH -- Sudev Barar Learning Linux
Might have to scrap using fetchmail. It's not getting mail in daemon mode for me. And for my wife's account it's actually getting the email over and over for her each time since she has the "keep" flag. I have the keep flag too, but for some reason I only get the email once. Anyone know of a better alternative that's relatively easy to setup?
Preston _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
It is possible that it is her mail server. I have a few users that have AOL mail forwarded to our domain, and we originally tried using the keep flag, but the AOL server won't support it(pretty sure they limit what you can modify on their IMAP server). If she isn't using AOL, you could ask about her server's settings...
On Wed, 2005-10-12 at 16:03 -0700, Preston Crawford wrote:
Trying to figure out how to configure it for multiple users. By default CentOS doesn't have a daemon setup if you want to do this.
Here's how I do it:
Add the following line to /etc/crontab (unwrap it if necessary): 5/35 * * * * root /usr/bin/fetchmail -s -f /etc/fetchmailrc 2>&1
BEGIN /etc/fetchmailrc #set daemon 600 # 600 is 10 minute intervals # We use cron instead of daemon to ensure it keeps running set postmaster "postmaster" # Who gets error messages? set no bouncemail # Report them to Postmaster instead set no spambounce # Don't reject Spam. set properties "" poll mail.yourmailhost.foo with proto POP3 timeout 60 user 'ann' there with password 'Annie' is 'awarbucks' here fetchall user 'djones' there with password 'deep6' is 'davie' here fetchall poll mail.anotherhost.foo with proto POP3 timeout 60 user 'bill@anotherhost.foo' there with password 'gotmine' is 'billg' here fetchall user 'orphan' there with password 'little' is 'awarbucks' here fetchall