On Wed, Nov 24, 1999 at 11:17:11AM -0600, David Smith wrote:
> But I want to be able to mail people off the command line, say
> with '# mail [EMAIL PROTECTED] < file'. I can't
> do this because sendmail isn't set up as a mailserver, and
> I get errors when trying to talk to other mailservers:
>
>
> ----- Transcript of session follows -----
> ... while talking to mail.utexas.edu.:
> >>> MAIL From:<[EMAIL PROTECTED]> SIZE=111
> <<< 501 <[EMAIL PROTECTED]>... Sender domain must exist
> 501 [EMAIL PROTECTED] Data format error
You can't set the envelope sender (MAIL FROM) with binmail. Instead,
you'll need to call sendmail directly with the -f switch.
sendmail -f [EMAIL PROTECTED] [EMAIL PROTECTED] < file
One possibility (danger! don't try this at home kids!) would be
to replace the S11 ruleset with:
#
# envelope sender rewriting
#
S11
R$* $: [EMAIL PROTECTED]
That would hardwire the sender address to your mailbox. (Or, at least I
think it would. I haven't tested it.)
Note -- the sender address is NOT your From: header. That's the part of
the SMTP transaction that tells the remote mailer where to return bounces.
--
Chip Rosenthal <[EMAIL PROTECTED]> http://www.unicom.com/
Protect your mail server against spam. http://mail-abuse.org/
Junk email is theft. There ought to be a law. http://www.cauce.org/
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]