Koozali.org: home of the SME Server

Using a hosted spam filter [SOLVED]

Offline Gert

  • ****
  • 208
  • +0/-0
    • http://www.huge.co.za
Using a hosted spam filter [SOLVED]
« 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)?
« Last Edit: November 09, 2016, 12:40:37 PM by Gert »

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Using a hosted spam filter
« Reply #1 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

Offline Gert

  • ****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: Using a hosted spam filter
« Reply #2 on: November 08, 2016, 12:38:07 PM »
Perfect!! Exactly what I was looking for. Thank you Stefano.  :-)

guest22

Re: Using a hosted spam filter
« Reply #3 on: November 09, 2016, 10:59:40 AM »
Perfect!! Exactly what I was looking for. Thank you Stefano.  :)
Please add [SOLVED] to the subject.