Thank you @davidp
I ran through the first command, and it worked fine; the email was received. Let me know if you need the exact console output.
Now I suppose this relay was allowed because I already have 10.1.0.0/16
(actually 10.1.169.0/8
presently) as a trusted network and then that setting defined.
Under the access.cidr
file, I can see my network is defined correctly, and has OK
as an option. I have this as a trusted network, and under the Email tab I have the domain listed with the option relay to another server
defined; all filtering is disabled and there is no smart-host defined.
So from a non-technical perspective (mine) applications are failing to send out emails to the SMTP relay as theyâre not defined in the Allow Relay
location yet fall under the scope of the trusted network.
If I use curl
or telnet
(or even Powershell's CMDlet
) to send a test email, it works; SMTP scanning for printers, other applications and service fail.
For example:
- Currently my host (
10.1.169.169
) is not defined in âAllow Relayâ;
- Currently the 2 lines within the
postfix
config file are present;
- The
access.cidr
has my defined network in there.
If I attempt to send an email I get the following bounce back:
Command parameter not implemented. The server response was: 5.5.2 : Helo command rejected: need fully-qualified hostname
If I perform the following I can get it to work:
vi /etc/postfix/main.cfg
and hash out the two lines
systemctl restart postfix
It will work. If I go and inverse this:
- Re-enable the two lines in the config file and;
- Restart the service
This will work. What I have noticed is that this added 10.1.169.169
to access.cidr
along with 10.1.0.0/8 OK
. I went back to trusted networks and defined 10.1.169.0 255.255.255.0
as the subnet and restarted my postfix
service, the access.cidr
file remained the same.
So for good measure, I rebooted my system. I then looked again and the trusted network remained 10.1.0.0/8
- can we confirm what generates the access.cidr
file? Perhaps this hasnât been updated in all the changes hence why the host isnât being trusted?
Updated:
- No host defined under âIP For SMTP Relayâ and âTrusted Network Enabledâ
- 2 lines in config file still present
10.0.0.0/8
manually defined in the access.cidr
This seemed to work on numerous tests. How do I go about regenerating this file automatically with the correct networks?