Postfix mynetworks default setting

Bugs in eFa 5
Post Reply
cordeos
Posts: 18
Joined: 11 Nov 2017 08:49

Postfix mynetworks default setting

Post by cordeos »

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.
User avatar
shawniverson
Posts: 3776
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Postfix mynetworks default setting

Post by shawniverson »

I'd like to know how "hash:/etc/postfix/transport" ended up here.

mynetworks is initialized out of the box as:

eFa-base-5.0.0-1.eFa.el9.noarch
postfix-config-5.0.0.sh, line 35:

Code: Select all

postconf -e "mynetworks = 127.0.0.0/8 [::1]/128"
Post Reply