On Sat, 3 Nov 2001, Paul M Foster wrote:
> I have a situation where, in order for sendmail to connect to my ISP's
> smarthost, I have to connect to the pop server first (don't ask). I'd
> like to put together a script that does:
>
> fetchmail -c
> sendmail ...
>
> I would be piping the mail into the script. I need a way to get the
> sendmail part of the script to suck up the stuff that's on the pipe, but
> I don't know how to make the script do this. Anyone know?
Something like this might work:
#!/bin/sh -e
fetchmail -c
cat | sendmail $*
exit 0
Paul Braman
aeon@tampabay.rr.com
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:42:39 EDT