procmail
[Top] [All Lists]

Re: FW: Lol Procmail dont work

2006-11-30 14:00:20
On Wed, 29 Nov 2006 09:04:49 -0800 Professional Software Engineering
<PSE-L(_at_)mail(_dot_)professional(_dot_)org> wrote:

At 11:52 2006-11-29 +0200, Marcel Grandemange wrote:

I only need procmail for a single user. Don't want it handling everyone
elses mail.

There are a lot of systems configured with procmail as LDA.  Not 
withstanding your current issues getting it running, procmail is a reliable 
LDA.

Perhaps your postfix config is taking issue with the procmail binary 
permissions.  Say, in a fashion similar to the sendmail restricted shell 
(smrsh).  See:

<http://www.mhonarc.org/archive/html/procmail/2000-05/msg00013.html>

"local_command_shell" is probably what you need to look for in your postfix 
setup.

If this is the case, I can't begin to fathom why postfix wouldn't be 
issuing a bounce for the messages.  In fact, if procmail were executing and 
bailing out, there should be an exit code...

Depending on his *nix distribution PostFix may already *BE* configured as
the LDA. It is for my Debian installs.

In any case, it's prudent to go ahead and set it up as the LDA if you plan
to use it at all. So long as you have no /etc/procmailrc procmail will
silently ignore all accounts that do not have a ~/.procmailrc and deliver
to the system mailbox as if it were not even there. I had all kinds of
(loose nut behind the keyboard type) problems when I was initially setting
up procmail using a .forward many years ago. Checking my distro and
allowing the old Exim install to use procmail as the LDA as it was already
set up to do solved them all. This was long before I found this list so I
was googling and yahooing and reading every other place I could find.

Get rid of the .forward file.

Set up a real user account.

create a .procmailrc [NOTE the '.' in front of that] in the user's home
directory that looks like this:

SHELL=/bin/sh 
LOGFILE=$HOME/procmail.log 
VERBOSE=yes

Just that. Don't try defining any MAILDIR or DEFAULT. Let it use the
compiled in settings. If procmail is already set up as the LDA then all
mail should get delivered to your /var/mail/user mailbox as usual but you
should have a ~/procmail.log file appear that basically just has a line
showing delivery to that mailbox for each message.

Now grab Sean's sandbox and experiment away.

Gerald

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>