[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Looking for a command-line mailer for a jail
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: Looking for a command-line mailer for a jail
- From: Tillman Hodgson <tillman_(_at_)_hodgsonhouse_(_dot_)_com>
- Date: Wed, 11 Apr 2001 18:00:38 -0600
On Thu, Apr 12, 2001 at 01:54:49AM +0300, Heikki Korpela wrote:
> http://www.engelschall.com/sw/smtpclient/
>
> I actually did and tried it this time, works fine for me.
Aha! That's exactly the sort of C program that I was looking for.
And now I'm running into a strange problem with it <g>. When I do this from a
regular shell (not that all lien breaks marked by \ are my own to aid in email
readability):
(/chroot/cvs/bin/id; /chroot/cvs/bin/echo ""; /chroot/cvs/bin/cat) | \
/chroot/cvs/bin/smtpclient -s "CVS commit notification" \
-f cvs_(_at_)_cvs_(_dot_)_losurs_(_dot_)_org tillman_(_at_)_hodgsonhouse_(_dot_)_com
it works. Yet when it's run in cvs' "loginfo" file (which is chrooted to
/chroot/cvs, thus the paths change):
# tail -1 loginfo
ALL (/bin/id; /bin/echo %{sVv}; /bin/cat) | /bin/smtpclient \
-s "CVS commit notification" -f cvs_(_at_)_cvs_(_dot_)_losurs_(_dot_)_org tillman_(_at_)_hodgsonhouse_(_dot_)_com
When I test a commit, I get a "broken pipe" error:
Checking in TESTING;
/LOSURS/website/TESTING,v <-- TESTING
new revision: 1.11; previous revision: 1.10
done
cvs [server aborted]: received broken pipe signal
Could not execute CVS command!
Which seems very odd. Here's what I have in the chrooted environment:
# lsl /chroot/cvs/bin/
total 1352
-r-xr-xr-x 1 root wheel 53248 Apr 11 17:42 cat*
-rwxr-xr-x 1 root wheel 499712 Mar 30 20:56 cvs*
-r-xr-xr-x 1 root wheel 24576 Apr 11 16:59 echo*
-r-xr-xr-x 1 root wheel 12288 Apr 11 17:42 id*
-r-xr-xr-x 1 root wheel 24576 Apr 11 16:54 nc*
-rwxr-xr-x 1 root wheel 67303 Apr 11 17:21 smtpclient*
# ldd /chroot/cvs/bin/smtpclient /chroot/cvs/bin/id /chroot/cvs/bin/cvs
/chroot/cvs/bin/smtpclient:
-lc.25 => /usr/lib/libc.so.25.2 (0x4001d000)
/chroot/cvs/bin/id:
-lc.25 => /usr/lib/libc.so.25.2 (0x4001b000)
/chroot/cvs/bin/cvs:
-lz.1 => /usr/lib/libz.so.1.3 (0x40091000)
-lkrb.9 => /usr/lib/libkrb.so.9.0 (0x4009d000)
-ldes.6 => /usr/lib/libdes.so.6.0 (0x400b6000)
-lc.25 => /usr/lib/libc.so.25.2 (0x400c0000)
# lsl /chroot/cvs/usr/lib
lrwxr-xr-x 1 root wheel 7 Mar 30 20:56 /chroot/cvs/usr/lib@ -> ../lib/
# lsl /chroot/cvs/lib
total 1648
drwxr-xr-x 2 root wheel 512 Apr 11 17:06 ./
drwxr-xr-x 10 root wheel 512 Apr 11 16:46 ../
-r-xr-xr-x 1 root wheel 61440 Mar 30 23:42 ld.so*
-r--r--r-- 1 root wheel 576146 Mar 30 20:57 libc.so.25.2
-r--r--r-- 1 root wheel 42411 Mar 30 20:57 libdes.so.6.0
-r--r--r-- 1 root wheel 95315 Mar 30 20:57 libkrb.so.9.0
-r--r--r-- 1 root wheel 50998 Mar 30 20:57 libz.so.1.3
Any help is appreciated.
-T
--
A man said unto the Universe, "Sir, I exist!"
"That," replied the Universe, "...does not instill in me a sense of obligation."
Visit your host, monkey.org