1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
|
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
#
|