Postfix mynetworks default setting
Posted: 16 Nov 2024 16:11
Does anyone have information on why eFA5 creates the postfix default mynetworks settings as:
mynetworks = 127.0.0.0/8 [::1]/128 hash:/etc/postfix/transport
And this is reset to this prepended string when you use eFA-Configure and add a relay; it becomes:
mynetworks = 127.0.0.0/8 [::1]/128 hash:/etc/postfix/transport 211.128.103.94
The "hash" used in this case does not work, and the entries in the transport db file are never returned as 'mynetworks' items.
This should be changed to a simple list-style file and included here. Then the CLI menu item can just append or delete from this text file.
mynetworks = 127.0.0.0/8 [::1]/128 hash:/etc/postfix/mynetworks_list
It would be nice to re-use the transport file to reduce management of different files when eFA is used with multiple backend internal host servers or domains - but not sure this can be done directly in postfix.
This current configuration seems to require additional steps to setup out-of-the-box, or else you get relay-denied for outbound messages.
mynetworks = 127.0.0.0/8 [::1]/128 hash:/etc/postfix/transport
And this is reset to this prepended string when you use eFA-Configure and add a relay; it becomes:
mynetworks = 127.0.0.0/8 [::1]/128 hash:/etc/postfix/transport 211.128.103.94
The "hash" used in this case does not work, and the entries in the transport db file are never returned as 'mynetworks' items.
This should be changed to a simple list-style file and included here. Then the CLI menu item can just append or delete from this text file.
mynetworks = 127.0.0.0/8 [::1]/128 hash:/etc/postfix/mynetworks_list
It would be nice to re-use the transport file to reduce management of different files when eFA is used with multiple backend internal host servers or domains - but not sure this can be done directly in postfix.
This current configuration seems to require additional steps to setup out-of-the-box, or else you get relay-denied for outbound messages.