On Wed Jan 28, 2009 at 14:45:08 +0100, Julien wrote:

> But this don't work, the next plugins rcpt_ldap gets the old recipient
> (not rewrite) maybe it's not the right variable ? If somebody have an
> idea about the way to do this in qpsmtpd ...

  You can do this rewriting as this:

sub hook_rcpt 
{
    my ($self, $transaction) = (shift, shift);

    $_[0]->user("newuser");
    $_[0]->host("new.host.tld");

    return DECLINED;
}

  This was the solution presented when I raised the topic last time.
 Thread starts here:

    http://www.mail-archive.com/qpsmtpd@perl.org/msg08199.html

  I use very similar code in the spam_gourmet plugin which you can
 study for reference here:

    http://wiki.qpsmtpd.org/plugins:spam:gourmet

Steve
-- 
Managed Anti-Spam Service
http://mail-scanning.com/

Reply via email to