Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: Gert on November 08, 2016, 11:03:22 AM

Title: Using a hosted spam filter [SOLVED]
Post by: Gert on November 08, 2016, 11:03:22 AM
Hi,

I am using an external hosted spam filter to filter out spam and virusses, the mx of my domain point to the spam filter and the filter in turn deliver the mail to my server. however some spam are still being sent directly to the server bypassing the filter, even if the hostname of the server is no lomger listed as a MX record in the DNS. Is there a way I can set the server to only allow receiving email from certain ip addresses (in this case the ip addressess of the spam filter)?
Title: Re: Using a hosted spam filter
Post by: Stefano on November 08, 2016, 12:16:45 PM
something like

Code: [Select]
config setprop smtpd AllowHosts 123.123.123.123,234.234.234.234/32
should do the trick
just set the ip of your external server
Title: Re: Using a hosted spam filter
Post by: Gert on November 08, 2016, 12:38:07 PM
Perfect!! Exactly what I was looking for. Thank you Stefano.  :-)
Title: Re: Using a hosted spam filter
Post by: guest22 on November 09, 2016, 10:59:40 AM
Perfect!! Exactly what I was looking for. Thank you Stefano.  :)
Please add [SOLVED] to the subject.