From a91a23912dec234a9e2c9f6f71c28b6197eb4535 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 1 Feb 2002 22:12:45 +0000 Subject: Use smtpaddress to specify the return path on warning mail. svn path=/trunk/; revision=3573 --- sink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sink.c') 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 */ { -- cgit v1.2.3