3 messages in net.sourceforge.lists.courier-usersRe: [courier-users] inserting a new h...
FromSent OnAttachments
RaphMay 26, 2005 5:56 am 
Sam VarshavchikMay 26, 2005 6:14 am 
Jason DixonMay 26, 2005 6:18 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] inserting a new header into relayed mailsActions...
From:Jason Dixon (jas@dixongroup.net)
Date:May 26, 2005 6:18:11 am
List:net.sourceforge.lists.courier-users

On May 26, 2005, at 8:54 AM, Raph wrote:

Hi,   I need to add a parameter into the headers into mails relayed by my Postfix SMTP server.   X-SERVICEID : xxxxxxxx    Does anyone know the way to do this?

This really belongs on a Postfix list, not Courier. That said, you can find hints in the amavisd source code:

eval {$entity = MIME::Entity->build( Type => 'text/plain', Encoding => '-SUGGEST', Charset => $bdy_encoding, (defined $notify_xmailer_header && $notify_xmailer_header eq '' ? () # leave the MIME::Entity default : ('X-Mailer' => $notify_xmailer_header) ), # X-Mailer hdr or undef Data => $m_body); 1} or do {chomp($@); die $@};

To be more precise, MIME::Entity::build().

HTH.