1

Topic: Spam filtering/greylisting only for several domains

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):LDAP
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? YES
- Related log if you're reporting an issue:
====
Is it possible to have a iredmail filter spam/greylist  only for several domains then send only the clean mail to the domains main mail server.  Thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by brix 2016-08-26 04:08:55)

Re: Spam filtering/greylisting only for several domains

Hello!
You can activate spam filtering and greylisting under domain settings. Click on "Edit account profile" for specific domain and go to "Graylisting" and "Spam policy", there you should have all related settings.
Global settings for this are under "System" -> "Anti spam"
And then you can set forwarding or relay settings.
Hope this solves your issue.

If you have any more questions, don't hesitate to ask.
Greetings

3

Re: Spam filtering/greylisting only for several domains

You can set a relay destination in domain profile page, under tab "Relay", input the destination server address in correct format, then scanned emails will be forwarded to the destination server.

4 (edited by ubutux 2016-08-26 09:10:46)

Re: Spam filtering/greylisting only for several domains

Thanks Zhang and Brix, so would the forward be set up on the received email for the domain ? so in this case iredmail would be set as the primary mx record, email would flow into iredmail be scanned and filtered then based on the forward setup would be relayed to the other mail server .  Also when a email domain is setup as a backup mx on iredmail is all email recieved scanned for spam and virus before being sent to primary mail server when back online. Thanks

5

Re: Spam filtering/greylisting only for several domains

ubutux wrote:

so in this case iredmail would be set as the primary mx record, email would flow into iredmail be scanned and filtered then based on the forward setup would be relayed to the other mail server

Primary/Backup MX must have different priorities in DNS records (MX), but this relay doesn't require it. it simply forwards email to specified server.

ubutux wrote:

Also when a email domain is setup as a backup mx on iredmail is all email recieved scanned for spam and virus before being sent to primary mail server when back online. Thanks

Yes.

6

Re: Spam filtering/greylisting only for several domains

I have setup the email relay for the received mail on iredmail for this domain, the dns mx records for the domain show the iredmail server as the primary mx . when i send the test eicar email to the domain it is not detected and relays the email to the  second server.

7

Re: Spam filtering/greylisting only for several domains

What's the issue now? "Not detect eicar email", or "not relay to second server"? How did you configure relay and backup mx?