Hello,
I am unable to use promail to deliver mail to my $HOME/mail directory,
on my RedHat 7.3 box at home. fetchmail seems to work fine, procmail
is invoked in my .fetchmailrc file with the -d option. after googling,
i got the impression that it was something to do with the setuid
permissions. i am attatching the output. i have included, the procmail
error message, the permisions of the /usr/bin/procmail file and my
.fetchmailrc file where procmail is called from. i also am including
the permissions for my $HOME/mail directory.
note that the permissions seen on /usr/bin/procmail are after i did
the foll:
chown u+s /usr/bin/procmail
chmod 4755 /usr/bin/procmail
but this did not help, i even tried
chmod g+s /usr/bin/procmail
which didn't work as well. as you can guess, i am totally lost. this
setuid/setgid stuff is beyond me. any solution that will let procmail
deliver mail to my $HOME/mail will be greatly appreciated.
---------------------------------------------------------------------
[mario(_at_)localhost mario]$ fetchmail -v -B 1
fetchmail: 5.9.0 querying mailsvr.goatelecom.com (protocol POP3) at Thu 20 Jun
2002 09:09:45 PM IST
fetchmail: POP3< +OK QPOP (version 2.53) at prodserver1.goatelecom.com
starting. <18067(_dot_)1024587843(_at_)prodserver1(_dot_)goatelecom(_dot_)com>
<snipped>
fetchmail: POP3< .
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 3020 octets
reading message 1 of 7 (3020 octets)
#*****************************.**************************procmail: [2446] Thu Ju
n 20 21:09:52 2002
"rocmail: Assigning "FORMAIL=/usr/bin/formail
procmail: Assigning "SENDMAIL=/usr/sbin/sendmail"
"rocmail: Skipped "
"rocmail: Assigning "MAILDIR=/home/mario/mail
"rocmail: Couldn't chdir to "/home/mario/mail
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
procmail: Assigning "MAILDIR=."
"rocmail: Assigning "DEFAULT=./inbox
"rocmail: Assigning "LOGFILE=./from
"rocmail: Opening "./from
not flushed
fetchmail: fetchlimit 1 reached; 6 messages left on server
fetchmail: POP3> QUIT
fetchmail: POP3< +OK Pop server at prodserver1.goatelecom.com signing off.
fetchmail: Query status=13 (MAXFETCH)
fetchmail: normal termination, status 13
[mario(_at_)localhost mario]$
---------------------------------------------------------------------
[mario(_at_)localhost mario]$ ls -l /usr/bin/ | grep procmail
-rwsr-xr-x 1 root mail 94181 Mar 25 23:33 procmail
---------------------------------------------------------------------
[mario(_at_)localhost mario]$ ls -lF ~/ | grep mail
drwxrwxrwx 2 mario mario 4096 Jun 20 21:16 mail/
---------------------------------------------------------------------
[mario(_at_)localhost mario]$ head ~/.procmailrc
VERBOSE=on
FORMAIL=/usr/bin/formail
SENDMAIL=/usr/sbin/sendmail
MAILDIR=$HOME/mail
DEFAULT=$MAILDIR/inbox
LOGFILE=$MAILDIR/from
# Anything that has not been delivered by now will go to $DEFAULT
# using LOCKFILE=$DEFAULT$LOCKTEXT
---------------------------------------------------------------------
[mario(_at_)localhost mario]$ cat .fetchmailrc
# Configuration created Tue Feb 22 20:02:26 2000 by fetchmailconf
poll "mailsvr.goatelecom.com" with proto POP3 no dns
user "superman" there is mario here password "xxxx"
mda "/usr/bin/procmail -d %s"
fetchall keep
---------------------------------------------------------------------
i also tried setting the SHELL variable in the .procmailrc file to /bin/sh,
but that didn't make any difference either. i've been through the FAQ and
miniFAQ, google et. all. i know that i am missing something. just can't
figure out what it is. the funny thing is that on my office box which is
RedHat 7.1 using similar scripts, it seems to work fine. the only difference
is that at office, the local MDA is sendmail which then invokes procmail,
while at home, procmail is directly invoked with the -d option from
fetchmail. could this be an issue with the fetchmail permissions ? what
should these be, i couldn't seem to find out anything about this.
Thank You,
Regards,
mario
--
The opinions expressed in this mail are mine and may not reflect
those of my employer
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail