#710: Change $smtp_host to $local_host for HELO and cache $local_host. Thanks yoorick.