Yast: Add Relay Subnets to Postfix

Can I use yast to manage subnets that are allowed to relay for my MTA? (Postfix)?

I see a main.cf.SuSEconfg file in /etc/postfix but am not sure if that is simply copied to the main.cf after configuration is complete.

Also, I don’t see where I could add relay subnets in the yast screens, so I’ve been editing main.cf with vi.

Hi,

I want to add some general information about suseconfig and manual edited config files. After you edited some configuration file of postfix this file is now out of the control of suseconfig and suseconfig will not change the file anymore. For example the main.cf.SuSEconfg is the file proposed by suseconfig but main.cf will not be changed.

But it isn’t necessary to use yast for postfix configuration because postfix is well documented easy to configure and there are a lot of howtos. Just look at The Postfix Home Page and for basic configuration at Postfix Basic Configuration. The file generated from suseconfig is a good start point and now I would suggest to configure postfix for your needs manually.

Hope this helps

Oh I just forget to mention the options you might looking for :wink:

guess you are looking for the options smtpd_sender_restrictions smtpd_recipient_restrictions and smtpd_helo_restrictions. You might want to add permit_mynetworks to them and set the variable mynetworks to a proper value. But have a closer look at the documentation before to find out if that is what you wanted to do.

Hope this helps

Postfix has so many config variables that it will be nigh impossible to support them all with a GUI interface. You actually have three options:

  1. For simple cases you can use YaST.

  2. For more complicated situations you can set config variables by using a special syntax in /etc/sysconfig/postfix, for example: POSTFIX_ADD_MESSAGE_SIZE_LIMIT=10240000 will generate message_size_limit=10240000 in /etc/postfix/main.cf. This allows you to retain compatibility with YaST, and not end up with a main.cf.SuSEconfig whenever the system is reconfigured.

  3. You can abandon any control by YaST and edit main.cf yourself.

Just be careful of this: if you set a variable more than once in main.cf, you get no warning, the last setting silently wins. So if you search from the beginning of the file, don’t stop at the first match, look for all matches.

Hi
Webmin has a good interface for editing the configs etc;
Webmin and download the noarch rpm.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.18-0.2-default
up 1 day 10:35, 2 users, load average: 0.17, 0.12, 0.17
GPU GeForce 6600 TE/6200 TE - Driver Version: 177.80