[prev in list] [next in list] [prev in thread] [next in thread] 

List:       listar-support
Subject:    [LSupp] Re: Bounce messages are spamming my users!
From:       adi <adi () acme ! com>
Date:       2002-01-14 6:02:06
[Download RAW message or body]


On Mon, Jan 14, 2002 at 12:18:42AM -0500, Philip Mak wrote:
> However, it also causes the following headers:
> 
> Sender: pmak-test-bounce-@lina.aaanime.net-@[]
> Errors-to: pmak-test-bounce-@lina.aaanime.net-@[]
> 
> which are invalid syntax, and actually causes some MTAs to reject the
> message.
> 
> Looking through the source code for ecartis, I see the following in
> modules/send/hooks.c:
> 
> if (LMAPI->get_var("send-as")) {
>   LMAPI->write_file(outfile,"Sender: %s\n", LMAPI->get_string("send-as"));
>   LMAPI->write_file(outfile,"Errors-to: %s\n", LMAPI->get_string("send-as")); 

At the old days, while using qmail for listar, I create 'verp-as'
variable, and made some changes to modules/send/send.c

    sendas = LMAPI->get_var("send-as");
    if (!sendas) sendas = LMAPI->get_var("list-owner");
    if (!sendas) sendas = LMAPI->get_var("listserver-admin");

    if(!LMAPI->send_to_tolist(sendas, LMAPI->get_string("queuefile"), 1, 1,
			      ^^^^^^
                              LMAPI->get_bool("full-bounce"))) {
          return HOOK_RESULT_FAIL;
    }

into something like:

   verpas = LMAPI->get_var("verp-as");
   if (!verpas) verpas = sendas;
   ... blah

With this approach, I can use the old variables without 'breaking'
too much. YMMV ;-)

Regards,

P.Y. Adi Prasaja

--
Listar Support (http://www.listar.org/archives/listar-support)
To unsubscribe:
  <mailto:listar-support-request@listar.org?Subject=unsubscribe>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic