From: Sunil S. <sh...@bo...> - 2005-11-09 14:26:47
|
Hi, smtp servers (on all non-server machines) listen on the loopback interface (i.e. 127.0.0.1) only. However, fetchmail release 6.2.9-rc7, by default, attempts to connect to the IP address obtained from gethostname(), which typically points to the external interface. Thus, fetchmail is no longer able to deliver mails by default! The problem is that fetchmailhost is overloaded to contain the domainname to be used for HELO/EHLO and for rcpt address and also to contain the default SMTP host. Previously, it was localhost, but after changes in r4382, it became the actual hostname. For smtp servers listening on localhost only, mail delivery consequently fails. This patch should fix this broken behaviour. ============================================================================== Index: fetchmail/fetchmail.c =================================================================== --- fetchmail/fetchmail.c (revision 4393) +++ fetchmail/fetchmail.c (working copy) @@ -1156,7 +1156,7 @@ * Make sure we have a nonempty host list to forward to. */ if (!ctl->smtphunt) - save_str(&ctl->smtphunt, fetchmailhost, FALSE); + save_str(&ctl->smtphunt, "localhost", FALSE); /* * Make sure we have a nonempty list of domains to fetch from. ============================================================================== -- Sunil Shetye. |