Ben Rosengart:
> On Thu, May 17, 2012 at 02:31:19PM -0400, Wietse Venema wrote:
> >
> > I installed Sendmail::PMilter and it works out of the box (I used
> > TCP instead of UNIX-domain because I didn't want to mess with chroot
> > configuration).
>
> Do you think it makes a difference that I am running this as an
> smtpd_milter and you as a non_smtpd_milter?
I use milters all the time to add headers on SMTP mail, like many
thousands of other sites.
Wietse
Script code
same script as before
Postfix configuration
non_smtpd_milters = inet:127.0.0.1:9999
smtpd_milters = inet:127.0.0.1:9999
Commands 1
% perl *pl
addheader 'X-MS-Floodstopper', 'hi!'
Commands 2
% telnet 127.0.0.1 smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 laptop.example.com ESMTP Postfix
mail from:<wietse>
250 2.1.0 Ok
rcpt to:<wietse@localhost>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
asdad
.
250 2.0.0 Ok: queued as D4E4220D6C6A
Mailbox:
From [email protected] Thu May 17 14:43:56 2012
Return-Path: <[email protected]>
X-Original-To: wietse@localhost
Delivered-To: [email protected]
Received: from localhost (localhost [127.0.0.1])
by laptop.example.com (Postfix) with SMTP id D4E4220D6C6A
for <wietse@localhost>; Thu, 17 May 2012 14:43:44 -0400 (EDT)
Message-Id: <[email protected]>
Date: Thu, 17 May 2012 14:43:44 -0400 (EDT)
From: [email protected]
X-MS-Floodstopper: hi!
asdad