* sendmail can't deliver to programs ???
@ 1994-04-28 14:04 Alain Mellan
1994-04-28 15:48 ` Neil Rickert
1994-05-02 20:07 ` Bill Masek
0 siblings, 2 replies; 3+ messages in thread
From: Alain Mellan @ 1994-04-28 14:04 UTC (permalink / raw)
Hi
I'm running DEC OSF/1 1.2 on a couple of AXP workstations. I can't get
the sendmail to deliver to a local user which has a
"| /pipe/to/some/program" in his .forward
The sendmail returns me the following message:
From: Mail Delivery Subsystem <MAILER-DAEMON@soft202>
To: mellan@soft202
Subject: Returned mail: Service unavailable
Date: Thu, 28 Apr 1994 14:42:08 +0200
----- Transcript of session follows -----
While talking to mailhost.acri.fr:
>>> RCPT To:<"|/usr/local/bin/deliver mellan">
<<< 554 <"|/usr/local/bin/deliver mellan">... Cannot mail directly to programs
554 "|/usr/local/bin/deliver mellan"... Service unavailable
----- Unsent message follows -----
Received: by soft202; id AA27121; Thu, 28 Apr 1994 14:42:08 +0200
Date: Thu, 28 Apr 1994 14:42:08 +0200
From: <mellan>
Message-Id: <9404281242.AA27121@soft202>
Apparently-To: "|/usr/local/bin/deliver mellan"
This kind of configuration works pretty well on a Solaris machine.
Is this a bug? a feature? an FAQ? Or maybe I'm doing something wrong?
Oh, yes, I use the "quick" option of the mailsetup, but I don't think
it makes any difference.
I had a look at the source code, and the message "Cannot mail directly to
programs" is sent if a->q_flags is set to QBADADDR: my knowledge stops
here.
Any hints or clues appreciated.
--
-- Alain Mellan - Advanced Computer Research Institute - amellan@acri.fr
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sendmail can't deliver to programs ???
1994-04-28 14:04 sendmail can't deliver to programs ??? Alain Mellan
@ 1994-04-28 15:48 ` Neil Rickert
1994-05-02 20:07 ` Bill Masek
1 sibling, 0 replies; 3+ messages in thread
From: Neil Rickert @ 1994-04-28 15:48 UTC (permalink / raw)
In article <MELLAN.94Apr28160452@syst06.acri.fr> mellan@syst06.acri.fr (Alain Mellan) writes:
>
>
>I'm running DEC OSF/1 1.2 on a couple of AXP workstations. I can't get
>the sendmail to deliver to a local user which has a
>"| /pipe/to/some/program" in his .forward
><<< 554 <"|/usr/local/bin/deliver mellan">... Cannot mail directly to programs
Here is one possibility:
Perhaps your system setup is such that the mail to a user is being
processed locally, with alias or '.forward' expansion, but then is being
sent to your mailhost for final delivery. If this happens, then your
mailhost does not know that the pipe is a '.forward' address, since the
forwarding was done earlier.
The 'OR' option on Sun's sometimes causes this behavior, but rules for
forwarding local mail to a mailhost can also have the same effect if
not done carefully.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: sendmail can't deliver to programs ???
1994-04-28 14:04 sendmail can't deliver to programs ??? Alain Mellan
1994-04-28 15:48 ` Neil Rickert
@ 1994-05-02 20:07 ` Bill Masek
1 sibling, 0 replies; 3+ messages in thread
From: Bill Masek @ 1994-05-02 20:07 UTC (permalink / raw)
In article <MELLAN.94Apr28160452@syst06.acri.fr>, mellan@syst06.acri.fr (Alain Mellan) writes:
|> I'm running DEC OSF/1 1.2 on a couple of AXP workstations. I can't get
|> the sendmail to deliver to a local user which has a
|> "| /pipe/to/some/program" in his .forward
|> <<< 554 <"|/usr/local/bin/deliver mellan">... Cannot mail directly to programs
There is a "sendmail" security hole based on sending mail to a program. You setup
a program in your .forward which creates a setuid shell. Then you send yourself
mail. If sendmail runs the program as root (or daemon) then it creats a setuid
shell owned by root or daemon. Then you can break into the system.
It looks like your sendmail is agressively closing that hole. There may be
a problem with the user name. Your sendmail should be able to fork a process
that is that user to run the pipe. I am not familiar with DEC OSF/1's sendmail,
so I cannot comment on that implementation.
--
bill masek open software foundation
(617) 275-4565 (h) (617) 621-8892 (w)
bill@osf.org uunet!osf.org!bill
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-05-02 20:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-04-28 14:04 sendmail can't deliver to programs ??? Alain Mellan
1994-04-28 15:48 ` Neil Rickert
1994-05-02 20:07 ` Bill Masek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox