Topic: iRedMail as relay and iRedAPD
Hello,
I tried to configure iRedMail as relay for the other systems in our network. After reading Enable relay from send mail trough iredmail (Postfix) I appended our network (X.X.X.X/28) to mynetworks in /etc/postfix/main.cf.
Just above mynetworks in Postfix main.cf I found the following comment:
# trusted SMTP clients which are allowed to relay mail through Postfix.
#
# Note: additional IP addresses/networks listed in mynetworks should be listed
# in iRedAPD setting 'MYNETWORKS' (in `/opt/iredapd/settings.py`) too.
# for example:
#
# MYNETWORKS = ['xx.xx.xx.xx', 'xx.xx.xx.0/24', ...]
#
I searched through '/opt/iredapt/settings.py' but didn't find a MYNETWORKS setting. Also, all options in iRedAPT settings.py are lowercase. Did the format change in the meantime? Is it still possible/necessary to add networks as 'MYNETWORKS' to iRedAPD? What's the purpose/effect of this at all?
Besides, I realized that the network should also be added to 'ignoreips' at /etc/fail2ban/jail.local. Otherwise, the smtp client nodes might become blacklisted, no?
Anything else to consider when using iRedMail as SMTP relay?
Kind regards,
jonas
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.