1

Topic: SMTP Relay settings

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====


Hello

Getting a relay error recently following a system replacement.

Looking at this thread: https://forum.iredmail.org/topic12573-a … twork.html

We do NOT have a MYNETWORKS in our iRedAPD /opt/iredapd/settings.py file.   
Yet it was working previously. 

Should this be present?  When & what versions was this required?

Any other details to be aware?

----

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

2

Re: SMTP Relay settings

Is the IPv4 127 required in MYNETWORKS = ['127.0.0.1','10.10.10.0/24']

Any preferred syntax or CIDR for IPv6?

3

Re: SMTP Relay settings

What relay error are we talking about? Please paste full, original error message.

4

Re: SMTP Relay settings

ZhangHuangbin wrote:

What relay error are we talking about? Please paste full, original error message.

status=bounced (host domain.tld[__IPv6_address__] said: 554 5.7.1 <user@domain.tld>: Recipient address rejected: SMTP AUTH is required for users under this sender domain (in reply to RCPT TO command))


We do NOT have a MYNETWORKS in our iRedAPD /opt/iredapd/settings.py file.     Should this be present?

"Yet it was working previously."
    An older Centos host machine was working and got replaced with an Alma Linux 9 machine.



Is the IPv4 127.0.0.1 required in MYNETWORKS = ['127.0.0.1','10.10.10.0/24'] like you had displayed in the other thread or is that just an example illustration?

Any preferred syntax or CIDR for IPv6?

5

Re: SMTP Relay settings

pbf343 wrote:

We do NOT have a MYNETWORKS in our iRedAPD /opt/iredapd/settings.py file.     Should this be present?

We have this parameter defined with default value in /opt/iredapd/libs/default_settings.py, you should add this parameter in /opt/iredapd/settings.py if you need to tune its value.

pbf343 wrote:

Is the IPv4 127.0.0.1 required in MYNETWORKS = ['127.0.0.1','10.10.10.0/24'] like you had displayed in the other thread or is that just an example illustration?
Any preferred syntax or CIDR for IPv6?

It's mentioned in /opt/iredapd/libs/default_settings.py:

# Trusted IP address or networks.
# Valid formats:
#   - Single IP address: 192.168.1.1
#   - Wildcard IP range: 192.168.1.*, 192.168.*.*, 192.168.*.1
#   - IP subnet: 192.168.1.0/24
MYNETWORKS = []