aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--driver.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 7d805094..96f91d86 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@
fetchmail-4.5.7 (Tue Aug 25 00:29:44 EDT 1998):
* Fixed SDPS support (thanks to Chris Brooks).
+* One more fix for the snakebit postmaster option.
There are 253 people on fetchmail-friends and 272 on fetchmail-announce.
diff --git a/driver.c b/driver.c
index 03ae4933..11537d5b 100644
--- a/driver.c
+++ b/driver.c
@@ -1324,14 +1324,14 @@ int num; /* index of message */
if (!good_addresses)
{
#ifdef HAVE_SNPRINTF
- snprintf(addr, sizeof(addr)-1, "%s@%s", user, destaddr);
+ snprintf(addr, sizeof(addr)-1, "%s@%s", run.postmaster, destaddr);
#else
- sprintf(addr, "%s@%s", user, destaddr);
+ sprintf(addr, "%s@%s", run.postmaster, destaddr);
#endif /* HAVE_SNPRINTF */
if (SMTP_rcpt(ctl->smtp_socket, addr) != SM_OK)
{
- error(0, 0, "can't even send to calling user!");
+ error(0, 0, "can't even send to %s!", run.postmaster);
free(headers);
free_str_list(&xmit_names);
return(PS_SMTP);