Mail not being sent to file

2021-06-16 Thread Jeremiah Rothschild
Hello, I have an alias that is supposed to write to a file but it is not. * OS: CentOS 8.4.2105 x64 (fully updated) * Kernel: 4.18.0-305.3.1.el8.x86_64 * Postfix: 3.5.8-1.el8.x86_64 (default config w/ verbose logging) Very basic /etc/aliases: [root@c8vm ~]# cat /etc/aliases somealias: /tmp/somef

Re: Mail not being sent to file

2021-06-16 Thread Wietse Venema
Jeremiah Rothschild: > Hello, > > I have an alias that is supposed to write to a file but it is not. > > * OS: CentOS 8.4.2105 x64 (fully updated) > * Kernel: 4.18.0-305.3.1.el8.x86_64 > * Postfix: 3.5.8-1.el8.x86_64 (default config w/ verbose logging) > > Very basic /etc/aliases: > [root@c8vm ~

Re: Mail not being sent to file

2021-06-16 Thread Viktor Dukhovni
On Wed, Jun 16, 2021 at 01:51:37PM -0700, Jeremiah Rothschild wrote: > I have an alias that is supposed to write to a file but it is not. > > * OS: CentOS 8.4.2105 x64 (fully updated) > * Kernel: 4.18.0-305.3.1.el8.x86_64 > * Postfix: 3.5.8-1.el8.x86_64 (default config w/ verbose logging) > > Ve

Re: Mail not being sent to file

2021-06-16 Thread Jeremiah Rothschild
On Wed, Jun 16, 2021 at 05:23:20PM -0400, Wietse Venema wrote: > Jeremiah Rothschild: > > Hello, > > > > I have an alias that is supposed to write to a file but it is not. > > > > * OS: CentOS 8.4.2105 x64 (fully updated) > > * Kernel: 4.18.0-305.3.1.el8.x86_64 > > * Postfix: 3.5.8-1.el8.x86_64 (

Re: Mail not being sent to file

2021-06-16 Thread Jeremiah Rothschild
On Wed, Jun 16, 2021 at 05:33:33PM -0400, Viktor Dukhovni wrote: > On Wed, Jun 16, 2021 at 01:51:37PM -0700, Jeremiah Rothschild wrote: > > > I have an alias that is supposed to write to a file but it is not. > > > > * OS: CentOS 8.4.2105 x64 (fully updated) > > * Kernel: 4.18.0-305.3.1.el8.x86_6

Re: Mail not being sent to file

2021-06-16 Thread Wietse Venema
Jeremiah Rothschild: > /tmp is a separate filesystem: > [root@c8vm ~]# grep tmp /etc/fstab > /dev/mapper/rootvg-tmp /tmpext4defaults1 2 > [root@c8vm ~]# df -h /tmp > Filesystem Size Used Avail Use% Mounted on > /dev/mapper/rootvg-tmp 2.0G 6.1M 1.8G

Re: Mail not being sent to file

2021-06-16 Thread Bob Proulx
Jeremiah Rothschild wrote: > * OS: CentOS 8.4.2105 x64 (fully updated) I tested this on CentOS 7 and it worked okay for me. No problem. I don't know anything about CentOS 8. > [root@c8vm ~]# ls -l /tmp/somefile > ls: cannot access '/tmp/somefile': No such file or directory Is your postfix runn

Re: Mail not being sent to file

2021-06-16 Thread Jeremiah Rothschild
On Wed, Jun 16, 2021 at 07:13:18PM -0400, Wietse Venema wrote: > Jeremiah Rothschild: > > /tmp is a separate filesystem: > > [root@c8vm ~]# grep tmp /etc/fstab > > /dev/mapper/rootvg-tmp /tmpext4defaults1 2 > > [root@c8vm ~]# df -h /tmp > > Filesystem S

Re: Mail not being sent to file

2021-06-16 Thread Jeremiah Rothschild
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 tri

Re: Mail not being sent to file

2021-06-16 Thread Simon Wilson
- Message from Jeremiah Rothschild - Date: Wed, 16 Jun 2021 17:59:16 -0700 From: Jeremiah Rothschild Subject: Re: Mail not being sent to file To: Postfix users On Wed, Jun 16, 2021 at 04:48:09PM -0700, Jeremiah Rothschild wrote: On Wed, Jun 16, 2021 at 07:13:18PM -040

Re: Mail not being sent to file

2021-06-16 Thread Viktor Dukhovni
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.htm

Re: Mail not being sent to file

2021-06-16 Thread Viktor Dukhovni
On Thu, Jun 17, 2021 at 12:42:43PM +1000, Simon Wilson wrote: > 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 fil

Re: Mail not being sent to file

2021-06-16 Thread Bastian Blank
On Wed, Jun 16, 2021 at 05:59:16PM -0700, Jeremiah Rothschild wrote: > 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 everyt

Re: Mail not being sent to file

2021-06-16 Thread Jeremiah Rothschild
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