LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2018, 10:22 AM   #1
calibal
LQ Newbie
 
Registered: Apr 2018
Posts: 2

Rep: Reputation: Disabled
Question [Postfix] how to debug "postconf: fatal: open xxx/main.cf: No such file or directory"


Hello i have a little issue on my postfix server (on a Debian Stretch).
when i run postconf -check i have a message:

Code:
postconf: fatal: open heck/main.cf: No such file or directory
of course it does not exist, but where is this defined ?
i can't find it.
i had tested:

Code:
# postconf -d config_directory
config_directory = /etc/postfix
Any help is welcome

thanks
 
Old 04-20-2018, 01:15 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by calibal View Post
Hello i have a little issue on my postfix server (on a Debian Stretch). when i run postconf -check i have a message:
Code:
postconf: fatal: open heck/main.cf: No such file or directory
of course it does not exist, but where is this defined ? i can't find it. i had tested:
Code:
# postconf -d config_directory
config_directory = /etc/postfix
Honestly, unsure of what you're asking here. The obvious directory for the file is the one postfix tells you, at /etc/postfix. Unless you compile postfix with different options, that's the default location.

If your main.cf is in another location, then you have to specify the config file you want to use; the postfix documentation has all of this. Running
Code:
postfix -c /some/path
...will tell postfix to look in /some/path for the config files.
 
Old 04-21-2018, 04:11 AM   #3
calibal
LQ Newbie
 
Registered: Apr 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi TBone thanks to help me

no i had installed from deb package, i have main.cf in /etc/postfix, and it's correctly set in postfix (as told me the "postconf -d config_directory" command.

it's why i do not understand why i have this error when i want to check my config.

i also tried to make a grep -nr "heck" /etc/* to check where this word is in my files, it's nowhere.

it's look like a typo about the "check" word somewhere, but i do not know where.

is there a way to have postconf very verbose ? to know from where this error is comming ?

the deamon_directory, command_directory, meta_directory, config_directory are correctly setted.
i just have the def_config_directory not set, but it's perhaps normal, i don't know.

[edit 2] yes it is as it's defined in script:
Code:
/etc/postfix/postfix-script:97:    $command_directory/postconf -c $def_config_directory \

[edit1]
then with -v -v -v option in postconf i have more details.

Code:
postconf: dict_register: mail_dict 1
postconf: dict_update: config_directory = heckconf
postconf: fatal: open heckconf/main.cf: No such file or directory
i have to found now why the config directory is set like that ...

Last edited by calibal; 04-21-2018 at 04:18 AM.
 
Old 04-21-2018, 04:35 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by calibal View Post
when i run postconf -c heck
Self inflicted. ^^^
 
  


Reply



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
LXer: How to resolve "fatal error: curses.h: No such file or directory" LXer Syndicated Linux News 1 03-16-2017 10:20 AM
fatal error: linsched.h: No such file or directory #include "linsched.h" navodi Linux - Newbie 7 07-04-2016 10:05 AM
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
[SOLVED] Replace a string @CURRANGE("***","***") to @CURRANGE("xxx","xxx") in a file mavadikarmayur Linux - Newbie 3 03-26-2012 08:32 AM
unable to debug ns-2.34 in Eclipse due to "No source available for main()" shaiq.pagal Linux - Software 10 07-17-2011 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:39 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
Open Source Consulting | Domain Registration