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/somefile > > I send a test which looks successful: > Jun 16 13:21:23 c8vm postfix/local[57869]: 72F0380292: > to=<somealias@localhost>, relay=local, delay=0.13, delays=0.09/0.01/0/0.02, > dsn=2.0.0, status=sent (delivered to file: /tmp/somefile) > > but it was not: > [root@c8vm ~]# ls -l /tmp/somefile > ls: cannot access '/tmp/somefile': No such file or directory > [root@c8vm ~]# ls -ld /tmp > 4 drwxrwxrwt. 10 root root 4096 Jun 16 13:38 /tmp/
According to your logs, Postfix delivers the file as (uid 65534 gid 65534). HOWEVER, you are looking at /tmp as a different user. Postfix assumes that /tmp is shared, that is, when Postfix writes a file to /tmp, then some other user (you) can access that same file by the same name. I suspect that your system may have per-user tmpfs. Wietse > The full verbose maillog can be viewed @ https://pastebin.com/raw/hAi1gCBA. > > The `postconf -n` and `postconf -Mf` outputs can be viewed @ > https://pastebin.com/raw/MDGB05CB. > > Thanks for any help! > > j >