Topic: Allow server to use relay on TCP/25 without auth and SSL
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
We have some systems that we need to have mail from. These systems though dosen't have much of configurations enabled more than setting from/to address and which relay server you want to use. Our relay server is an iredmail server which only handles relay, nothing else. So I thought we could still use it for this.
What I've done so far is change the smtpd settings in master.cf to handle non SSL/TLS connections, disabled sasl_auth, and remove the helo restrictions
smtpd pass - - - - - smtpd
-o smtpd_tls_security_level=none
-o smtpd_sasl_auth_enabled=no
-o smtpd_helo_required=no
-o smtpd_helo_restrictions=
On that, I've added one of the machines mailaddresses in iredadmin as an account, and then tried to add it to the sender_access.pcre
/server\@example\.com/ OK
But we're not getting through the relay server. This is the error from mail.log (with changed IP and mailadresses):
postfix/smtpd[30439]: NOQUEUE: reject: RCPT from unknown[10.0.100.10]: 454 4.7.1 <reciever@external.com>: Relay access denied; from=<server@example.com> to=<reciever@external.com> proto=SMTP helo=<NXS-B01-000-13E500B6-0>
So, to me it seems that the sender_access.pcre is not used? Should I add more options to the smtpd in master.cf?
(Also, please update http://www.iredmail.org/docs/allow.user … tion.html, as this is not handling sender_access.pcre)
Best Regards
Johan Olsson
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.