Discussion:
[SLE] postfix configuration w/Yast
Tom Allison
2003-10-20 11:43:33 UTC
Permalink
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.
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
Tom Allison
2003-10-20 11:44:45 UTC
Permalink
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.
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
Carlos E. R.
2003-10-20 22:21:09 UTC
Permalink
Post by Tom Allison
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
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
Andreas Winkelmann
2003-10-20 12:02:16 UTC
Permalink
Post by 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
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=......
Post by Tom Allison
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
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
Joe Morris (NTM)
2003-10-20 12:35:52 UTC
Permalink
Post by Tom Allison
In order for this to work, I have to modify the postfix/main.cf file to
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: ***@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.
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
t***@tacocat.net
2003-10-20 15:35:12 UTC
Permalink
Post by Joe Morris (NTM)
Post by Tom Allison
In order for this to work, I have to modify the postfix/main.cf file to
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!
Post by Joe Morris (NTM)
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.
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
Loading...