summary of the instructions on this post
To help clear things up i have put all the instructions together, hope this helps.
1) Create a file that will be the actual whitelist. In this example it is /etc/whitelist_senders - the addresses need to be listed one entry per line, either the email address or use the wildcard to do an entire domain - *@domain.tld
To create the file:
2) in WHM, in the top most edit box add (if there is anything else in the text box add this bellow it):
3) still in WHM. scroll down to where there are three text boxes together. This is the begin ACL section. In the middle box scroll down until you find:
and change it to:
4) still in the middle box scroll down to the end and change:
to this:
5) Save and exit. Now try to send and receive email to make sure everything is still working. If all is ok add the address in question to the whitelist and see if it works.
To help clear things up i have put all the instructions together, hope this helps.
1) Create a file that will be the actual whitelist. In this example it is /etc/whitelist_senders - the addresses need to be listed one entry per line, either the email address or use the wildcard to do an entire domain - *@domain.tld
To create the file:
Code:
touch /etc/whitelist_senders
2) in WHM, in the top most edit box add (if there is anything else in the text box add this bellow it):
Code:
addresslist whitelist_senders = wildlsearch;/etc/whitelist_senders
Code:
#sender verifications are required for all messages that are not sent to lists
require verify = sender/callout
accept domains = +local_domains
endpass
Code:
#sender verifications are required for all messages that are not sent to lists
[COLOR="Red"]deny
!verify = sender/callout
!senders = +whitelist_senders[/COLOR]
accept domains = +local_domains
endpass
Code:
#!!# ACL that is used after the DATA command
check_message:
require verify = header_sender
accept
Code:
#!!# ACL that is used after the DATA command
check_message:
[COLOR="Red"]deny
!verify = header_sender
!senders = +whitelist_senders[/COLOR]
accept
Then put the sender addresses in the file /etc/whitelist_senders, one per line, e.g.
[email protected]
*@domain2.tld