procmail
[Top] [All Lists]

Re: procmail for individual users on server

2005-12-08 18:39:04
MailingList:

I have created the .forward in the user Home directory.
Permissions are -rwx------ 1 vs1040 vs1040 66

No need for it to be executable.

Are you sure that you need a .forward?

Is vs1040 the user?


I have created the .procmailrc
Permissions are -rwx------ 1 vs1040 vs1040 66

No need for it to be executable.


VERBOSE=yes
LOGABSTRACT=all
MAILDIR=/var/spool/mail/  #This directory must exist!!!

MAILDIR shouldn't end in a slash. Changing the value of MAILDIR is
procmail's chdir-command. But if you use it as a variable, you will
always put a '/' after it, and then there were two.
Are you sure that you want '/var/spool/mail' as the general place to
create mailfolders?


# Tell procmail where to put the log file
LOGFILE=$PMDIR/procmail.log

Where is PMDIR defined?

Whitespace is cheap:

  VERBOSE     = 'yes'
  LOGABSTRACT = 'all'
  MAILDIR     = "$HOME/Maildir"  # This directory must exist.
  PMDIR       = "$HOME"


No log file is being generated.

Because the user can't create or write to '/procmail.log' (because
$PMDIR was empty).


When I send an email to
vs1040(_at_)s1(_dot_)hostnet(_dot_)net(_dot_)au I get the following Message 
returned...


   ----- The following addresses had permanent fatal errors -----
"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #vs1040"
    (reason: Service unavailable)
    (expanded from: <vs1040(_at_)s1(_dot_)hostnet(_dot_)net(_dot_)au>)

   ----- Transcript of session follows -----
smrsh: "IFS='" not available for sendmail programs (stat failed)
554 5.0.0 Service unavailable


Does this mean that procmail is not active?

smrsh = sendmail restricted shell

Check what /etc/smrsh contains. Normally there is a symlink to procmail
there.

Change your .forward to just contain

|procmail

(without any spaces or quotes etc.)

http://www.faqs.org/docs/securing/chap22sec182.html
(first Google hit on smrsh)

-- 
Grtz, Ruud


____________________________________________________________
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>