Page 1 of 1

fetchmail help

PostPosted: Oct 13th, '14, 08:10
by arromdee
IU am running Mageia 4.0 and am trying to get fetchmail to run as a service.

If I create a .fetchmailrc in my home directory and run fetchmail manually as myself (or with fetchmailconf running as myself), it works.

set postmaster "arromdee"
set bouncemail
set no spambounce
set softbounce
set properties ""
poll mail.xxxxxx.net with proto POP3
user 'arromdee' password 'xxxxxxxx' mda "/bin/procmail -d %T"

However, if I try it as a service and put it in /etc/fetchmailrc, the service seems to run as root and delivers the mail to root. Obviously I want it delivered to the user "arromdee" and for the procmail to use arromdee's .procmailrc and put the mail in arromdee's directories.

Also, how do I get fetchmail to log whenever it delivers messages?

Re: fetchmail help

PostPosted: Oct 13th, '14, 18:50
by doktor5000
You may want to have a look at http://www.fetchmail.info/fetchmail-man.html

Re: fetchmail help

PostPosted: Oct 13th, '14, 21:23
by arromdee
I had already found that. It's not very helpful. Almost everything it describes is about how to put things into your own .fetchmailrc, implying that either you're manually running it as a particular user (which I already said does work), that you're running it as a daemon but as a particular user (which does not match the way Mageia is set up), or that you're running it as a root-owned service but you already know how to make it process .fetchmailrc as a user (which is my *problem*, so information that assumes I already solved the problem doesn't help me).

The closest it comes is the examples section, but that section has no examples of having both a system-wide fetchmailrc and a user-specific fetchmailrc, and is vague in several ways. (For just one example, does "deliver to X" mean "parses the fetchmailrc owned by X, and is detected by programs such as procmail as being user X"?)