On Tue, May 20, 1997 at 05:32:24PM -0500, Philip Guenther wrote:
Why aren't you just using the procmail mailer created via the
line in your .mc file? You *are* creating your sendmail.cf from a .mc
Nope :( Our sendmail.cf is tweaked to the point where everything is
standing on its head... I don't understad 99% of it and don't want to touch
working thing (how I'll repair it?!).
All the more reason to rip it out and start afresh. Stop worrying
about what it currently does and start thinking about what it _should_
do. Of course, I recommend that test it *very* thoroughly before
Alas, it's impossible. System is maintained by more experienced
people than me, sendmail itself is tweaked to do extra logging (grabbing more
money from customers :), its configs are really complicated with several
unusual fatures, etc :(
Anyway, if nothing else you should change the A= directive in the above to
A=procmail -Y -m $h $f $u
The -p is pointless (sendmail always flushes the environment), and the
"-f $g" bit should be replaced with the 'f' flag in the F= directive.
As for the -m, well, check the manpage. This should take care of your
"running as root" problem, if nothing else.
Well... I did that... chowned /etc/procmailrcs/halyava to
user halyava... still it runs as root :(
What OS is this, with what version of procmail?
BSD/OS 2.1, procmail v3.11pre4 1995/10/29
I'm assuming your procmail is setuid root.
What are the permissions on /etc/procmailrcs
drwxr-xr-x 2 root wheel 512 May 16 23:12 /etc/procmailrcs
and its contents?
-rw-r--r-- 1 halyava www 3256 May 21 03:37 halyava
Oh, and what happens if you remove the "U=halyava," directive
from the mailer definition?
Something is going here... after some tinkering with
contents of /etc/procmailrcs/halyava (I'll be damned if I know what
was changed...) it started to work as user halyava, but with group
wheel. Worse, it now says:
procmail: Executing "perl -0777 -pe 's:\n+:|:g;s:[\s|]+$::;' /u/halyava/.bozos"
No -e allowed in setuid scripts.
procmail: Assigning "BOZOS="
Roman V. Isaev Moscow, Russia
Homepage ------------> http://accessnet.ru/lp/rm/index.html
Obscene limericks ---> http://accessnet.ru/lp/rm/eng/elim.html
Firearms in Russia --> http://accessnet.ru/lp/rm/eng/firearms.html