[Top] [All Lists]

permission problems

2007-01-11 22:03:33
I'm having difficulty getting sendmail 8.13.8 to pass messages 3.22-11 
on a Debian Sarge box, for a user ID that isn't root.

As far as I can tell, I have a simple permissions problem, but the devil 
is in the details, namely in determining what user ID that procmail is 

In my sendmail aliases I have:

   cyg-admin:  "| /usr/bin/procmail -m ~cyg-admin/.procmailrc"

When I send mail to this address, the logs show:

Jan 12 04:06:11 teahut sm-mta[28408]: l0C461dX028405: to="| /usr/bin/procmail 
-m /home/cyg-admin/.procmailrc", ctladdr=<cyg-admin(_at_)teahut(_dot_)net> 
(8/0), delay=00:00:10, xdelay=00:00:00, mailer=prog, pri=30652, dsn=5.0.0, 
stat=Can't create output

The contents of /home/cyg-admin/.procmailrc are:


Below this are procmail recipes, which, as far as I can tell, are 
working correctly.

Relevant file and directory permissions in /home/cyg-admin are:

drwxrwxr-x 2 cyg-admin cyg-admin 4096 Jan 11 23:40 .procmail
-rw------- 1 cyg-admin cyg-admin  101 Jan 11 23:41 .procmailrc
drwx------ 2 cyg-admin cyg-admin    4096 Jan 11 22:43 Mail

If I 'su' to user cyg-admin, and run

who | procmail -m ~cyg-admin/.procmailrc

I get in  procmail logging:

$ who | procmail -m ~cyg-admin/.procmailrc
procmail: [28538] Fri Jan 12 04:11:12 2007
procmail: Assigning "PMDIR=/home/cyg-admin/.procmail"
procmail: Assigning "LOGFILE=/home/cyg-admin/.procmail/log"
procmail: Opening "/home/cyg-admin/.procmail/log"

(The procmail recipes I'm using merely direct messages to specific 
folders, based on subject line -- when running as cyg-admin, the recipes 
are working the way I want them to).

As noted, as far as I can tell, I have a simple problem of ownerships 
and permissions, but am struggling to find what UID and GID that 
procmail is using.

I know about the id command, and the simple thing to do would be to run 
a script that writes the output of that command to /tmp -- that way, I 
could not only see UID and GID, but see what ids are on the file 
ownership.  However, any script that I try to run from the aliases file 
gets me 'service unavailable' errors:

Jan 12 01:48:51 teahut sm-mta[22902]: l0C1mpkW022899: to="| id > 
/tmp/id.lst", ctladdr=<cyg-admin(_at_)teahut(_dot_)net> (8/0), 
delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30716, dsn=5.0.0, 
stat=Service unavailable

Also, on this machine, cyg-admin is a user that's defined in /etc/passwd.

I should also note that on this machine I do have procmail running in 
another context -- specifically, where inbound mail addressed to an id 
that exists only in the aliases file.  For that, inbound mail is run 
through a couple of recipes to check the output of SpamAssassin 
handling, and then pipe into another application.  Thus, procmail itself 
is fine.

There's something small that I'm missing here -- any idea of what it is?

Thanks in advance.


procmail mailing list   Procmail homepage:

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