LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Which main.cf file should be used for postfix? (https://www.linuxquestions.org/questions/linux-newbie-8/which-main-cf-file-should-be-used-for-postfix-4175499423/)

NotionCommotion 03-25-2014 12:39 PM

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 ~]#


fotoguy 03-25-2014 02:44 PM

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.

NotionCommotion 03-25-2014 02:58 PM

Thanks fotoguy, good to know where to find them when I mess them up! Interesting that the files are slightly different.

fotoguy 03-26-2014 02:26 PM

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.


All times are GMT -5. The time now is 03:51 PM.