Postfix 默认配置

未改动,随时复制。

/etc/systemd/postfix@.service
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver)

Postfix - /etc/systemd/postfix@.service

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

[Unit]
Description=Postfix Mail Transport Agent (instance %i)
Documentation=man:postfix(1)
PartOf=postfix.service
Before=postfix.service
ReloadPropagatedFrom=postfix.service
After=network-online.targ…
19 行 • MD5: 4224e053... 查看 →
/etc/systemd/postfix.service
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) CentOS Stream 9

Postfix - /etc/systemd/postfix.service

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 CentOS Stream 9

[Unit]
Description=Postfix Mail Transport Agent
Conflicts=sendmail.service exim4.service
ConditionPathExists=/etc/postfix/main.cf

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true
ExecR…
13 行 • MD5: 0511e63a... 查看 →
/etc/postfix/master.cf.proto
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/master.cf.proto

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master" or
# on-line: http://www.postfix.org/master.5.html).
#
…
124 行 • MD5: 23609c98... 查看 →
/etc/postfix/main.cf.proto
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/main.cf.proto

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf"…
684 行 • MD5: bb3a2e40... 查看 →
/etc/postfix/main.cf
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/main.cf

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian …
44 行 • MD5: 8802fc88... 查看 →
/etc/postfix/master.cf
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/master.cf

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master" or
# on-line: http://www.postfix.org/master.5.html).
#
…
124 行 • MD5: 23609c98... 查看 →
/etc/postfix/dynamicmaps.cf
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/dynamicmaps.cf

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

sqlite	postfix-sqlite.so	dict_sqlite_open	
1 行 • MD5: 07a46543... 查看 →
/etc/postfix/postfix-script
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver)

Postfix - /etc/postfix/postfix-script

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

#!/bin/sh

#++
# NAME
#	postfix-script 1
# SUMMARY
#	execute Postfix administrative commands
# SYNOPSIS
#	\fBpostfix-script\fR \fIcommand\fR
# DESCRIPTION
#	The \fBpostfix-script\fR script executes P…
407 行 • MD5: ff3d2588... 查看 →
/etc/postfix/postfix-files
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver) Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/postfix-files

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

#
# Do not edit this file.
#
# This file controls the postfix-install script for installation of
# Postfix programs, configuration files and documentation, as well
# as the post-install script for se…
221 行 • MD5: b0336ad3... 查看 →
/etc/postfix/post-install
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver)

Postfix - /etc/postfix/post-install

📍 Debian 9 (Stretch), Debian 10 (Buster), Debian 11 (Bullseye), Debian 12 (Bookworm)

📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)

#!/bin/sh

# To view the formatted manual page of this file, type:
#	POSTFIXSOURCE/mantools/srctoman - post-install | nroff -man

#++
# NAME
#	post-install
# SUMMARY
#	Postfix post-installation scrip…
910 行 • MD5: ed83d3b1... 查看 →
/etc/postfix/makedefs.out
Postfix Debian 9 (Stretch) Ubuntu 18.04 LTS (Bionic Beaver)

Postfix - /etc/postfix/makedefs.out

📍 Debian 9 (Stretch)

📍 Ubuntu 18.04 LTS (Bionic Beaver)

# Do not edit -- this file documents how Postfix was built for your machine.
#----------------------------------------------------------------
# Start of summary of user-configurable 'make makefiles'…
64 行 • MD5: 093b260e... 查看 →
/etc/postfix/postfix-files.d/sqlite.files
Postfix Debian 9 (Stretch)

Postfix - /etc/postfix/postfix-files.d/sqlite.files

📍 Debian 9 (Stretch)

$shlib_directory/postfix-sqlite.so:f:root:-:755
$manpage_directory/man5/sqlite_table.5.gz:f:root:-:644
2 行 • MD5: 0f49c8f3... 查看 →
/etc/systemd/postfix-resolvconf.service
Postfix Debian 12 (Bookworm) Ubuntu 24.04 LTS (Noble Numbat)

Postfix - /etc/systemd/postfix-resolvconf.service

📍 Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 24.04 LTS (Noble Numbat)

[Unit]
Description=Copies updated resolv.conf to postfix chroot and restarts postfix.

[Service]
Type=simple
ExecStart=/etc/resolvconf/update-libc.d/postfix

[Install]
WantedBy=multi-user.target
9 行 • MD5: 65cdd286... 查看 →
/etc/systemd/postfix-resolvconf.path
Postfix Debian 12 (Bookworm) Ubuntu 24.04 LTS (Noble Numbat)

Postfix - /etc/systemd/postfix-resolvconf.path

📍 Debian 12 (Bookworm), Debian 13 (Trixie)

📍 Ubuntu 24.04 LTS (Noble Numbat)

[Unit]
Description=Watch for resolv.conf updates and restart postfix
ConditionPathExists=/etc/resolv.conf

[Path]
PathChanged=/etc/resolv.conf
Unit=postfix-resolvconf.service

[Install]
WantedBy=mult…
11 行 • MD5: dca3e745... 查看 →
/etc/postfix/virtual
Postfix Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/virtual

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

# VIRTUAL(5)                                                          VIRTUAL(5)
# 
# NAME
#        virtual - Postfix virtual alias table format
# 
# SYNOPSIS
#        postmap /etc/postfix/virtual
# …
324 行 • MD5: 1adaa58e... 查看 →
/etc/postfix/transport
Postfix Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/transport

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

# TRANSPORT(5)                                                      TRANSPORT(5)
# 
# NAME
#        transport - Postfix transport table format
# 
# SYNOPSIS
#        postmap /etc/postfix/transport
# …
317 行 • MD5: 81e28294... 查看 →
/etc/postfix/relocated
Postfix Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/relocated

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

# RELOCATED(5)                                                      RELOCATED(5)
# 
# NAME
#        relocated - Postfix relocated table format
# 
# SYNOPSIS
#        postmap /etc/postfix/relocated
# …
176 行 • MD5: 416be021... 查看 →
/etc/postfix/header_checks
Postfix Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/header_checks

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

# HEADER_CHECKS(5)                                              HEADER_CHECKS(5)
# 
# NAME
#        header_checks - Postfix built-in content inspection
# 
# SYNOPSIS
#        header_checks = pcre:/et…
549 行 • MD5: 646be960... 查看 →
/etc/postfix/generic
Postfix Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/generic

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

# GENERIC(5)                                                          GENERIC(5)
# 
# NAME
#        generic - Postfix generic table format
# 
# SYNOPSIS
#        postmap /etc/postfix/generic
# 
#    …
250 行 • MD5: 39c753b1... 查看 →
/etc/postfix/canonical
Postfix Red Hat Enterprise Linux 8 (Ootpa) Alpine Linux v3.21 CentOS Stream 9

Postfix - /etc/postfix/canonical

📍 Red Hat Enterprise Linux 8 (Ootpa), Red Hat Enterprise Linux 9 (Plow)

📍 Alpine Linux v3.21

📍 CentOS Stream 9

# CANONICAL(5)                                                      CANONICAL(5)
# 
# NAME
#        canonical - Postfix canonical table format
# 
# SYNOPSIS
#        postmap /etc/postfix/canonical
# …
307 行 • MD5: df6d08cb... 查看 →