LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 11-24-2012, 05:47 AM   #1
martvefun
Member
 
Registered: Apr 2010
Location: Belgium
Distribution: Archlinux
Posts: 53

Rep: Reputation: 1
Question Postfix: main.cf vs master.cf


Hello,

I am configuring my Postfix server and would like to set an SASL authentication to avoid becoming a mail relay. The problem is that I read many different things and I am not always sure what to do.

My question is about the difference between the file main.cf and master.cf in the postfix directory. In my understanding, the rules specified in main.cf are global and using "-o something" in master.cf overwrite it for the specified service (smtp, smtpd...).

In my main.cf, to restrict the access to authenticated users, I put
Code:
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_security_options = noplaintext,noanonymous
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth-client
So does it mean the redundant rule "smtpd_sasl_auth_enable=yes" in my master.cf is useless or does it mean the smtp service is not protected with sasl ? I use smtp (25) and smtps (465).

Code:
smtp      inet  n       -       -       -       -       smtpd
  -o smtpd_milters=inet:127.0.0.1:12345
smtps     inet  n       -       -       -       -       smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o smtpd_milters=inet:127.0.0.1:12345
Also I use OpenDKIM to sign my messages. After testing, I had to put the rule "smtpd_milters = inet:127.0.0.1:12345" in both main.cf and master.cf (otherwise it doesn't work). Why is that ?

Thank you in advance

Last edited by martvefun; 11-24-2012 at 06:28 AM.
 
Old 11-26-2012, 09:04 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
master.cf control process of postfix , which process will run and what parameters passed to them all these are decided by master.cf . main.cf in the MTA configuration file.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix - master.cf editation connorcan Linux - Newbie 4 10-25-2010 04:06 AM
Help on Postfix 2.1.5 main.cf allancth Linux - Software 2 04-29-2009 08:08 PM
Postfix main.cf halvorls Linux - Server 8 09-25-2008 05:03 PM
postfix main.cf and master.cf configuration husseinalbazzar Linux - Newbie 10 03-19-2008 11:18 AM
postfix main.cf illtbagu Linux - Software 8 07-22-2003 12:35 AM


All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration