RFC: new module Net::SMTP::PostfixExt



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.
....
.



Relevant Pages

  • Re: About File "types" and Office 12.1 Service Pack and double-clicking
    ... I'm sharing my observations not as an MVP but as someone who does technical support for a living. ... which means they don't want others taking advantage of that file type and allowing a malicious file to launch Word. ... Allow me to save/edit/open a word document with no extension, ... Although Apple deprecated file type and creator codes some time ago, they still haven't removed support for them. ...
    (microsoft.public.mac.office.word)
  • RE: Compiler Error Message: BC30807: Let and Set assignment st
    ... question and didn't even noticed she used .aspx extension. ... As you mentioned that this is a classic ASP page, why did you use aspx as ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Excel ExportAsFixedFormat
    ... Thanks for your suggestion, this was indeed the only way that I could ... it would make more sense if it didn't add the extension in the first place. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: .eps files in image libraries
    ... The main problem here is due to the MIME setting in IIS. ... Clicked on New type and entered .eps as the Associated extension. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Vista UAC problem with WScript.Shell Run method
    ... If I invoke the "runas" verb, even from a VBS, without writing a ... This will bring up the UAC elevation confirmation box and run ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.scripting.wsh)