1

Topic: Relaying from systems on the local network

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: Ubuntunt 16.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Not yet
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I have systems on my local lan that use scripts to email status/monitoring emails.  Those emails are getting rejected by iRedmail, and not being forwarded, rejected with "user does not exist", when using the hostname as the From address. 

I previously used a simple postfix configuration to relay these messages, relaying only for hosts on the local lan.  That however was only internal to the LAN, and the relay was not accessible to outside hosts. 

Is there a way to add this type of relay functionality for only hosts on the local LAN wihtout having to register each hostname as an email account? Is that opening a security issue with an exposed mail server?

----

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

2

Re: Relaying from systems on the local network

What happends if you add the IP-range of your local network in /etc/postfix/main.cf?

mynetworks = 127.0.0.1 INSERT IP

3

Re: Relaying from systems on the local network

The easiest and best way to solve it is performing SMTP AUTH to send email.