Re: [SLE] What is the proper tool for sharing a POP mailbox ?
The 03.02.28 at 08:07, Bruce Marshall wrote:
What you say may very well be true, but he should be able to get it to work with what he has in his procmailrc file. He's not delivering
to root.
Yes, he is.
If I read correctly - it is a long thread, and it is difficult to know exactly what and how he is using it - he was using fetchmail as root, and the procmail file was /etc/fetchmailrc. When using postfix (as shipped) with procmail, the "/etc/fetchmailrc" file is simply ignored, as is "/root/.procmailrc".
If he is using fetchmail as a normal user, the the rules should be in "/home/user/.procmailrc"
If he is bypassing postfix somehow, then this does not apply, of course - but I saw a mention of postfix in the posted logs.
I run fetchmail, procmail, (and used to run postfix) the same way he is trying to run it and it has worked for several years.
Me too; but before I was using sendmail, and when I changed to postfix with suse 8.1, procmail went nuts and root stopped receiving mail.
It is documented...
My guess, anyway, is that his postfix is missconfigured somewhere. The error log he gets is way strange.
Have it your way..... but I don't agree with a lot of what you say above.... such as "the procmail file was /etc/fetchmailrc. When using postfix (as shipped)
with procmail, the "/etc/fetchmailrc" file is simply ignored, as is "/root/.procmailrc".
Fetchmail and procmail are two different animals but you seem to make them as one above. There is no way a /etc/fetchmailrc file can be ignored by fetchmail if you tell it that's the file to use. I've run both sendmail and postfix along with fetchmail and procmail and it works as I explained... for me at least. In any event, this thread is now too convoluted to follow.
-- Cheers, Carlos Robinson
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- +++ Bruce Marshall bmarsh@bmarsh.com Bellaire, MI +++
Dear Bruce, Carlos & Jerry Thank you all for your help - i now have a working mail system delivering mail for both myself and my wife (she is very happy). I apologise for any confusion and hope that the previous emails were a good natured discussion !!!. I will try to cler up a few things: 1. I was running fetchmail as root 2. When i wanted to get procmail running i looked a Togan's FAQ and uncommented the mailbox_command line and added the path to procmail as he suggested. 3. When i did this the comments above this line said that if i wanted to use this to deliver mail system wide i had to alias root - which i did to Tim. 4. I then entered my recipe in /etc/procmailrc 5. I got all sorts of strange messages as you saw. What i did to solve this was: 1. Run fetchmail as Tim 2. Add Jerry's line about mda procmail to my procmailrc 3. Get the output written directly to /var/spool/mail/whoever. So once again thank you all for your help. I now move on to my next problem, Tim __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
--- chiefoldmist
2. Add Jerry's line about mda procmail to my procmailrc
This should of course say: 2. Add Jerry's line about mda procmail to my *fetch*mailrc Tim __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
The 03.03.02 at 14:59, chiefoldmist wrote:
Dear Bruce, Carlos & Jerry
Thank you all for your help - i now have a working mail system delivering mail for both myself and my wife (she is very happy).
Good! :-)
I apologise for any confusion and hope that the previous emails were a good natured discussion !!!.
:-)
I will try to cler up a few things:
1. I was running fetchmail as root
I thougt so.
2. When i wanted to get procmail running i looked a Togan's FAQ and uncommented the mailbox_command line and added the path to procmail as he suggested.
You mean this text? |2. How can I make fetchmail to deliver via procmail ? | |You need to add: | | mda "/usr/bin/procmail -d %T" | | |to your "options" in ~/.fetchmailrc For instance .fetchmailrc may look |something like: | |poll mail.domain.com protocol pop3 username myusername password |mysecretpassword options ssl mda "/usr/bin/procmail -d %T" Or this other entry: |4. How do use procmail with Postfix ? | |in /etc/postfix/main.cf Search for | |#mailbox_command = /some/where/procmail | | |And change it to your path to procmail, which is /usr/bin/procmail unless |you changes the procmail installation. It must be this last one. I think I'm starting to understand. :-) There is an easier way: Yast can configure it for you; or edit "/etc/sysconfig/postfix": POSTFIX_MDA="procmail" possibly running suseconfig later.
3. When i did this the comments above this line said that if i wanted to use this to deliver mail system wide i had to alias root - which i did to Tim.
Exactly!
4. I then entered my recipe in /etc/procmailrc
5. I got all sorts of strange messages as you saw.
Yes, very weird.
What i did to solve this was:
1. Run fetchmail as Tim
2. Add Jerry's line about mda procmail to my procmailrc
Which was? :-?
I now move on to my next problem,
I'm happy it worked at last :-) -- Cheers, Carlos Robinson
The 03.03.01 at 13:00, Bruce Marshall wrote:
Have it your way..... but I don't agree with a lot of what you say above....
such as "the procmail file was /etc/fetchmailrc. When using postfix (as shipped)
with procmail, the "/etc/fetchmailrc" file is simply ignored, as is "/root/.procmailrc".
Sorry, I misstyped: I meant "/etc/procmailrc". This is written on the postfix faq: | Root's mail is delivered to nobody | | If you use procmail (or some other command) for local mail | delivery, Postfix will not deliver mail as root. Instead, Postfix | runs procmail (or whatever) as nobody. Perhaps some day Wietse | will trust Postfix enough to run external commands as root. When I configured postfix to deliver locally using procmail in "/etc/sysconfig/postfix": POSTFIX_MDA="procmail" I noticed that root stopped receiving mail, and also that the /etc/procmailrc file was utterly ignored; and that is a fact and is documented. I'm sorry if I explained myself badly. This applies if fetchmail is run with rules that send mail to the root acount - which I thought was the case - not because of fetchmail or procmail, but because postfix sends root mail to "nobody" by default, or to the user you say (alias). The /etc/procmailrc never gets read, nor does "/root/.procmailrc" -- Cheers, Carlos Robinson
participants (3)
-
Bruce Marshall
-
Carlos E. R.
-
chiefoldmist