1
#!/usr/local/bin/perl -I../lib
2
# $Id: protocol-dump-compat.pl,v 1.2 2004/08/02 17:55:56 tvierling Exp $
4
# Similar to protocol_dump.pl, but uses the Sendmail::Milter compatibility
10
use Sendmail::Milter 0.18 qw(:all);
12
# milter name should be the one used in sendmail.mc/sendmail.cf
13
my $miltername = shift @ARGV || die "usage: $0 miltername\n";
16
for my $cb (qw(close connect helo abort envfrom envrcpt header eoh eom)) {
20
print "$$: $cb: @_\n";
25
Sendmail::Milter::auto_setconn($miltername);
26
Sendmail::Milter::register($miltername, \%cbs, SMFI_CURR_ACTS);
27
Sendmail::Milter::main();