Print Out Version of Postfix and Non-Default Configuration Values

Posted January 16, 2004 by Michilimackinac in Postfix

These commands are useful when attempting to get help on the postfix mailing list, etc.

Print out the version of postfix running on the system:

% postconf -d mail_version
mail_version = 2.0.16

This will show the non-default values of the postfix configuration. Running postconf with no options will show the entire configuration which, as of postfix 2.0.16, will show about 280 configuration options. postconf -n will show the shorter list of values that were modified to get your configuration running:

% postconf -n
mydomain =
mynetworks =,
myorigin = $mydomain
relay_domains = $mydestination,,
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/client_whitelist, reject_rbl_client
smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access hash:/etc/postfix/recipient_checks, reject_unauth_destination
smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_hostname, reject_invalid_hostname

Of course, you can always compare with the default value of an option:

% postconf -d smtpd_client_restrictions
smtpd_client_restrictions =

There are not any smtpd_client_restrictions by default.

The Conversation

Follow the reactions below and share your own thoughts.