On Sun, 22 Oct 2000 00:19 Cameron Simpson wrote:
>On Tue, Oct 17, 2000 at 11:30:25PM -0400, Anthony E . Greene wrote:
>| On Mon, 16 Oct 2000 18:04 Bryan K. wrote:
>| >I need to send mail to multiple Bcc recipients from a script. But, the
>| >from address needs to be different than the user who is sending it.
>| >Basically this is for a virtual domain, so it needs to send from
>| >[EMAIL PROTECTED] but the From address needs to be
>| >[EMAIL PROTECTED] How can I do this?
>| 
>| Have the script output a fully formatted message, including the
headers,
>| with a blank line between the headers and the body. Pipe the output to
>| sendmail like this:
>| 
>|   scriptname | /usr/sbin/sendmail -oi -t
>| 
>| The "-t" option tells sendmail to read the addresses from the input
data.
>
>Or just put the addrs on the sendmail line:
>
>       scriptname | /usr/sbin/sendmail -oi addr1 addr2 ...
>
>and drop the -t. Depends how you want the mail to look. With -t, the
>addrs come from the headers. Without you can put whatever you like as
>the To: in the headers. The latter is how many UNIX mailers dispatch
>their email, which is why you can have a personal alias and have it
>survive in the To: line (not that I recommend that - that generally is
>meaningless to the recipient and often acquires the target domain
>during reception - generally undesirable).

Actually, he needs the "-t" because the addresses need to be hidden in the
Bcc line. So he needs to have the script output a Bcc header (and To, and
Subject). Putting the addresses on the command line adds them to the "To"
header and exposes them to recipient MUAs.

He also needs to customize the "From:" header, which also means he will
need to use "-t".

Tony
-- 
Anthony E. Greene <[EMAIL PROTECTED]> <http://www.pobox.com/~agreene/>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Chat:  AOL/Yahoo: TonyG05    ICQ: 91183266
Linux. The choice of a GNU Generation. <http://www.linux.org/>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to