diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-11-07 21:16:32 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-11-07 21:16:32 +0000 |
commit | b1b6ddf9079453caa64484f31887cb4273c045bc (patch) | |
tree | 1b373f96732a206faa0017de5dc82532f46a08cc /fetchmail.c | |
parent | ad27c0a72aac927955335303e6cfab5f3ee58ad0 (diff) | |
download | fetchmail-b1b6ddf9079453caa64484f31887cb4273c045bc.tar.gz fetchmail-b1b6ddf9079453caa64484f31887cb4273c045bc.tar.bz2 fetchmail-b1b6ddf9079453caa64484f31887cb4273c045bc.zip |
Added LMTP support.
svn path=/trunk/; revision=2177
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c index ef40f0b9..be0818b9 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -766,6 +766,7 @@ static void optmerge(struct query *h2, struct query *h1, int force) FLAG_MERGE(password); FLAG_MERGE(mda); FLAG_MERGE(bsmtp); + FLAG_MERGE(listener); FLAG_MERGE(smtpaddress); FLAG_MERGE(preconnect); FLAG_MERGE(postconnect); @@ -807,6 +808,7 @@ static int load_params(int argc, char **argv, int optind) def_opts.warnings = WARNING_INTERVAL; def_opts.remotename = user; def_opts.expunge = 1; + def_opts.listener = SMTP_MODE; /* this builds the host list */ if (prc_parse_file(rcfile, !versioninfo) != 0) @@ -1019,6 +1021,13 @@ static int load_params(int argc, char **argv, int optind) ctl->server.pollname); exit(PS_SYNTAX); } + if (ctl->server.port == 25 && ctl->listener == LMTP_MODE) + { + (void) fprintf(stderr, + "%s configuration invalid, LMTP can't use SMTP port", + ctl->server.pollname); + exit(PS_SYNTAX); + } #endif /* !INET6 */ } } @@ -1369,7 +1378,7 @@ void dump_params (struct runctl *runp, struct query *querylist, flag implicit) { struct idlist *idp; - printf(" Messages will be SMTP-forwarded to:"); + printf(" Messages will be %cMTP-forwarded to:", ctl->listener); for (idp = ctl->smtphunt; idp; idp = idp->next) { printf(" %s", idp->id); |