aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sink.c b/sink.c
index cbed595e..0951e9ca 100644
--- a/sink.c
+++ b/sink.c
@@ -1222,7 +1222,8 @@ int open_warning_by_mail(struct query *ctl, struct msgblk *msg)
struct msgblk reply = {NULL, NULL, "FETCHMAIL-DAEMON@", 0};
int status;
- strcat(reply.return_path, fetchmailhost);
+ strcat(reply.return_path, ctl->smtpaddress ? ctl->smtpaddress :
+ fetchmailhost);
if (!MULTIDROP(ctl)) /* send to calling user */
{