fetchmail help

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

fetchmail help

Postby arromdee » Oct 13th, '14, 08:10

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?
arromdee
 
Posts: 40
Joined: Jul 27th, '12, 16:26

Re: fetchmail help

Postby doktor5000 » Oct 13th, '14, 18:50

You may want to have a look at http://www.fetchmail.info/fetchmail-man.html
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18064
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: fetchmail help

Postby arromdee » Oct 13th, '14, 21:23

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"?)
arromdee
 
Posts: 40
Joined: Jul 27th, '12, 16:26


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest