aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sink.c b/sink.c
index 31da7dcd..9a80922b 100644
--- a/sink.c
+++ b/sink.c
@@ -293,10 +293,13 @@ static int send_bouncemail(struct query *ctl, struct msgblk *msg,
/* can't just use fetchmailhost here, it might be localhost */
if (fqdn_of_host == NULL)
- fqdn_of_host = host_fqdn();
+ fqdn_of_host = host_fqdn(0); /* can't afford to bail out and
+ lose the NDN here */
strlcat(daemon_name, fqdn_of_host, sizeof(daemon_name));
/* we need only SMTP for this purpose */
+ /* XXX FIXME: hardcoding localhost is nonsense if smtphost can be
+ * configured */
if ((sock = SockOpen("localhost", SMTP_PORT, NULL)) == -1)
return(FALSE);