Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

postfix reload not reading main.cf

Status
Not open for further replies.

drejoh

Programmer
Aug 24, 2005
2
US
I just replaced sendmail with postfix on my Fedora Core 4 server and I'm having a problem with the configuration file.

After adding an entry (smtpd_sasl_auth_enable=yes) or modifying the value of an existing entry (debug_peer_level=1) in main.cf, I issue the command postfix reload. The log file shows a successful refresh. But, when I issue the command postconf -d | grep <?>, the new value is not set. It appears that the file main.cf is not being referenced during the reload.

Results of postconf -d | grep smtpd_sasl_auth_enable:
smtpd_sasl_auth_enable=no (default)

Results of postconf -d | grep debug_peer_level:
debug_peer_level=2 (original value in main.cf)

I issued the command postconf -e "smtpd_sasl_auth_enable=yes" to test if the main.cf file was being recognized and the entry was added.

I've also rebooted the server.

Can someone help me figure out what's going on.
 
From "man postconf":
-d Print default parameter settings instead of actual settings.

Try "postconf | grep smtpd_sasl_auth_enable" instead.

 
I found that the postfix reload was indeed working. Postconf -d diplays defaults and Postconf -n displays overrides.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top