[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] I can not get my .procmailrc to work



<snip>
>I have FTPed it to the Raq, in ASCII mode, after creating it
>in TextPad as UNIX file.
>
>when a mail arrives, I get this interesting error message in
>the "/var/log/maillog" file:
>Jan 16 01:55:20 www procmail[30074]: Suspicious rcfile
>"/home/sites/site6/users/qax/.procmailrc"
>
>My questions are (as I must be doing something wrong):
>Q1    Exactly where should I be putting the .procmailrc file,
>/home/sites/site6/users/theuserinquestion/ or
>/home/sites/site6/users/ ?
>Q2    What permissions should the current directory actually
>have to allow procmail to work ?
>Q3    What permissions should the .procmailrc file have ?
>Q4    What should the OWNER and GROUP be set to, should it be
>the default used by FTP ?
>Q5    I assume procmail is installed on the Raq3's by default,
>and assume it is always running and desnot need to be started ?
>
>Some info:  Im using a Raq3, I've used procmail quite a few
>times before on old ISP, I dont know too much Linux though
>:-((  --- Yet !!!!    And any help will be much appreciated !
A few things;
Using any text editor outside a UNIX environment raises the possibility
that control characters may be inserted at end of line which will fubar
many scripts. Instead, ssh in and use vi (if you need long lines) or
pico..[or your favorite UNIX text editor of choice, this is NOT
flamebait]
Q1:- /home/sites/site6/users/theuserinquestion/.procmailrc should do it
(I THINK) CAVEAT=I have never run procmail on a server that does virtual
hosting so I may be way off base here. Gurus please peruse and chop me
up into little pieces if this is wrong.
Q2:- home directories (where .procmailrc's live) should be 700, but some
systems require the directory to be world readable. Experiment and test
before final deployment
Q3:- chmod 0640 .procmailrc will probably make that error disappear.
procmail likes tight permissions in some places, looser permissions in
others.
Q4:- OWNER and GROUP permissions won't (shouldn't ever) affect procmail.
Q5:-. Sendmail launches procmail, procmail doesn't need to be turned on
like a daemon. I have no idea if procmail is on a RAQ3 by default. If it
is, an entry in .forward will tell sendmail to inform procmail to get
busy processing mail. a .forward should be set up like this;
"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #username"
USE the quotation marks BTW!!
HTH
-Colin
--
Colin J. Raven