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.
Am Montag, 20. Oktober 2003 13:43 schrieb Tom Allison:
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.
Use the "POSTFIX_ADD_" Syntax in /etc/sysconfig/postfix: POSTFIX_ADD_MYNETWORKS=......
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.
-- Andreas
On 10/20/2003 07:43 PM, Tom Allison wrote:
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
add the following to /etc/sysconfig/postfix; ## Type: string ## Default: 127.0.0.0/8 POSTFIX_ADD_MYNETWORKS="" You can now access it the the sysconfig editor in yast and add this parameter to Postfix through Yast. HTH -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
On 10/20/2003 07:43 PM, Tom Allison wrote:
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
add the following to /etc/sysconfig/postfix; ## Type: string ## Default: 127.0.0.0/8 POSTFIX_ADD_MYNETWORKS=""
You can now access it the the sysconfig editor in yast and add this parameter to Postfix through Yast. HTH
This is cool!
From other posts it seems that this is rather unique to the /etc/sysconfig/postfix file and not ubiquitious to the /etc/sysconfig/ files. But it will certainly help a lot.
participants (4)
-
Andreas Winkelmann
-
Joe Morris (NTM)
-
tallison@tacocat.net
-
Tom Allison