1 (edited by jubi 2015-08-24 03:19:03)

Topic: External spamfilter

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====

Hi. I love your product, I got my mail server up and running stable.
Now I want to implement an external hosted spamfilter. MX record points to external server forwarding mails to my server. I read and tried the topics about this issue on the forums, but I am stuck.

Now this I my issue:

- How to accept only incomming mail from external (spamfilter) server. I am stuck in postfix main.cf
- But continue to accept authenticated users sending outbound email through SMTP
- Stop scanning inbound email for spam/viruses but continue to do so on outbound mail

Thanks for your help!

----

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

2

Re: External spamfilter

jubi wrote:

- How to accept only incomming mail from external (spamfilter) server. I am stuck in postfix main.cf

*) List your spamfilter server in Postfix parameter 'mynetworks ='.
*) You said "only", you can block port 25 but only allow your spamfilter server in firewall. e.g. iptables.

jubi wrote:

- But continue to accept authenticated users sending outbound email through SMTP

Nothing changed for this.

jubi wrote:

- Stop scanning inbound email for spam/viruses but continue to do so on outbound mail

Disable 'content_filter =' in main.cf, but enable 'content_filter=inet:127.0.0.1:10025' in /etc/postfix/master.cf for `submission` service.

3

Re: External spamfilter

Thanks for your kind reply.
I implemented the changes in postfix config files. But i didn't apply the iptables rule yet.
However. I get a persistant error when I send a message to my local recipient from Gmail:

554 5.7.1 <xxxxx@domain.tld>: Recipient address rejected: Policy rejection

external spamfilter reports recipient address rejected by destination


Any clue whats going on?

4

Re: External spamfilter

Ok. Forum and log search helped me along. :-)
Disable reject_null_sender in iredapd config did the trick.

Is there another solution except just disabling this feature?

Thanks.

5

Re: External spamfilter

jubi wrote:

Ok. Forum and log search helped me along. :-)
Disable reject_null_sender in iredapd config did the trick.

Is there another solution except just disabling this feature?

This is a bug in this plugin, fixed and will be available in next iRedMail release. sorry about this.