The current version of Net::SMTP doesn't make any attempt to determine the hostname of the current computer (not that I blame Graham for that), so that all e-mails are sent out as from "localhost.localdomain" unless an explicit Hello string is provided.

This trivial patch is probably wrapped... :(


Index: plugins/queue/smtp-forward
===================================================================
--- plugins/queue/smtp-forward (revision 464)
+++ plugins/queue/smtp-forward (working copy)
@@ -51,6 +51,7 @@
$self->{_smtp_server},
Port => $self->{_smtp_port},
Timeout => 60,
+ Hello => $self->qp->config("me"),
) || die $!;
$smtp->mail( $transaction->sender->address || "" ) or return(DECLINED, "Unable to queue message ($!)");
for ($transaction->recipients) {



John

Reply via email to