Ok, 'expanding' is the concept of a mailing list where it takes the
address someone sent to, and sends it to all the recipients - this is
not what you need. You simply need to send the message to all of the
recipients you want. You also need to use your own email address to
send from - I somehow doubt that either postmaster@??? or
root@??? are your email addresses. You should always use
fully-qualified addresses in your case (eg, always specify the full
domain with any email address you are sending from or to) since exim
isn't going to have any real 'local domains' to work with.
Aha. I see one problem. You used the quotes '' instead of the quotes ``
in the following line of my script:
Your have:
> for x in 'cat /etc/exim/lists/free'; do
It should be:
> for x in `cat /etc/exim/lists/free`; do
The backtick has a special meaning to the bash shell - it tells it to
run the command contained therein, and replace it with whatever output
it makes. Make sure that that list contains only the functional-part of
email addresses, and no "real name" or "comment" parts.. Eg, it should
be:
<fo@???>
<mrbar@???>
<somedude@???>
and *NOT*:
"Frank Oz" <fo@???>
"Mr. Bar" <mrbar@???>
"Some Crazy Dude" <somedude@???>
On Tue, 22 Aug 2000, davidturetsky wrote:
> Well I tried the script, but it seems to hang in the spool because of some
> 'temporary error.' Well, here is the results of exim -bp [I edited out
> further attempts
> which generated similar output]
>
> 4h 573 13R1ja-0000DM-00 <>
> postmaster@???
>
> 4h 721 13R1kK-0000Da-00 <>
> root@???
>
>
> This is the exim main log:
>
> 2000-08-21 22:53:00 Start queue run: pid=187
> 2000-08-21 22:53:01 13R1kK-0000Da-00 == root@??? routing defer
> (-32): retry time not reached
> 2000-08-21 22:53:01 13R1ja-0000DM-00 == postmaster@??? routing
> defer (-32): retry time not reached
> 2000-08-21 22:53:01 End queue run: pid=187
> 2000-08-21 22:55:07 Start queue run: pid=205
> 2000-08-21 22:56:27 13R1ja-0000DM-00 == postmaster@??? R=smarthost
> defer (-1):
> 2000-08-21 23:08:00 Start queue run: pid=231
> 2000-08-21 23:08:00 13R1ja-0000DM-00 == postmaster@??? routing
> defer (-32): retry time not reached
> 2000-08-21 23:08:00 13R1kK-0000Da-00 == root@??? routing defer
> (-32): retry time not reached
> 2000-08-21 23:08:00 End queue run: pid=231
>
> Judging from the messages on the spool, the list is not expanding. Here is
> the body and
> header:
>
> 13R1ja-0000DM-00-H
> mail 8 8
> <>
> 966903366 0
> -ident mail
> -received_protocol local
> -body_linecount 5
> -localerror
> XX
> 1
> postmaster@???
>
> 119P Received: from mail by debian with local (Exim 2.05 #1 (Debian))
> id 13R1ja-0000DM-00; Mon, 21 Aug 2000 19:16:06 -0500
> 057F From: Mail Delivery System <Mailer-Daemon@???>
> 029T To: postmaster@???
> 037 Subject: Error in batched SMTP input
> 039I Message-Id: <E13R1ja-0000DM-00@debian>
> 038 Date: Mon, 21 Aug 2000 19:16:06 -0500
>
> Header:
>
> 13R1ja-0000DM-00-D
> While reading a batch of messages using the -bS option, the
> following error was detected:
>
> RCPT TO: cat /etc/exim/lists/free
> 501 missing or malformed local part (expected word or "<")
>
> The message that contained the error was skipped.
>
> This is the top part of the script:
>
> #!bin/bash
>
> (
> echo "HELO davidturetsky"
> echo "MAIL FROM: <davidturetsky@???>"
> for x in 'cat /etc/exim/lists/free'; do
> echo "RCPT TO: $x"
> done
> echo "DATA"
> echo "From: <chiefsob@???>"
> echo "Bcc:"
> echo "Subject: script test-richsob.com: 21Aug2000"
> echo ""
>
> David
>
> > ----- Original Message -----
> > From: "Dave C." <djc@???>
> > Sent: Monday, August 21, 2000 1:14 PM
> > Subject: Re: [Exim] Mailing lists
>
> > >
> > > I think the problem here is that David is trying to use exim as an MUA .
> . .
>
> > > It sounds more like you simply want to be able to send a message to
> > > some list of addresses. A fairly short script could be written which
> > > did that . . .
> > >
>
>
>
>
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
--