postfix configuration w/Yast
I ran into a very small problem with postfix. It's the last of my tweaks to get this working. First, my network. postfix is in a DMZ (192.168.0.0/24) and I send all my mail through my LAN (192.168.1.0/24) connection to the DMZ boxen. However, I currently have my mail client (Mozilla) configured to send mail via the DMZ SMTP server and not localhost. In order for this to work, I have to modify the postfix/main.cf file to include: mynetworks = 127.0.0.0/8, 192.168.1.0/24 But I can't find anyway to set this through the /etc/sysconfig files and once I set this, all changes through the sysconfig files are subsequently blocked. I'm trying to find some compromise where I might add a special tag to the sysconfig files to provide this extra configuration item. At least this way I could have all my configuration settings managed in one place (/etc/sysconfig/) even if I can't interact with 'mynetworks' through Yast. My alternative is to configure postfix on every machine as a localhost delivery for email. I could do this easily enough because I'm working in my house as a pure linux network. But I'm also trying to set this up for my brother who uses a heterogeneous network of Linux and Windows (all version) and will still require a smtp delivery server. Is there some way to "hack" in a special configuration item in the sysconfig files? I once saw someone who hacked in some code to use qmail instead of postfix/whatever and that was a customized line, but was in Suse 7.? or earlier.
The 03.10.20 at 07:44, Tom Allison wrote:
I'm trying to find some compromise where I might add a special tag to the sysconfig files to provide this extra configuration item. At least this way I could have all my configuration settings managed in one place (/etc/sysconfig/) even if I can't interact with 'mynetworks' through Yast.
POSTFIX_ADD_mynetworks="192.168.100.0/8, 127.0.0.0/8" Don't know if this ADD thing work for all configuration files, but it doess for config (any variable, it works). Curious, and nice :-) -- Cheers, Carlos Robinson
participants (2)
-
Carlos E. R.
-
Tom Allison