peceka, > i've got a problem releasing message using tcp socket. > on machine amavis1 i've got amavis. > From my development machine i do: telnet amavis1 9998 > request=release > mail_id=4YK18SgAEKEG > secret_id=CM0xNNj-SvYj > quar_type=Q > recipient=<[EMAIL PROTECTED]> > and now i must wait long time (about 1 minut) and then got this error: > setreply=450 4.4.1 > Can't%20connect%20to%20192.168.1.208%20port%2010025,%20Net::SMTP:%20connect >:%20Invalid%20argument%20(Invalid%20argument)%20at%20(eval%2065)%20line%2014 >5,%20<GEN17>%20line%2012.,%20MTA([192.168.1.208]:10025),%20id=rel-4YK18SgAEK >EG
The 'Invalid argument' is unfortunately a misrepresentation of the true reason (sloppy error handling in underlying Perl modules), but in this case it should be interpreted as 'can't connect', most likely due to a timeout if it takes exactly one minute. > Why amavis tries to connect to 10025 to host from it get connection to > its port 9998 to connect to MX? > I have on amavis1 working potfix, why amavis doesn't use it? can i > somehow tell amavis to use it? Defaults are: $forward_method = 'smtp:[127.0.0.1]:10025'; $notify_method = 'smtp:[127.0.0.1]:10025'; $release_method = undef; # falls back to $notify_method $resend_method = undef; # falls back to $forward_method If you are saying that 192.168.1.208 is the host from which you initiated a telnet session, you are probably using a wildcard in the host field of $notify_method (or $release_method). >From amavisd.conf-sample: # To make it possible for several hosts to share one content checking daemon, # the IP address and/or the port number in $forward_method and $notify_method # may be spacified as an asterisk. An asterisk in the colon-separated # second field (host) will be replaced by the SMTP client peer address, # An asterisk in the third field (tcp port) will be replaced by the incoming # SMTP/LMTP session port number plus one. This obsoletes the previously used # less flexible configuration parameter $relayhost_is_client. An example: # $forward_method = 'smtp:*:*'; $notify_method = 'smtp:*:10587'; So probably you want to explicity state the IP address in the $notify_method (and/or in the $release_method, which is used for releasing in later versions of amavisd-new). Mark ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
