Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 1997 10:24:50 +0200
From:      Jacques Hugo <jacques@wired.ctech.ac.za>
To:        questions@FreeBSD.ORG
Subject:   sendmail troubles
Message-ID:  <3455A152.167EB0E7@wired.ctech.ac.za>

next in thread | raw e-mail | index | archive | help
Ok, ok, sorry if this isn't acutally mailed to the
correct group, but I do run sendmail on fbsd ;)

I hope someone can help me with this one.  I'm
sitting here with 'the sendmail and the bat' book
next to me with www.sendmail.org in my terminal,
and all is still lost.

So here we go ... aliases (*sigh*)

This is what I want to do.  When I get mail from
someone to a account on my box called 'sql', I want
that mail to be piped to some software I wrote.
All I am testing now, is that when user 'sql'
gets mail, that mail must be copied to some
other directory and the /var/mail/sql file
must be zero'd.  Esier said that done.
On command line, this works perfectly,
but when I mail user 'sql' ... all hell breaks 
loose =)

This is me setup:
	
	/etc/aliases
		sql:    "| /usr/local/bin/a.out"

That looks ok from where I'm reading and the
util newaliases says everything is cool.

When I mail the user 'sql', I get this error:

----- The following addresses had permanent fatal errors -----
"| /usr/local/bin/a.out"
    (expanded from: sql)

----- Transcript of session follows -----
/usr/local/bin/a.out: permission denied
554 "| /usr/local/bin/a.out"... unknown mailer error 2


Permission denied???  Even if I run /usr/local/bin/a.out
as SUID root, I get the same error.  I've played around
with the permissions on /var/mail/sql, but still no
go.

This is what sendmail.cf looks like if you look at the
'prog' delivery agent:
	
Mlocal,         P=/usr/libexec/mail.local, F=lsDFMAw5:/|@qrmn9, S=10/30,
R=20/40,
                T=DNS/RFC822/X-Unix,
                A=mail $u
Mprog,          P=/bin/sh, F=lsDFMoqeu9, S=10/30, R=20/40, D=$z:/,
                T=X-Unix,
                A=sh -c $u 

Looks fine to me.

Please, please, please.  Does anyone know where I'm screwing up?
My stessball is hurting my hands already! ;)


Thanks for the help

-Jacques

------------------------------------------------------
The box said "Requires Windows 3.1 or better"
			... so I got BSD

System Administrator      | Jacques Hugo
UNIX Systems              | jacques@wired.ctech.ac.za
Cape Technikon            | +27-21-4603584
------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3455A152.167EB0E7>