1

Topic: smtp auth forwarding

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

Hello everyone!
I want to make like a mail firewall/gateway that will get all the smtp connections and will filter spam and non-authenticated users.
is there an option that postfix (in the gateway) will forward authentication to my iredmail server and check if the user is exist?

Thank you,
Raz

----

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

2

Re: smtp auth forwarding

Install postfix on gateway server, configure it to query/verify accounts against the sql/ldap db on iRedMail server.

3

Re: smtp auth forwarding

Thank you for replying

Will it be possible that the gateway will forward incoming messages to the iredmail server?

Thank you
Raz

4

Re: smtp auth forwarding

raz wrote:

Will it be possible that the gateway will forward incoming messages to the iredmail server?

Sure. List all relay domains in Postfix parameter "relay_domains =". Of course you can use sql query in this parameter (check iRedMail setting as reference).