Re: [Exim] sendmail -U equivalent?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Dave C.
Ημερομηνία:  
Προς: Bob Billson
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] sendmail -U equivalent?
On Mon, 8 May 2000, Bob Billson wrote:

> G'day all... I have a few perl scripts on my system originally written for
> sendmail. I'm trying to tweak them for exim. I'm stuck on sendmail's -U
> command line option. There doesn't seem to be a documented direct equivalent
> in exim.
>
> According to sendmail's man page, -U means: "Initial (user) submission. This
> should always be set when called from a user agent such as Mail or exmh and
> never be set when called by a network delivery agent such as rmail."
>
> The scripts I'm tweaking, have code along the lines of:
>
>   ( echo "To: $NOTIFY_ADMIN"; \
>     echo "From: foo@bar"; \
>     echo "Subject: something"; \
>     echo ""; \
>     echo "some output from somewhere"; \
>   ) | $SENDMAIL -U $NOTIFY_ADMIN

>
> It appears I should be able to replace the last line above with:
>
> ) | $SENDMAIL -t
>
> Where $SENDMAIL points to exim. Is there some reason this will break
> something? Thanks for help.


I have no idea what -U accomplishes, but personally, I'd replace that
entire this with an smtp session like the following:


   (
     echo "HELO localhost"; \
     echo "MAIL FROM: <foo@bar>"; \
     echo "RCPT TO: <$NOTIFY_ADMIN>"; \
     echo "DATA"; \
     echo "To: $NOTIFY_ADMIN"; \
     echo "From: <foo@bar>;" \
     echo "Subject: something"; \
     echo ""; \
     echo "some output from somewhere"; \
   ) | exim -bs


>
>               bob

>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>


--