diff options
| author | manuel <manuel@mausz.at> | 2013-02-04 02:55:38 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-02-04 02:55:38 +0100 |
| commit | fd404641357a4a3bc0a55cb31deb3d4bad4ec2ee (patch) | |
| tree | 903f803763dc4e9329179102a52a4687ed664cc6 /qmail-showctl.c | |
| parent | ee944357ee374402f20eb1297a0b596f7ef4ea8d (diff) | |
| download | qmail-fd404641357a4a3bc0a55cb31deb3d4bad4ec2ee.tar.gz qmail-fd404641357a4a3bc0a55cb31deb3d4bad4ec2ee.tar.bz2 qmail-fd404641357a4a3bc0a55cb31deb3d4bad4ec2ee.zip | |
[PATCH] badrcptto support
qmail-gentoo-1.03-r16-badrcptto-morebadrcptto-accdias
Diffstat (limited to 'qmail-showctl.c')
| -rw-r--r-- | qmail-showctl.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/qmail-showctl.c b/qmail-showctl.c index bbaa2bc..9d4e1bc 100644 --- a/qmail-showctl.c +++ b/qmail-showctl.c | |||
| @@ -219,6 +219,25 @@ void main() | |||
| 219 | do_lst("badmailfromnorelay","Any MAIL FROM is allowed.",""," MAIL FROM denied if it matches this pattern and RELAYCLIENT is not set."); | 219 | do_lst("badmailfromnorelay","Any MAIL FROM is allowed.",""," MAIL FROM denied if it matches this pattern and RELAYCLIENT is not set."); |
| 220 | do_lst("badmailto","No RCPT TO are specifically denied.",""," RCPT TO denied if it matches this pattern."); | 220 | do_lst("badmailto","No RCPT TO are specifically denied.",""," RCPT TO denied if it matches this pattern."); |
| 221 | do_lst("badmailtonorelay","No RCPT TO are specifically denied.",""," RCPT TO denied if it matches this pattern and RELAYCLIENT is not set."); | 221 | do_lst("badmailtonorelay","No RCPT TO are specifically denied.",""," RCPT TO denied if it matches this pattern and RELAYCLIENT is not set."); |
| 222 | if (do_lst("badrcptto","Any RCPT TO is allowed."," not accepted in RCPT TO ",".")) | ||
| 223 | do_lst("morebadrcptto","No effect."," no accepted in RCPT TO ","."); | ||
| 224 | else | ||
| 225 | do_lst("morebadrcptto","No badrcptto; morebadrcpto is irrelevant.","No badrcptto; doesn't matter that morebadrcptto has ","."); | ||
| 226 | /* XXX: check badrcptto.cdb contents */ | ||
| 227 | substdio_puts(subfdout,"\nmorebadrcptto.cdb: "); | ||
| 228 | if (stat("morebadrcptto",&stmrh) == -1) | ||
| 229 | if (stat("morebadrcptto.cdb",&stmrhcdb) == -1) | ||
| 230 | substdio_puts(subfdout,"(Default.) No effect.\n"); | ||
| 231 | else | ||
| 232 | substdio_puts(subfdout,"Oops! morebadrcptto.cdb exists but morebadrcptto doesn't.\n"); | ||
| 233 | else | ||
| 234 | if (stat("morebadrcptto.cdb",&stmrhcdb) == -1) | ||
| 235 | substdio_puts(subfdout,"Oops! morebadrcptto exists but morebadrcptto.cdb doesn't.\n"); | ||
| 236 | else | ||
| 237 | if (stmrh.st_mtime > stmrhcdb.st_mtime) | ||
| 238 | substdio_puts(subfdout,"Oops! morebadrcptto.cdb is older than morebadrcptto.\n"); | ||
| 239 | else | ||
| 240 | substdio_puts(subfdout,"Modified recently enough; hopefully up to date.\n"); | ||
| 222 | do_str("bouncefrom",0,"MAILER-DAEMON","Bounce user name is "); | 241 | do_str("bouncefrom",0,"MAILER-DAEMON","Bounce user name is "); |
| 223 | do_str("bouncehost",1,"bouncehost","Bounce host name is "); | 242 | do_str("bouncehost",1,"bouncehost","Bounce host name is "); |
| 224 | do_int("concurrencylocal","10","Local concurrency is ",""); | 243 | do_int("concurrencylocal","10","Local concurrency is ",""); |
| @@ -276,6 +295,7 @@ void main() | |||
| 276 | if (str_equal(d->d_name,"badmailfromnorelay")) continue; | 295 | if (str_equal(d->d_name,"badmailfromnorelay")) continue; |
| 277 | if (str_equal(d->d_name,"badmailto")) continue; | 296 | if (str_equal(d->d_name,"badmailto")) continue; |
| 278 | if (str_equal(d->d_name,"badmailtonorelay")) continue; | 297 | if (str_equal(d->d_name,"badmailtonorelay")) continue; |
| 298 | if (str_equal(d->d_name,"badrcptto")) continue; | ||
| 279 | if (str_equal(d->d_name,"bouncefrom")) continue; | 299 | if (str_equal(d->d_name,"bouncefrom")) continue; |
| 280 | if (str_equal(d->d_name,"bouncehost")) continue; | 300 | if (str_equal(d->d_name,"bouncehost")) continue; |
| 281 | if (str_equal(d->d_name,"concurrencylocal")) continue; | 301 | if (str_equal(d->d_name,"concurrencylocal")) continue; |
| @@ -291,6 +311,8 @@ void main() | |||
| 291 | if (str_equal(d->d_name,"localiphost")) continue; | 311 | if (str_equal(d->d_name,"localiphost")) continue; |
| 292 | if (str_equal(d->d_name,"locals")) continue; | 312 | if (str_equal(d->d_name,"locals")) continue; |
| 293 | if (str_equal(d->d_name,"me")) continue; | 313 | if (str_equal(d->d_name,"me")) continue; |
| 314 | if (str_equal(d->d_name,"morebadrcptto")) continue; | ||
| 315 | if (str_equal(d->d_name,"morebadrcptto.cdb")) continue; | ||
| 294 | if (str_equal(d->d_name,"morercpthosts")) continue; | 316 | if (str_equal(d->d_name,"morercpthosts")) continue; |
| 295 | if (str_equal(d->d_name,"morercpthosts.cdb")) continue; | 317 | if (str_equal(d->d_name,"morercpthosts.cdb")) continue; |
| 296 | if (str_equal(d->d_name,"percenthack")) continue; | 318 | if (str_equal(d->d_name,"percenthack")) continue; |
