Hello All,
I emailed earlier regarding a problem with Non-standard remote sendmail ports. It turns out that my problem was due to improper server_name detection in program/include/rcube_smtp.inc line 76. I don't know if your CVS file is different than mine. The line is: $helo_host = !empty($_SERVER['server_name']) ? $_SERVER['server_name'] : 'localhost';
My sendmail server disallows localhost for the EHLO command which is
what it would have defaulted to. I guess my provider thought it was a
good security measure, I'm no expert so I can't argue either way.
Anyway, I fixed this by adding:
// use this name instead of the local servername for EHLO command
$rcmail_config['smtp_server_name'] = 'loeppky.ca';
to the main.inc.php file and by replacing line 76 with: $helo_host = !empty($_SERVER['server_name']) ? $_SERVER['server_name'] : $CONFIG['smtp_server_name'];
This of course means that rcmail_config['smtp_server_name'] needs to be defaulted to 'localhost' for normal/default conditions.
I'm sure there is probably a better name than 'smtp_server_name' but I figured you would know better what to name it than I. I'm not even sure if this is the right way to fix the problem, but I figured I would pass it on to you and let you decide what you want to do to handle this in your production code.
Kind Regards, George