Hello,

I'm developing an different purpose application based on Amavisd-New
with Amavisd::Custom and my own modules. But, I would like to change
the "delivery_method" on the fly, and I'm having some trouble with
Taint Mode:

i.e:

sub before_send {
    my ( $self, $conn, $msginfo ) = @_;

    (...)

    #
    # Delivering message for sender server...
    #

    my $ip_addr_received_hdr = parse_ip_address_from_received( $msginfo, 1 )
        or do_log( $cll, "CUSTOM: Cannot get IP from Received header" );

    do_log( $cll, "CUSTOM: Sending message for: %s", $ip_addr_received_hdr )
        if ($ip_addr_received_hdr);

    $msginfo->delivery_method(
        $ip_addr_received_hdr
        ? "smtp:[$ip_addr_received_hdr]:25"
        : c('notify_method')
    );
}

And in connection I've got:

    451 4.5.0 id=19521-01 - Temporary MTA failure on relaying, From
MTA([189.100.95.22]:25) during fwd-connect (Insecure dependency in
connect while running with -T switch at
/usr/local/lib/perl5/5.8.9/mach/IO/Socket.pm line 114, <GEN21> line
44.): id=19521-01 221 2.0.0 [127.0.0.1] amavisd-new closing
transmission channel Connection closed by foreign host.

Feb  4 20:42:58 bsd amavis[19521]: (19521-01) mail_via_smtp: session
failed: Insecure dependency in connect while running with -T switch at
/usr/local/lib/perl5/5.8.9/mach/IO/Socket.pm line 114, <GEN21> line
44.

Any ideas?

thank you indeed,

-- 
Otávio Fernandes <otaviof at gmail.com>
http://blog.emresumo.com

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to