spf-discuss
[Top] [All Lists]

Re: The New SPF: introducing RFROM

2004-05-22 06:33:04
Le 04-05-21, à 23:09, Meng Weng Wong a écrit :
Furthermore, I'm sure that as things evolve, MTA plugin architectures
will make it trivial for plugins to get access to arbitrary elements
of the SMTP transaction.  So plugins will be able to get all the MAIL
parameters, including RFROM.

It is allready trivial to do in qpsmtpd, the perl smtp daemon for qmail.
http://smtpd.develooper.com/

A plugin only has to register "hooks" for the SMTP commands, including ehlo:
-----
sub register {
  my ($self, $qp) = @_;
  $self->register_hook("ehlo", "ehlo");
}

sub ehlo {
  my ($self, $transaction, $host) = @_;
  $transaction->notes('capabilities');
  my $capabilities = $transaction->notes('capabilities');
  push @{$capabilities}, 'RFROM';
}
-----

Best,
GFK's
--
Guillaume Filion, ing. jr
Logidac Tech., Beaumont, Québec, Canada - http://logidac.com/
PGP Key and more: http://guillaume.filion.org/