----- Message from Jeremiah Rothschild <jerem...@franz.com> ---------
   Date: Wed, 16 Jun 2021 17:59:16 -0700
   From: Jeremiah Rothschild <jerem...@franz.com>
Subject: Re: Mail not being sent to file
     To: Postfix users <postfix-users@postfix.org>


On Wed, Jun 16, 2021 at 04:48:09PM -0700, Jeremiah Rothschild wrote:
On Wed, Jun 16, 2021 at 07:13:18PM -0400, Wietse Venema wrote:
> Is the 'lost file' problem reproducible?

Yes, the time gap is a red herring. First the issue was noticed in
production then I tested with this VM.

To triple check my sanity, I created a brand new VM and confirmed the
behavior.

So anyone should be able to easily reproduce this.

* Fresh CentOS 8.4 install
* Choose "Minimal" base environment
* Defaults for everything else

# 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

j


----- End message from Jeremiah Rothschild <jerem...@franz.com> -----

Confirmed and reproducible.

On RHEL 8:

[root@emp87 ~]# echo "somealias: /tmp/somefile" >> /etc/aliases && newaliases
[root@emp87 ~]# echo "test" | mail somealias@localhost
[root@emp87 ~]# ls /tmp/somefile
ls: cannot access '/tmp/somefile': No such file or directory

Jun 17 12:38:57 emp87 postfix/local[2333723]: B92E199511: to=<somealias@localhost>, relay=local, delay=0.02, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to file: /tmp/somefile)

On CentOS 7:

[root@emp75 ~]# echo "somealias: /tmp/somefile" >> /etc/aliases && newaliases
[root@emp75 ~]# echo "test" | mail somealias@localhost
[root@emp75 ~]# ls /tmp/somefile
/tmp/somefile (contents as expected)


Simon.

--
Simon Wilson
M: 0400 12 11 16

Reply via email to