lpr notifications thru postfix

2010-05-08 Thread Jamal Mubarak
I have postfix installed and configured on my Mac OS 10.6.3 machines. It works correctly because the unix mail program works fine and sendmail interface can send emails as well. However, I encounter this strange problem. The printing commands, lpr and lp, have the -m switch which sends an e-m

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 12:18 PM, Reinaldo de Carvalho wrote: > On Sat, May 8, 2010 at 7:51 PM, Jamal Mubarak wrote: >> I have postfix installed and configured on my Mac OS 10.6.3 machines. It >> works correctly because the unix mail program works fine and sendmail >> interfa

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 5:56 PM, Wietse Venema wrote: > This involves getting a trace of system calls (arguments and results) > when the error happens. > > Some systems capture a system call trace with commands like: > >ktrace -f /file/name -d command >strace -o /file/name -f command >tr

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 6:46 PM, Wietse Venema wrote: > The problem does not happen in the Sendmail process that you run, > but in a CHILD process of that Sendmail process. > > Therefore, you need to specify an option to trace CHILD processes. > > The examples above use "-d" or "-f" to achieve tha

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 7:35 PM, Wietse Venema wrote: > execve() fails with error number 1. You can look that number up in > /usr/include/sys/errno.h (or whatever the pathname is on MacOS). > But, MacOS is a descendant of FreeBSD, and on my machine: > > #define EPERM 1 /* Oper

Re: lpr notifications thru postfix

2010-05-09 Thread Jamal Mubarak
On May 9, 2010, at 8:31 PM, Reinaldo de Carvalho wrote: > On Sun, May 9, 2010 at 7:19 PM, Jamal Mubarak wrote: >> >> >> Show permissions of /usr/sbin/postdrop and /usr/sbin/sendmail. lpr/lp >> process owner have rights to exec this commands? >> >> Her

Re: lpr notifications thru postfix

2010-05-10 Thread Jamal Mubarak
On May 10, 2010, at 8:25 AM, Reinaldo de Carvalho wrote: > On Sun, May 9, 2010 at 11:24 PM, Jamal Mubarak wrote: >>> >>> 'owner process' isn't 'owner of lp* files', you need look owner pf >>> cups process with 'ps' command. &g