aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-03 21:15:15 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-03 21:15:15 +0000
commitcac2c97be776768dd70b213035fb0d6fada87001 (patch)
tree031edacea046940ccbb907411c254a1f210fbb59 /driver.c
parentef940f3b94c04ba2841e5375c5533efa30414c04 (diff)
downloadfetchmail-cac2c97be776768dd70b213035fb0d6fada87001.tar.gz
fetchmail-cac2c97be776768dd70b213035fb0d6fada87001.tar.bz2
fetchmail-cac2c97be776768dd70b213035fb0d6fada87001.zip
Try canonicalizing with the SMTP host.
svn path=/trunk/; revision=1286
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/driver.c b/driver.c
index deef06fa..41528a7e 100644
--- a/driver.c
+++ b/driver.c
@@ -1005,9 +1005,9 @@ int num; /* index of message */
if (idp->val.num == XMIT_ACCEPT)
{
#ifdef HAVE_SNPRINTF
- snprintf(addr, sizeof(addr)-1, "%s@%s", idp->id,fetchmailhost);
+ snprintf(addr, sizeof(addr)-1, "%s@%s", idp->id,ctl->smtphost);
#else
- sprintf(addr, "%s@%s", idp->id, fetchmailhost);
+ sprintf(addr, "%s@%s", idp->id, ctl->smtphost);
#endif /* HAVE_SNPRINTF */
if (SMTP_rcpt(ctl->smtp_socket, addr) == SM_OK)
@@ -1023,9 +1023,9 @@ int num; /* index of message */
if (!good_addresses)
{
#ifdef HAVE_SNPRINTF
- snprintf(addr, sizeof(addr)-1, "%s@%s", idp->id, fetchmailhost);
+ snprintf(addr, sizeof(addr)-1, "%s@%s", idp->id, ctl->smtphost);
#else
- sprintf(addr, "%s@%s", idp->id, fetchmailhost);
+ sprintf(addr, "%s@%s", idp->id, ctl->smtphost);
#endif /* HAVE_SNPRINTF */
if (SMTP_rcpt(ctl->smtp_socket, user) != SM_OK)