RFC: new module Net::SMTP::PostfixExt
- From: Christian Winter <thepoet_nospam@xxxxxxxx>
- Date: Wed, 20 Feb 2008 21:49:23 +0100
Hi,
I'm working on a module that adds support for some Postfix
mailserver specific extensions to the smtp protocol and would
like to hear any suggestions about the namespace.
NAME
Net::SMTP::PostfixExt - XFORWARD and XCLIENT support for Net::SMTP
SYNOPSIS
use Net::SMTP::PostfixExt;
my $smtpx = Net::SMTP::PostfixExt->new(
'XFORWARD', 'upstream.smtp.host'
);
die "Server does not support XFORWARD!"
unless( $smtpx->XFORWARD_ok());
$smtpx->XFORWARD(
NAME => "other.client.host",
HELO => "helo.from.client",
SOURCE => "local"
);
my $smtpx2 = Net::SMTP::PostfixExt->new(
'XCLIENT', 'other.upstream.host'
);
die "Server does not support XCLIENT!"
unless( $smtpx->XFORWARD_ok() );
$smtpx2->XCLIENT( HELO => "i.am.another.client" );
DESCRIPTION
The XCLIENT and XFORWARD protocols are extensions to the
standard SMTP verbs to allow filtering proxies or mail-
retrieval clients (fetchmail-style) to pass on original
client information to an upstream MTA. This is done by
using the XCLIENT or XFORWARD verb together with a number
of paramters:
NAME [CF] Overrides the client name from name resolution
ADDR [CF] Overrides the client IP address from the connection info
PROTO [CF] Set SMTP/ESMTP protocol independent of prior HELO/EHLO
HELO [CF] Set the value for the HELO/EHLO verb
SOURCE [F] Whether the message was submitted locally or via the net
C Verb supported by the XCLIENT extension
F Verb supported by the XFORWARD extension
USAGE
Constructor
new ( $XPROTO, $smtphost[, param => value[, ...]])
The first argument to the constructor is the Postfix extension to
be used, either 'XCLIENT' or 'XFORWARD'.
All other arguments are simply passed through to the Net::SMTP
class. It takes the SMTP host to connect to as a first paramter.
Subsequent paramters are key => value pares. See the documentation
for Net::SMTP for details.
....
.
- Prev by Date: RFC: new module SQL::QueryQueue
- Next by Date: Re: RFC: new module SQL::QueryQueue
- Previous by thread: RFC: new module SQL::QueryQueue
- Next by thread: Building module Encode::Detect on solaris 10 platform
- Index(es):
Relevant Pages
|
|