🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.mail.sendmail
3 messages
3 total messages Started by Justin S. Cooksey Thu, 19 Mar 1998 00:00
Procmail for fetchmail and local MDA
#3539
Author: Justin S. Cooksey
Date: Thu, 19 Mar 1998 00:00
25 lines
1493 bytes
I am using RedHat Linux 5.0, which uses procmail as the local delivery
agent. I am getting mail from my ISP using fetchmail with procmail as
the delivery agent. Basically I want to set up a few rules to sort
mail amongst some users on the Linux system. Any message that dosn't
fit those rules gets passed to root.

However if I create a .procmailrc file in /root for when I pickup mail
the same .procmailrc file will be used for the local delivery and the
mail gets stuck in a never ending loop.

What is the best solution?

Should I create an account that picks up mail from my ISP and has the
specific .procmailrc file in its home directory, and would that solve
the problem?

Should I not use procmail for local delivery?

Why is procmail set up for local delivery?


Thanks for any help,

Justin.
Re: Procmail for fetchmail and local MDA
#3538
Author: Nick Andrew
Date: Tue, 24 Mar 1998 00:00
24 lines
1733 bytes
In <350e577e.232540@news.hunterlink.net.au> jcooksey@hunterlink.net.au (Justin S. Cooksey) writes:

>I am using RedHat Linux 5.0, which uses procmail as the local delivery
>agent. I am getting mail from my ISP using fetchmail with procmail as
>the delivery agent. Basically I want to set up a few rules to sort
>mail amongst some users on the Linux system. Any message that dosn't
>fit those rules gets passed to root.

>However if I create a .procmailrc file in /root for when I pickup mail
>the same .procmailrc file will be used for the local delivery and the
>mail gets stuck in a never ending loop.

So don't use root as your filter destination.

It sounds like all your inbound mail (as picked up from fetchmail) is
going to root and being processed by procmail there; all you have to do
is filter your mail at that point and any message which does not pass
your rules gets sent to a mailbox other than root.

Nick.
-- 
Zeta Internet                     SP4   Fax: +61-2-9233-6545 Voice: 9231-9400
G.P.O. Box 3400, Sydney NSW 1043        http://www.zeta.org.au/
Re: Procmail for fetchmail and local MDA
#3537
Author: Boris Boehlen
Date: Tue, 31 Mar 1998 00:00
23 lines
1764 bytes
Hi,
> >I am using RedHat Linux 5.0, which uses procmail as the local delivery
> >agent. I am getting mail from my ISP using fetchmail with procmail as
> >the delivery agent. Basically I want to set up a few rules to sort
> >mail amongst some users on the Linux system. Any message that dosn't
> >fit those rules gets passed to root.
> 
> >However if I create a .procmailrc file in /root for when I pickup mail
> >the same .procmailrc file will be used for the local delivery and the
> >mail gets stuck in a never ending loop.
My solution was to setup a single user dedicated to fetch and sort the
mails. This user has its own fetchmailrc and procmailrc. Additionaly
this user should not get any mails. That's it.

Bye
	Boris

-- 
- Boris Boehlen    | Kirchrather Strasse 41
-                  | 52074 Aachen
-                  | Phone: +49 241 870034
-                  | EMail: boris@i3.Informatik.RWTH-Aachen.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads