1

Topic: external content filter

==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian 6
- Related log if you're reporting an issue:
====

Hi everybody,
i need to configure iredmail to use an external content filter, also in case of an internal mail (same domain or two domains configured on the same machine)
i changed the parameter "content_filter"
inside /etc/postfix/main.cf and set as

content_filter = smtp:external.server.fqdn:25

unfortunately i got a loop in mail delivery.
How can i solve forcing "one time" content filtering?
Thanks in advance

----

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

2

Re: external content filter

g.nantista wrote:

content_filter = smtp:external.server.fqdn:25

*) "content_filter" is used for content-based anti-spam/virus, are you sure your external content filter work with this?
*) Port 25 is used by standard SMTP service, are you sure your content filter use this port?
*) Just curious, what external content filter do you use? Does it provide user manual or similar doc?

3

Re: external content filter

Hi,
i use Mailcleaner http://www.mailcleaner.org/
i delivered a cluster installation with two nodes.

i just found a solution, here is what i did

/etc/postfix/main.cf
content_filter = smtp:external.server.fqdn:25

All mail received on port 25 are submitted to mailcleaner
Once mailcleaner filters those mail it delivery them back to iredmail on port 4025

/etc/postfix/master.cf
smtp      inet  n       -       -       -       -       smtpd
4025      inet  n       -       n       -       -       smtpd
   -o mynetworks=127.0.0.0/8,mailcleaner_ip_1,mailcleaner_ip_2
   -o smtpd_client_restricions=permit_mynetworks,reject
   -o content_filter=

because of the empty directive "content_filter" on port 4025 the message is no longer checked

Of course firewall deny any connection on port 4025 except to mailcleaner ip 1 and 2