From a4c3040559e99af016af82c97a3b7598a7a19e5a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 20 Jul 1998 06:19:22 +0000 Subject: Added postmaster option. svn path=/trunk/; revision=1986 --- fetchmail.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index b91e4765..41a34567 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -987,6 +987,16 @@ static int load_params(int argc, char **argv, int optind) initialize_saved_lists(querylist, run.idfile); #endif /* POP3_ENABLE */ + /* + * If the user didn't set a last-resort user to get misaddressed + * multidrop mail, set an appropriate default here. + */ + if (!run.postmaster) + if (getuid()) /* ordinary user */ + run.postmaster = user; + else /* root */ + run.postmaster = "postmaster"; + return(implicitmode); } @@ -1146,6 +1156,9 @@ void dump_params (struct runctl *runp, struct query *querylist, flag implicit) #endif if (runp->invisible) printf("Fetchmail will masquerade and will not generate Received\n"); + if (runp->postmaster) + printf("Fetchmail will forward misaddressed multidrop messages to %s.", + runp->postmaster); for (ctl = querylist; ctl; ctl = ctl->next) { -- cgit v1.2.3