On Tue, 2 Apr 2019 at 07:40, De Petter Mattheas < [email protected]> wrote:
> Hello > > > > Can somebody help me? > > > > So I have setup the nfs share on a windows server 2016 with nfs server > role. > > > > Security is set on the device ip of the postfix server read-write with > allow root access. > > > > In the main conf of postfix I have set the queue to the right dir > > > > queue_directory = /mnt/mail > > > > fstab is set as: > > 10.7.248.45:/Mailq /mnt/mail nfs defaults 0 0 > > > > When I start the postfix service it writes all the folder structure on the > share but fails to start with error. > > > > ● postfix.service - Postfix Mail Transport Agent > > Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; > vendor preset: enabled) > > Active: failed (Result: exit-code) since Tue 2019-04-02 08:15:59 CEST; > 1min 5s ago > > Process: 1730 ExecStopPost=/etc/postfix/system/cond_slp deregister > (code=exited, status=0/SUCCESS) > > Process: 1510 ExecStartPost=/etc/postfix/system/cond_slp register > (code=exited, status=0/SUCCESS) > > Process: 1508 ExecStartPost=/etc/postfix/system/wait_qmgr 60 > (code=exited, status=0/SUCCESS) > > Process: 1634 ExecStart=/usr/sbin/postfix start (code=exited, > status=1/FAILURE) > > Process: 1623 ExecStartPre=/etc/postfix/system/update_postmaps > (code=exited, status=0/SUCCESS) > > Process: 1622 ExecStartPre=/etc/postfix/system/update_chroot > (code=exited, status=0/SUCCESS) > > Process: 1621 ExecStartPre=/etc/postfix/system/config_postfix > (code=exited, status=0/SUCCESS) > > Process: 1620 ExecStartPre=/bin/echo Starting mail service (Postfix) > (code=exited, status=0/SUCCESS) > > Tasks: 0 (limit: 19660) > > CGroup: /system.slice/postfix.service > > > > Apr 02 08:15:57 eqx-postfix01 systemd[1]: Starting Postfix Mail Transport > Agent... > > Apr 02 08:15:57 eqx-postfix01 echo[1620]: Starting mail service (Postfix) > > Apr 02 08:15:57 eqx-postfix01 postfix[1634]: postsuper: fatal: > scan_dir_push: open directory defer: Permission denied > > Apr 02 08:15:57 eqx-postfix01 postfix/postsuper[1728]: fatal: > scan_dir_push: open directory defer: Permission denied > > Apr 02 08:15:58 eqx-postfix01 postfix/postfix-script[1729]: fatal: Postfix > integrity check failed! > > Apr 02 08:15:59 eqx-postfix01 systemd[1]: postfix.service: Control process > exited, code=exited status=1 > > Apr 02 08:15:59 eqx-postfix01 systemd[1]: Failed to start Postfix Mail > Transport Agent. > > Apr 02 08:15:59 eqx-postfix01 systemd[1]: postfix.service: Unit entered > failed state. > > Apr 02 08:15:59 eqx-postfix01 systemd[1]: postfix.service: Failed with > result 'exit-code'. > > > > > > Where or what am I doing wrong? > > Do I need to change other parameters in Main.cf as well? > > > > Please help I’m stuck on this. > > On my systems (Ubuntu 18.04) the default queue directory has: # ls /var/spool/postfix -ld drwxr-xr-x 20 root root 4096 Dec 15 07:05 /var/spool/postfix and many of the directories under it are owned by postfix, two of them (/var/spool/postfix/public and /var/spool/postfix/maildrop) with group postdrop. So I think - at the least - 'postfix' user must have r-x permissions on the queue directory.
