On Wed, Jun 16, 2021 at 05:59:16PM -0700, Jeremiah Rothschild wrote:
> So anyone should be able to easily reproduce this.
>
> * Fresh CentOS 8.4 install
> * Choose "Minimal" base environment
> * Defaults for everything else
You can debug further with:
http://www.postfix.org/DEBUG_README.html#auto_trace
http://www.postfix.org/DEBUG_README.html#screen
> # yum -y update
> # yum -y install postfix mailx
> # systemctl start postfix
> # echo "somealias: /tmp/somefile" >> /etc/aliases && newaliases
> # echo "test" | mail somealias@localhost
> # ls /tmp/somefile
The upstream Postfix distribution does not claim to have delivered
messages to a file without delivering them to that file. If your
vendor modified Postfix, or your OS discards writes for security
reasons, or ... that's not a result of upstream Postfix behaviour.
On my machine (latest snapshot, but the local(8) mailbox delivery code
has not changed in ages):
$ postconf mail_version
mail_version = 3.7-20210605
$ postmap -q bogusalias $(postconf -xh alias_maps)
/tmp/bogusalias
Jun 16 22:40:02 amnesiac postfix/pickup[8135]: B4A3FC7196: uid=0
from=<...@...>
Jun 16 22:40:02 amnesiac postfix/cleanup[9089]: B4A3FC7196:
message-id=<[email protected]>
Jun 16 22:40:02 amnesiac postfix/qmgr[76221]: B4A3FC7196: from=<...@...>,
size=295, nrcpt=1 (queue active)
Jun 16 22:40:02 amnesiac postfix/local[9091]: B4A3FC7196:
to=<[email protected]>, relay=local, delay=0.06, delays=0.04/0.02/0/0,
dsn=2.0.0, status=sent (delivered to file: /tmp/bogusalias)
Jun 16 22:40:02 amnesiac postfix/qmgr[76221]: B4A3FC7196: removed
$ cat /tmp/bogusalias
From ...@... Wed Jun 16 22:40:02 2021
Return-Path: <...@...>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: by amnesiac.local (Postfix, from userid 0)
id B4A3FC7196; Wed, 16 Jun 2021 22:40:02 -0400 (EDT)
To: [email protected]
From: ...@...
Subject: test
Message-Id: <[email protected]>
Date: Wed, 16 Jun 2021 22:40:02 -0400 (EDT)
hi
--
Viktor.