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 file or directory
- Is this reproducible regardles of the target filesystem, i.e.
also for delivery to mbox files in other directories (mode 1777
is typically required for for the "dotlock protocol" to work).
- Is the "nobody" account specifically affected, or also other
accounts, i.e. what happens if you change "default_privs" to some
other account?
- Does maildir work better?
> 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)
Looks like RedHat "improved" Postfix, the OS or both...
--
Viktor.