Found a solution to my problem in archive http://postfix.1071664.n5.nabble.com/scan-dir-push-open-directory-defer-Permission-denied-td90566.html
thanks Witse Met vriendelijke groeten Kind regards De Petter Mattheas Technical support engineer - projects team IT-Department Jan De Nul Dredging N.V. T +32 (0)53 73 95 53 F +32 (0)53 21 00 31 www.jandenul.com<http://www.jandenul.com/> From: De Petter Mattheas Sent: 02 April 2019 08:39 To: Postfix users <postfix-users@postfix.org> Subject: nfs as storage for mail queue 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. Met vriendelijke groeten Kind regards De Petter Mattheas Technical support engineer - projects team IT-Department Jan De Nul Dredging N.V. T +32 (0)53 73 95 53 F +32 (0)53 21 00 31 www.jandenul.com<http://www.jandenul.com/> ************************************************************ Any reaction to this e-mail or any other mail, including any files transmitted therewith to sender's e-mail address(es) shall be dealt with not as private, but as business communication(s) and shall be registered as such. ************************************************************