Hi all,

Well I want to share this and to see if it is possible to include in next 
amavisd release, 2.6.5???

at amavisd.conf I added this:
use Net::Domain qw(hostname hostfqdn hostdomain);  // Just below use strict;


my $__host = hostfqdn();
my $__domain = hostdomain();

my ($__host2, $__domain2) = split (/\./, $__host, 2);

$mydomain = $__domain2;

This will let amavisd to know its localdomain when hostname is set correctly, 
if dont, only an empty char is returned and no matters.

Regards,

LD

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