Issue
If some of the emails mark as SPAM but it`s necessary to ignore the some of the email addresses or domain(s) on an ongoing basis and do not mark them as SPAM during sending
Environment
Any OS with Imunify Email module
Solution
Starting from 0.8.1
This feature is integrated into UI. More information is here.
Version less than 0.8.1
At this moment we have no settings in Imunify Email for adding emails to the whitelist, it should be realized later, to do that should be used the following steps:
1. Create a file at path /etc/rspamd/local.d/multimap.conf with the content below
sender_from_whitelist {
type = "from";
filter = "email";
map = "file://${DBDIR}/from_whitelist";
symbol = "SENDER_FROM_WHITELIST";
action = "accept";
}
sender_from_whitelist_domain {
type = "from";
filter = "email:domain";
map = "file://${DBDIR}/from_domain_whitelist";
symbol = "SENDER_FROM_WHITELIST_DOMAIN";
action = "accept";
}
rcpt_whitelist {
type = "rcpt";
filter = "email";
map = "file://${DBDIR}/rcpt_whitelist";
symbol = "RECIPIENT_WHITELIST";
action = "accept";
}
rcpt_whitelist_domain {
type = "from";
filter = "email:domain";
map = "file://${DBDIR}/rcpt_domain_whitelist";
symbol = "RECIPIENT_WHITELIST_DOMAIN";
action = "accept";
}
auth_whitelist {
type = "user";
filter = "email";
map = "file://${DBDIR}/authuser_whitelist";
symbol = "AUTHUSER_WHITELIST";
action = "accept";
}
2. Restart the RSpamd daemon.
# systemctl restart rspamd
3. Create the files below under /var/lib/rspamd/ for whitelisting. Every lines have a whitelisting object such as email address or domain. # can be used for comments.
Sender email address | |
from_whitelist |
Sender domain |
from_domain_whitelist |
Recipient email address |
rcpt_whitelist |
Recipient domain |
rcpt_domain_whitelist |
Authenticated email address |
authuser_whitelist |
4. Sample file content are below:
For Email Addresses:
#This is a comment line
user1@domain1.com
user@domain2.com
For domains:
#This is a comment line
domain1.com
domain2.com
Useful links
https://cloudlinux.atlassian.net/wiki/spaces/IE/pages/2953248772/How+To+Create+Whitelists+in+RSpamd
https://docs.imunify360.com/email/#whitelisting
Comments
0 comments
Please sign in to leave a comment.