Portal Home > Knowledgebase > Email > Reject Invalid Emails (SPAM)
1. Login into SSH and su to root
2. pico /etc/exim.conf
3. Ctrl + W and type in: accept domains Notice the two spaces. Look for something like this below.
Section A:
accept domains = +local_domains
accept domains = +relay_domains
accept hosts = +relay_hosts
accept condition = ${perl{checkrelayhost}{$sender_host_address}}
Between
accept domains = +local_domains
and
accept domains = +relay_domains
add the following:
endpass
message = unknown user
verify = recipient
Make sure each line lines up. You might need to add two spaces before each line. The final section will look like this:
accept domains = +local_domains
endpass
message = unknown user
verify = recipient
accept domains = +relay_domains
accept hosts = +relay_hosts
accept condition = ${perl{checkrelayhost}{$sender_host_address}}
Scroll all the way to the bottom and click on Save.
That's it! Welcome to much smaller mail queues!
Add to Favourites
Print this Article