Hello.

I am trying to setup automatic bounce handling for mailing list ,where the
messages are injected to qmail by smtp, one by one - customised messages for
every recipient, with the correct smtp envelope for VERP, and the address
list is extracted from a database before the list is being sent (it's an
announcement list for a product, where users subscribe via the web, not a
kind of list that would work with ezmlm, if I understand it correctly).

I was trying to figure, what is the best way to collect all the addresses
returned to the
[EMAIL PROTECTED], and the first thing that came to me is
putting

| perl -e '$ret_address=$ENV{'LOCAL'};$ret_address=~s/.*-.*-// ;
$ret_address=~s/=/@/; print $ret_address."\n";' >> listname-bounce.log

all in one line.

The only think that worries me with this solution, is what will happen when
two processes will try to write to the file - I don't mind garbling a few
rows, as long as it doesn't affect everything else.

Is there a better/more efficient/more compatible to the future way to do
that?

Thanks.

Alex.




Reply via email to