OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Dumb question re: defaults in main.cf

From: Charles Marcus (CMarcusMedia-Brokers.com)
Date: Wed Apr 02 2008 - 06:40:44 CDT


Hi,

Before I go make these changes, I just want to make sure I understand
this correctly... I'm sure I do, but I've made dumb mistakes before...

If I compare the output of postconf -d and postconf -n, and comment out
any settings that are the same from main.cf, then the default setting
that is shown by the output of postconf -d will be active, and that
setting will no longer be shown in the output of postconf -n?

The reason I'm asking is, I don't remember UNcommenting some of these
settings, so if they were the default, why would they have been
UNcommented from the beginning? I started with ver 2.2.x, so is it
possible some of these were NOT defaults in the older version?

It is possible of course that I did but I honestly don't recall doing so...

Specifically, I currently have the following settings UNcommented in
main.cf, but what they all match the default setting as shown by
postconf -d:

alias_database
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib64/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 20
html_directory = /usr/share/doc/postfix-2.5.1/html
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.5.1/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions =
unknown_local_recipient_reject_code = 550
virtual_transport = virtual

So, again, my understanding is that I can simply/safely comment these
(above) lines/settings in main.cf, do postfix reload, and these settings
will no longer be shown in the output of postconf -n, but will still
contain these values?

Thanks,

--

Best regards,

Charles