5 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Bounce / Return-Path
FromSent OnAttachments
Jean-Christophe BoggioMay 23, 2007 4:14 pm 
EsaMay 23, 2007 4:28 pm 
cour...@thefreecat.orgMay 23, 2007 7:32 pm 
Sam VarshavchikMay 23, 2007 8:24 pm 
cour...@thefreecat.orgMay 24, 2007 3:48 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Bounce / Return-PathActions...
From:cour...@thefreecat.org (cour@thefreecat.org)
Date:May 24, 2007 3:48:50 am
List:net.sourceforge.lists.courier-users

Sam Varshavchik a écrit :

Use the -f parameter to set the envelope return address.

It works perfectly, thanks.

Verbose mode for those who would encounter the same problem :

#!/usr/bin/perl -w

use MIME::Lite;

my $body = MIME::Lite -> new ( Type => "multipart/related", From => 'testname <test@toto.com>', to => 'Me <cat@my.local.domain>', Subject => "Test subject" );

$body -> attach(Type => 'text/html', Data => '<html><head></head><body><img
src="cid:1.jpg" /></body></html>'); $body -> attach(Path => 'test.jpg', Type => 'image/jpg', Id => '1.jpg'); $body -> send("sendmail","/usr/sbin/sendmail -f bounce_to_me\@mydomain");