diff options
| -rw-r--r-- | qmail-send.9 | 4 | ||||
| -rw-r--r-- | qmail-send.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/qmail-send.9 b/qmail-send.9 index e5be479..3f01376 100644 --- a/qmail-send.9 +++ b/qmail-send.9 | |||
| @@ -117,6 +117,10 @@ notice to | |||
| 117 | (If that bounces, | 117 | (If that bounces, |
| 118 | .B qmail-send | 118 | .B qmail-send |
| 119 | gives up.) | 119 | gives up.) |
| 120 | As a special case, if the first line of | ||
| 121 | .IR doublebounceto | ||
| 122 | is blank (contains a single linefeed), qmail-send will not queue | ||
| 123 | the double-bounce at all. | ||
| 120 | .TP 5 | 124 | .TP 5 |
| 121 | .I envnoathost | 125 | .I envnoathost |
| 122 | Presumed domain name for addresses without @ signs. | 126 | Presumed domain name for addresses without @ signs. |
diff --git a/qmail-send.c b/qmail-send.c index 685b08c..0baed66 100644 --- a/qmail-send.c +++ b/qmail-send.c | |||
| @@ -690,6 +690,8 @@ unsigned long id; | |||
| 690 | } | 690 | } |
| 691 | if (str_equal(sender.s,"#@[]")) | 691 | if (str_equal(sender.s,"#@[]")) |
| 692 | log3("triple bounce: discarding ",fn2.s,"\n"); | 692 | log3("triple bounce: discarding ",fn2.s,"\n"); |
| 693 | else if (!*sender.s && *doublebounceto.s == '@') | ||
| 694 | log3("double bounce: discarding ",fn2.s,"\n"); | ||
| 693 | else | 695 | else |
| 694 | { | 696 | { |
| 695 | if (qmail_open(&qqt) == -1) | 697 | if (qmail_open(&qqt) == -1) |
