LINUXOR.SK ... open source notes ...

Email - Postfix transport, mailbox server

category: solutionz · date: 2019-12-31 · updated: 2026-10-02 · author: LALA

Email Solution · Config document · referenced from Mailbox server

The transport table of the mailbox server: one line that sends every message for the site's own domain to the dovecot service of master.cf instead of to another SMTP server.

ItemValue
Path on the server/etc/postfix/transport
Shown hereDC2-A-VCMSX002
Counterparttransport, internal servers
Referenced bytransport_maps = hash:/etc/postfix/transport in main.cf
Activated withpostmap /etc/postfix/transport, which a hash: table needs; the install notes show only the edit
SoftwarePostfix 2.10.1 from the RHEL 7 repository

The file

ini
###################################################################################################
# Domain/mail_address   Transport
###################################################################################################
# Delivery transport to Internal Email Server for email messages for domain @ad-dc2.example.net
ad-dc2.example.net          dovecot

Differences from the internal pair

HostLineValue
DC2-A-VCMSX001, DC2-B-VCMSX001ad-dc2.example.netsmtp:[10.12.19.43], forward to the mailbox server
DC2-A-VCMSX002ad-dc2.example.netdovecot, deliver here

The comment line is the one of the pair's file and was not changed: on this server the transport is the final delivery, not a hop to an internal email server. The first concept of 2017-2018, with one internal server per site, had the same line with ad.example.net on that one server.

Checked against Postfix 3.11.7

As builtToday
transport_maps = hash:/etc/postfix/transportthe table format is unchanged; on RHEL 10, which has no Berkeley DB, the type must be lmdb:
transport dovecot, a pipe to the LDAstill works; Dovecot recommends LMTP for delivery

With LMTP the right-hand side would name the lmtp transport and Dovecot's socket instead of a pipe service.

← solutionz