From: Michael Tokarev <mjt@tls.msk.ru>
Subject: Debian-specific defaults for main.cf and master.cf
Date: Thu, 19 Dec 2024 22:37:11 +0300
Updated: Tue, 28 Oct 2025 10:01:59 +0300
Forwarded: not-needed

Change a few parameters to match Debian defaults.

diff --git a/conf/main.cf b/conf/main.cf
--- a/conf/main.cf
+++ b/conf/main.cf
@@ -53,3 +53,3 @@ compatibility_level = 3.10
 #
-queue_directory = /var/spool/postfix
+#queue_directory = /var/spool/postfix
 
@@ -58,3 +58,3 @@ queue_directory = /var/spool/postfix
 #
-command_directory = /usr/sbin
+#command_directory = /usr/sbin
 
@@ -64,3 +64,3 @@ command_directory = /usr/sbin
 #
-daemon_directory = /usr/libexec/postfix
+#daemon_directory = /usr/lib/postfix/sbin
 
@@ -70,3 +70,3 @@ daemon_directory = /usr/libexec/postfix
 #
-data_directory = /var/lib/postfix
+#data_directory = /var/lib/postfix
 
@@ -81,3 +81,3 @@ data_directory = /var/lib/postfix
 #
-mail_owner = postfix
+#mail_owner = postfix
 
@@ -90,2 +90,10 @@ mail_owner = postfix
 
+# The Internet protocols Postfix will attempt to use when making or
+# accepting connections.  Specify one or more of "ipv4" or "ipv6",
+# separated by whitespace or commas.  The form "all" is equivalent
+# to "ipv4, ipv6".
+#
+#inet_protocools = ipv4
+inet_protocols = all
+
 # INTERNET HOST AND DOMAIN NAMES
@@ -120,2 +128,7 @@ mail_owner = postfix
 #
+# Debian specific:  Specifying a file name here will cause the first
+# line of that file to be used as the name.  The Debian default is
+# /etc/mailname.
+#
+myorigin = /etc/mailname
 #myorigin = $myhostname
@@ -470,4 +483,4 @@ unknown_local_recipient_reject_code = 550
 #
-#mailbox_command = /some/where/procmail
-#mailbox_command = /some/where/procmail -a "$EXTENSION"
+#mailbox_command = /usr/bin/procmail
+#mailbox_command = /usr/bin/procmail -a "$EXTENSION"
 
@@ -578,2 +591,3 @@ unknown_local_recipient_reject_code = 550
 #smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
+smtpd_banner = $myhostname ESMTP $mail_name (@DEB_VENDOR@)
 
@@ -650,3 +664,3 @@ debugger_command =
 # 
-sendmail_path =
+#sendmail_path = /usr/sbin/sendmail
 
@@ -655,3 +669,3 @@ sendmail_path =
 #
-newaliases_path =
+#newaliases_path = /usr/bin/newaliases
 
@@ -660,3 +674,3 @@ newaliases_path =
 # 
-mailq_path =
+#mailq_path = /usr/bin/mailq
 
@@ -666,3 +680,3 @@ mailq_path =
 #
-setgid_group =
+#setgid_group = postdrop
 
@@ -670,3 +684,3 @@ setgid_group =
 #
-html_directory =
+#html_directory = /usr/share/doc/postfix/html
 
@@ -674,14 +688,15 @@ html_directory =
 #
-manpage_directory =
+#manpage_directory = /usr/share/man
 
-# sample_directory: The location of the Postfix sample configuration files.
-# This parameter is obsolete as of Postfix 2.1.
+# readme_directory: The location of the Postfix README files.
 #
-sample_directory =
+#readme_directory = /usr/share/doc/postfix
 
-# readme_directory: The location of the Postfix README files.
+# shlib_directory: The location of the Postfix dynamically-linked libraries.
+#
+#shlib_directory = /usr/lib/postfix
+
+# meta_directory: The location of the Postfix non-executable files
+# that are shared among all instances.
 #
-readme_directory =
-inet_protocols = ipv4
-shlib_directory = /usr/lib/postfix/${mail_version}
-meta_directory = /etc/postfix
+#meta_directory = /etc/postfix
diff --git a/conf/master.cf b/conf/master.cf
--- a/conf/master.cf
+++ b/conf/master.cf
@@ -99,3 +99,3 @@ postlog   unix-dgram n  -       n       -       1       postlogd
 #maildrop  unix  -       n       n       -       -       pipe
-#  flags=DRXhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
+#  flags=DRXhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
 #
@@ -142,3 +142,3 @@ postlog   unix-dgram n  -       n       -       1       postlogd
 #bsmtp     unix  -       n       n       -       -       pipe
-#  flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
+#  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -f $sender $nexthop $recipient
 #
