The Problem still exists, unfortunately. As you can see in 1) I think this occurs if the mail has an attachment and it needs to be unpacked.
As you can see in 2) our users is amavis, so I assume this is correct. Right?
In 3) and 4) you can see files and directories and permissions under var/spool/amavisd/tmp/... It looks like the problem lies here. The file can't be unpacked without the permission to write in this directory.
Any help is appreciated. Thanks!
J.
1)
-bash-4.2# mlt |grep -i error
Feb 20 16:54:33 pepper postfix/dnsblog[15399]: warning: dnsblog_query: lookup error for DNS query 63.0.47.104.list.dnswl.org: Host or domain name not found. Name service error for name=63.0.47.104.list.dnswl.org type=A: Host not found, try again
Feb 20 16:54:40 pepper clamd[119]: /var/spool/amavisd/tmp/amavis-20170220T161117-09479-zEEhp8tR/parts/p006: Can't create temporary directory ERROR
Feb 20 16:54:40 pepper clamd[119]: /var/spool/amavisd/tmp/amavis-20170220T161117-09479-zEEhp8tR/parts/p002: Can't create temporary directory ERROR
^C
2)
-bash-4.2# ps aux |grep clamd
amavis 119 0.1 18.1 1120436 759488 ? Ssl 2016 356:52 /usr/sbin/clamd -c /etc/clamd.d/amavisd.conf --foreground=yes
3)
-bash-4.2# ls /var/spool/amavisd/tmp/ -la
insgesamt 16
drwxr-x--- 4 amavis amavis 4096 20. Feb 16:56 .
drwxr-x--- 7 amavis amavis 4096 20. Feb 16:49 ..
drwxr-x--- 3 amavis amavis 4096 20. Feb 16:11 amavis-20170220T161117-09479-zEEhp8tR
drwxr-x--- 3 amavis amavis 4096 20. Feb 16:11 amavis-20170220T161157-09482-46CE_rZp
-bash-4.2#
-bash-4.2#
-bash-4.2# ls /var/spool/amavisd/ -la
insgesamt 32
drwxr-x--- 7 amavis amavis 4096 20. Feb 16:49 .
drwxr-xr-x 10 root root 4096 7. Feb 05:29 ..
-rw------- 1 amavis amavis 97 20. Feb 16:49 .bash_history
drwxr-x--- 2 amavis amavis 4096 20. Feb 05:40 db
drwxr-x--- 2 amavis amavis 4096 20. Feb 05:01 quarantine
drwxr-x--- 2 amavis amavis 4096 20. Feb 05:53 .razor
drwx--x--- 2 amavis amavis 4096 6. Feb 17:27 .spamassassin
drwxr-x--- 4 amavis amavis 4096 20. Feb 16:56 tmp
4)
-bash-4.2# ls /var/spool/amavisd/tmp/amavis-20170220T161117-09479-zEEhp8tR -la
insgesamt 24
drwxr-x--- 3 amavis amavis 4096 20. Feb 16:11 .
drwxr-x--- 4 amavis amavis 4096 20. Feb 16:56 ..
-rw-r----- 1 amavis amavis 8294 20. Feb 16:56 email.txt
drwxr-x--- 2 amavis amavis 4096 20. Feb 16:56 parts