On Wed, Jan 30, 2002 at 09:39:29PM -0800, Roger Thomas wrote:
> i have done the ground work in setting up courier/ldap/qmail.
> as a quick test, i have also installed squirrelmail to send and receive mail
> successfuly.
> 
> my next hurdle is setting up pop3 client. i have opted to go for fetchmail. 
> i have read couple dozens of howto, but the more i read, the more i confused i
> am. 
> 
Just to be sure: you would like to fetch mail from different servers and
inject them into your local qmail-ldap system?

Is this on a per (virtual) user basis or done in an other way?

> my maildirs resides in /var/qmail/maildirs, owned by vmail. i have the
> qmail-ldap user, roger home dir in /var/qmail/maildirs/roger
> 
> q1. where do i create .fetchmailrc file? playing with my mr-spock-login, it
> would have to be in /var/qmail/maildirs/.fetchmailrc, because i wouldn't want
> to create a couple thousands of that file under my users homedir, wouldn't i?
> appreciate if you can include a sample configuration.
> 
You can create your fetchmailrc file whereever you like. fetchmail has a
-f / --fetchmailrc argument where you can specify the fetchmailrc.

Next problem: to suck mails you need a cleartext password for every
session. IMHO to store cleartext password in a virtual user setup (all
user have the same UID) is ... let's say dangerous.

Here an example fetchmail rc file:
set syslog
poll mail.yahoo.com proto pop3 uidl timeout 30 user test1 pass "XXXX" forcecr
poll mail.blabla.com proto pop3 uidl timeout 30 user roger pass "blabla" forcecr
poll mail.microsoft.com proto pop3 uidl timeout 30 user bill pass "gates" forcecr


> q2. how does the mailserver knows how to invoke fetchmail. i know that
> fetchmail is already installed in my linux box. it is run via cron? who runs
> it? or is it invoked via some qmail's run file?
> if the last question is true, appreciate if you could show sample run file.
> 
You can run fetchmail in deamon mode (set daemon <interval>) so that you
only need to start it on bootup. Or you can start fetchmail from cron.
I'm using both sollutions...

-- 
:wq Claudio

tail -23 QLDAPINSTALL

Reply via email to