Dans le fichier program/include/rcube_smtp.inc remplacé la ligne 75 ( $helo_host = !empty($_SERVER['server_name']) ? $_SERVER['server_name'] : 'localhost';) par ca :

if (!empty($CONFIG['helo_host'])) {
 $helo_host = $CONFIG'helo_host;
}
elseif (!empty($_SERVER['server_name'])){
 $helo_host = $_SERVER['server_name'];
}
else {
 $helo_host = 'localhost';
}

Après rajoutez dans le fichier main.inc.php :
$CONFIG['helo_host'] = 'myhostname';
et le tour est joué ;) .

Edit : une autre solution plus simple consiste à remplacer $_SERVER['server_name'] par $_SERVER['SERVER_NAME'] évidament c'est plus simple mais c'est moins marrant .