Anyone use fetchmail for multiple users?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux