-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin-counters: Added new "reject message" mode for recipient counting
If $MAXRCPTS_REJECT is set and the recipient count is exceeded, the whole message is rejected rather than just the individual recipients.
- Loading branch information
Showing
4 changed files
with
58 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
------------------------------------------------------------------------------- | ||
Changes in version 1.17 | ||
|
||
- Added support for rejecting whole messages when the recipient count is | ||
exceeded in plugin-counters. | ||
|
||
Development of this version has been sponsored by FutureQuest, Inc. | ||
[email protected] http://www.FutureQuest.net/ | ||
------------------------------------------------------------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,37 @@ RCPT TO:<[email protected]> | |
RCPT TO:<[email protected]> | ||
RCPT TO:<[email protected]> | ||
RCPT TO:<[email protected]> | ||
DATA | ||
. | ||
EOF | ||
|
||
MAXRCPTS_REJECT=1 | ||
export MAXRCPTS_REJECT | ||
|
||
sfecho <<EOF | ||
MAIL FROM:<[email protected]> | ||
RCPT TO:<[email protected]> | ||
RCPT TO:<[email protected]> | ||
RCPT TO:<[email protected]> | ||
RCPT TO:<[email protected]> | ||
DATA | ||
. | ||
EOF | ||
|
||
unset MAXRCPTS | ||
unset MAXRCPTS_REJECT | ||
<result> | ||
250 Sender='[email protected]'.^M | ||
250 Recipient='[email protected]'.^M | ||
250 Recipient='[email protected]'.^M | ||
550 5.5.3 Too many recipients^M | ||
550 5.5.3 Too many recipients^M | ||
354 End your message with a period on a line by itself.^M | ||
250 Received 0 bytes.^M | ||
250 Sender='[email protected]'.^M | ||
250 Recipient='[email protected]'.^M | ||
250 Recipient='[email protected]'.^M | ||
550 5.5.3 Too many recipients^M | ||
550 5.5.3 Too many recipients^M | ||
550 5.5.3 Too many recipients^M | ||
500 5.5.1 Not implemented.^M |