On Wed, Jun 16, 2021 at 10:48:27PM -0400, Viktor Dukhovni wrote:
> 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.

I believe you. I should have mentioned that this used to work. So it
probably is OS-related rather than Postfix-specific.

Unfortunately, I don't have enough data to correlate it to any particular
package update or other event.

> 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=<20210617024002.B4A3FC7196@amnesiac.local>
>     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=<bogusalias@amnesiac.local>, 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: bogusalias@amnesiac.local
>     Delivered-To: bogusalias@amnesiac.local
>     Received: by amnesiac.local (Postfix, from userid 0)
>             id B4A3FC7196; Wed, 16 Jun 2021 22:40:02 -0400 (EDT)
>     To: bogusalias@amnesiac.local
>     From: ...@...
>     Subject: test
>     Message-Id: <20210617024002.B4A3FC7196@amnesiac.local>
>     Date: Wed, 16 Jun 2021 22:40:02 -0400 (EDT)
> 
>     hi
> 
> --
>     Viktor.

Reply via email to