Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Email bounce fix for sendmail

Quote Reply
Email bounce fix for sendmail
There has been some discussion in the forums about the fact that Links sends out email as Nobody causing bounces to go to the root account.

CGI-Wrap was one mentioned solution. But I couldn't figure that out. The following appears to solve the problem. It's anything but elegant, so feedback would be appreciated.

In mailer.pm:
1. In the var declaration change the line to read:

use vars qw($VERSION $error $CRLF @ISA @EXPORT $replyto);

2. Add this line right after the Mailer::Version line:
$Mailer::replyto = 'peter@prisonsucks.com'; #added this.

3. On the line before each instance (2) of X-Mailer, add:
print $s "Reply-To: $replyto $CRLF"; #added this

4. Now here is the tricky one, and it might be all you need:
Change each instance (2) in the code of:
-oeq -t ";
to
-oeq -t -f user\@domain.com";

where user@domain.com is the address where bounces should go.

You can not, apparently, set these additional flags in links.cfg as they just get stripped out. At a minimum, I'd love to be able to set the reply to address with a variable, but this at least works....

Thoughts?