mirror of
https://github.com/rspamd/rspamd.git
synced 2024-09-13 15:45:47 +02:00
[Test] Additional tests for multimap
This commit is contained in:
parent
2458e1746a
commit
3205e92fb8
@ -69,6 +69,22 @@ MAP - FROM REGEXP MISS
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --from user@other.org
|
||||
Check Rspamc ${result} REGEXP_MAP inverse=1
|
||||
|
||||
MAP - RCPT DOMAIN HIT
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --rcpt user@example.com
|
||||
Check Rspamc ${result} RCPT_DOMAIN
|
||||
|
||||
MAP - RCPT DOMAIN MISS
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --rcpt example.com@user
|
||||
Check Rspamc ${result} RCPT_DOMAIN inverse=1
|
||||
|
||||
MAP - RCPT USER HIT
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --rcpt bob@example.com
|
||||
Check Rspamc ${result} RCPT_USER
|
||||
|
||||
MAP - RCPT USER MISS
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} --from example.com@bob
|
||||
Check Rspamc ${result} RCPT_USER inverse=1
|
||||
|
||||
MAP - DEPENDS HIT
|
||||
${result} = Scan Message With Rspamc ${MESSAGE} -i 5.9.155.182 --from user123@rspamd.com
|
||||
Check Rspamc ${result} DEPS_MAP
|
||||
|
1
test/functional/configs/maps/users.list
Normal file
1
test/functional/configs/maps/users.list
Normal file
@ -0,0 +1 @@
|
||||
bob
|
@ -30,6 +30,16 @@ multimap {
|
||||
map = "${TESTDIR}/configs/maps/regexp.list";
|
||||
require_symbols = "R_SPF_ALLOW & REGEXP_MAP & !FROM_MAP";
|
||||
}
|
||||
RCPT_DOMAIN {
|
||||
type = "rcpt";
|
||||
filter = "email:domain";
|
||||
map = "${TESTDIR}/configs/maps/domains.list";
|
||||
}
|
||||
RCPT_USER {
|
||||
type = "rcpt";
|
||||
filter = "email:user";
|
||||
map = "${TESTDIR}/configs/maps/users.list";
|
||||
}
|
||||
RCPT_MAP {
|
||||
type = "rcpt";
|
||||
filter = "email:addr";
|
||||
|
Loading…
Reference in New Issue
Block a user