- or download this
#!/usr/bin/perl
use strict;
...
);
$< = $> = getpwnam 'nobody';
$milter->main()
- or download this
$milter->register('mymilter',
{
...
Sendmail::PMilter::SMFI_CURR_ACTS
);
openlog 'mymilter', 'pid', Unix::Syslog::LOG_MAIL();
- or download this
use Unix::Syslog qw(:macros :subs);
sub is_valid_host
...
Sendmail::PMilter::SMFIS_ACCEPT;
}
- or download this
my %cache;
sub is_valid_host
...
}
$cache{$host};
}
- or download this
++$msg_count;
$0 = "[mymilter:$msg_count@" . scalar(localtime) . "] Checking
+ $fqdn ($rcpt_addr)";
- or download this
#!/usr/bin/perl
use strict;
...
END { closelog }
$milter->main(10,100);