Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Bounce Emails

Quote Reply
Bounce Emails
Hello....

I have a small problem and need to get this fixed. If a users email box is full or they have reached there set limit of space the email is set to bounce back to the user. Here is part of the code.

I'm afraid I wasn't able to deliver your message
to '<%envelope_to%>'.

The problem is this, <%envelope_to%> is being replaced with my catchall email address and not the actual email address to that user. How would I go about to change this to the users email address and not the catchall accounts email address.

Thanks for any help with this...

Mike
Quote Reply
Re: [pcmike] Bounce Emails In reply to
This code has been improved in 3.0, but in gmail 2.x, you'll have to edit batch/outgoing.pl. Around line 192, you'll see:
Code:
$opts{envelope_to} = $head->get('X-GMail-To') || $head->get('X-Envelope-To') || $head->get('Delivered-To') || $head->get('To');
Depending on how your mail server sets things up, you'll probably need to change it to:
Code:
$opts{envelope_to} = $head->get('X-GMail-To') || $head->get('To');

Adrian
Quote Reply
Re: [pcmike] Bounce Emails In reply to
Thanks,

Worked like a charm....

Mike
Quote Reply
Re: [brewt] Bounce Emails In reply to
Hi,

Not similar but something related to bounce message. Would this fix the situation as reported here:

http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=280377

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================