LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2014, 01:39 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 565

Rep: Reputation: Disabled
Which main.cf file should be used for postfix?


Which main.cf file should be used for postfix? Why are there two of them?

Code:
[root@michaels ~]# find / -name main.cf
/etc/postfix/main.cf
/usr/libexec/postfix/main.cf
[root@michaels ~]#
 
Old 03-25-2014, 03:44 PM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,285

Rep: Reputation: 61
use the /etc/postfix/main.cf, linux configuration files are kept in the /etc directory. the other one is the original location for configuration files during the installation, just so you don't overwrite your current configuration which can be a bad thing.
 
Old 03-25-2014, 03:58 PM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 565

Original Poster
Rep: Reputation: Disabled
Thanks fotoguy, good to know where to find them when I mess them up! Interesting that the files are slightly different.
 
Old 03-26-2014, 03:26 PM   #4
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,285

Rep: Reputation: 61
Strange that there slightly different, it has been a few years since I used postfix, maybe sometings have changed. Always best to backup your /etc directory, linux has some programs that can be used to backup your system, save you many headaches in the end.
 
  


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
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
Parameters not working in main.cf config file in postfix rajesh.bahl Linux - Server 3 03-21-2008 08:34 AM
postfix main.cf file okidokie Linux - Server 1 02-12-2007 07:04 AM
postfix main.cf illtbagu Linux - Software 8 07-22-2003 12:35 AM


All times are GMT -5. The time now is 08:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration