Client can send email out trough ISP directly. I found that ISP smtp reject connection from server because my SME server use system name 'mysmeserver.my-isp.com' that can't resolve by ISP smtp.
Net::SMTP=GLOB(0x8ea2f90)>>> HELO mysmeserver.my-isp.com
Net::SMTP=GLOB(0x8ea2f90)<<< 550 Forged HELO: you are not mysmeserver.my-isp.com
My workaround was change code on /usr/local/sbin/smtp-auth-proxy.pl. For some reason I can't change my server system name, so I change Hello value to 'localhost'.
my $smtp = Net::SMTP->new($smarthost,
Hello => 'localhost',
#Hello => "${system_name}.${domain_name}",
Debug => $debug
);
unless ($smtp)
{
print "451 Upstream SMTP server not available\n";
warn "No SMTP connection to ISP server\n";
exit;
}
Any other idea?
Thank's