Index: npl/mailserver/netqmail/qmail.permissions
===================================================================
--- npl/mailserver/netqmail/qmail.permissions	(revision c5c522c7ca74a4c1725ca5e3fe0bdcadff80e49a)
+++ npl/mailserver/netqmail/qmail.permissions	(revision c5c522c7ca74a4c1725ca5e3fe0bdcadff80e49a)
@@ -0,0 +1,191 @@
+# qmail permissions - generated by Guilherme Balena Versiani
+# used GNU stat 5.0 by Michael Meskes
+
+qmail_permissions() {
+  chown root.qmail /var/qmail; chmod 755 /var/qmail
+  chown root.root /var/qmail/rc; chmod 700 /var/qmail/rc
+  chown root.qmail /var/qmail/bin; chmod 755 /var/qmail/bin
+  chown root.qmail /var/qmail/bin/elq; chmod 755 /var/qmail/bin/elq
+  chown root.qmail /var/qmail/bin/pinq; chmod 755 /var/qmail/bin/pinq
+  chown root.qmail /var/qmail/bin/qail; chmod 755 /var/qmail/bin/qail
+  chown root.root /var/qmail/bin/checkpassword; chmod 700 /var/qmail/bin/checkpassword
+  chown root.qmail /var/qmail/bin/qmail-showctl; chmod 755 /var/qmail/bin/qmail-showctl
+  chown root.root /var/qmail/bin/printforward; chmod 755 /var/qmail/bin/printforward
+  chown root.qmail /var/qmail/bin/datemail; chmod 755 /var/qmail/bin/datemail
+  chown root.qmail /var/qmail/bin/condredirect; chmod 755 /var/qmail/bin/condredirect
+  chown root.qmail /var/qmail/bin/qsmhook; chmod 755 /var/qmail/bin/qsmhook
+  chown root.root /var/qmail/bin/dot-forward; chmod 755 /var/qmail/bin/dot-forward
+  chown root.qmail /var/qmail/bin/qbiff; chmod 755 /var/qmail/bin/qbiff
+  chown root.qmail /var/qmail/bin/qreceipt; chmod 755 /var/qmail/bin/qreceipt
+  chown root.qmail /var/qmail/bin/splogger; chmod 711 /var/qmail/bin/splogger
+  chown root.root /var/qmail/bin/newaliases; chmod 755 /var/qmail/bin/newaliases
+  chown root.root /var/qmail/bin/qmail-smtpd-conf; chmod 755 /var/qmail/bin/qmail-smtpd-conf
+  chown root.qmail /var/qmail/bin/mailsubj; chmod 755 /var/qmail/bin/mailsubj
+  chown root.qmail /var/qmail/bin/tcp-env; chmod 755 /var/qmail/bin/tcp-env
+  chown root.root /var/qmail/bin/qmail-delivery-conf; chmod 755 /var/qmail/bin/qmail-delivery-conf
+  chown root.root /var/qmail/bin/setmaillist; chmod 755 /var/qmail/bin/setmaillist
+  chown root.root /var/qmail/bin/qmail-pop3d-conf; chmod 755 /var/qmail/bin/qmail-pop3d-conf
+  chown root.qmail /var/qmail/bin/qmail-clean; chmod 711 /var/qmail/bin/qmail-clean
+  chown root.qmail /var/qmail/bin/qmail-getpw; chmod 711 /var/qmail/bin/qmail-getpw
+  chown root.qmail /var/qmail/bin/qmail-local; chmod 711 /var/qmail/bin/qmail-local
+  chown root.qmail /var/qmail/bin/qmail-pop3d; chmod 755 /var/qmail/bin/qmail-pop3d
+  chown root.qmail /var/qmail/bin/qmail-popup; chmod 711 /var/qmail/bin/qmail-popup
+  chown root.qmail /var/qmail/bin/qmail-qmqpc; chmod 755 /var/qmail/bin/qmail-qmqpc
+  chown root.qmail /var/qmail/bin/qmail-qmqpd; chmod 755 /var/qmail/bin/qmail-qmqpd
+  chown root.qmail /var/qmail/bin/qmail-qmtpd; chmod 755 /var/qmail/bin/qmail-qmtpd
+  chown root.qmail /var/qmail/bin/qmail-qread; chmod 755 /var/qmail/bin/qmail-qread
+  chown root.qmail /var/qmail/bin/qmail-qstat; chmod 755 /var/qmail/bin/qmail-qstat
+  chown qmailq.qmail /var/qmail/bin/qmail-queue; chmod 4711 /var/qmail/bin/qmail-queue
+  chown root.qmail /var/qmail/bin/qmail-smtpd; chmod 755 /var/qmail/bin/qmail-smtpd
+  chown root.qmail /var/qmail/bin/qmail-tcpok; chmod 755 /var/qmail/bin/qmail-tcpok
+  chown root.qmail /var/qmail/bin/qmail-tcpto; chmod 755 /var/qmail/bin/qmail-tcpto
+  chown root.qmail /var/qmail/bin/qmail-start; chmod 700 /var/qmail/bin/qmail-start
+  chown root.root /var/qmail/bin/newinclude; chmod 755 /var/qmail/bin/newinclude
+  chown root.root /var/qmail/bin/fastforward; chmod 755 /var/qmail/bin/fastforward
+  chown root.root /var/qmail/bin/config; chmod 755 /var/qmail/bin/config
+  chown root.qmail /var/qmail/bin/maildir2mbox; chmod 755 /var/qmail/bin/maildir2mbox
+  chown root.qmail /var/qmail/bin/forward; chmod 755 /var/qmail/bin/forward
+  chown root.root /var/qmail/bin/qmail-lint; chmod 755 /var/qmail/bin/qmail-lint
+  chown root.qmail /var/qmail/bin/qmail-newu; chmod 700 /var/qmail/bin/qmail-newu
+  chown root.qmail /var/qmail/bin/qmail-pw2u; chmod 711 /var/qmail/bin/qmail-pw2u
+  chown root.qmail /var/qmail/bin/qmail-send; chmod 711 /var/qmail/bin/qmail-send
+  chown root.qmail /var/qmail/bin/except; chmod 755 /var/qmail/bin/except
+  chown root.qmail /var/qmail/bin/qmail-inject; chmod 755 /var/qmail/bin/qmail-inject
+  chown root.qmail /var/qmail/bin/maildirwatch; chmod 755 /var/qmail/bin/maildirwatch
+  chown root.qmail /var/qmail/bin/qmail-lspawn; chmod 700 /var/qmail/bin/qmail-lspawn
+  chown root.qmail /var/qmail/bin/qmail-newmrh; chmod 700 /var/qmail/bin/qmail-newmrh
+  chown root.root /var/qmail/bin/config-fast; chmod 755 /var/qmail/bin/config-fast
+  chown root.root /var/qmail/bin/setforward; chmod 755 /var/qmail/bin/setforward
+  chown root.root /var/qmail/bin/printmaillist; chmod 755 /var/qmail/bin/printmaillist
+  chown root.qmail /var/qmail/bin/maildirmake; chmod 755 /var/qmail/bin/maildirmake
+  chown root.qmail /var/qmail/bin/qmail-remote; chmod 711 /var/qmail/bin/qmail-remote
+  chown root.qmail /var/qmail/bin/qmail-rspawn; chmod 711 /var/qmail/bin/qmail-rspawn
+  chown root.qmail /var/qmail/bin/bouncesaying; chmod 755 /var/qmail/bin/bouncesaying
+  chown root.qmail /var/qmail/bin/sendmail; chmod 755 /var/qmail/bin/sendmail
+  chown root.root /var/qmail/bin/qmail-qmtpd-conf; chmod 755 /var/qmail/bin/qmail-qmtpd-conf
+  chown root.qmail /var/qmail/bin/predate; chmod 755 /var/qmail/bin/predate
+  chown root.qmail /var/qmail/bin/preline; chmod 755 /var/qmail/bin/preline
+  chown root.root /var/qmail/bin/qmail-qmqpd-conf; chmod 755 /var/qmail/bin/qmail-qmqpd-conf
+  chown root.qmail /var/qmail/boot; chmod 755 /var/qmail/boot
+  chown root.qmail /var/qmail/boot/binm1+df; chmod 755 /var/qmail/boot/binm1+df
+  chown root.qmail /var/qmail/boot/binm2+df; chmod 755 /var/qmail/boot/binm2+df
+  chown root.qmail /var/qmail/boot/binm3+df; chmod 755 /var/qmail/boot/binm3+df
+  chown root.qmail /var/qmail/boot/home; chmod 755 /var/qmail/boot/home
+  chown root.qmail /var/qmail/boot/proc; chmod 755 /var/qmail/boot/proc
+  chown root.qmail /var/qmail/boot/binm1; chmod 755 /var/qmail/boot/binm1
+  chown root.qmail /var/qmail/boot/binm2; chmod 755 /var/qmail/boot/binm2
+  chown root.qmail /var/qmail/boot/binm3; chmod 755 /var/qmail/boot/binm3
+  chown root.qmail /var/qmail/boot/home+df; chmod 755 /var/qmail/boot/home+df
+  chown root.qmail /var/qmail/boot/proc+df; chmod 755 /var/qmail/boot/proc+df
+  chown root.qmail /var/qmail/control; chmod 755 /var/qmail/control
+  chown alias.qmail /var/qmail/alias; chmod 2755 /var/qmail/alias
+  chown qmailq.qmail /var/qmail/queue; chmod 750 /var/qmail/queue
+  chown qmailq.qmail /var/qmail/queue/pid; chmod 700 /var/qmail/queue/pid
+  chown qmails.qmail /var/qmail/queue/info; chmod 700 /var/qmail/queue/info
+  chown qmails.qmail /var/qmail/queue/info/0; chmod 700 /var/qmail/queue/info/0
+  chown qmails.qmail /var/qmail/queue/info/1; chmod 700 /var/qmail/queue/info/1
+  chown qmails.qmail /var/qmail/queue/info/2; chmod 700 /var/qmail/queue/info/2
+  chown qmails.qmail /var/qmail/queue/info/3; chmod 700 /var/qmail/queue/info/3
+  chown qmails.qmail /var/qmail/queue/info/4; chmod 700 /var/qmail/queue/info/4
+  chown qmails.qmail /var/qmail/queue/info/5; chmod 700 /var/qmail/queue/info/5
+  chown qmails.qmail /var/qmail/queue/info/6; chmod 700 /var/qmail/queue/info/6
+  chown qmails.qmail /var/qmail/queue/info/7; chmod 700 /var/qmail/queue/info/7
+  chown qmails.qmail /var/qmail/queue/info/8; chmod 700 /var/qmail/queue/info/8
+  chown qmails.qmail /var/qmail/queue/info/9; chmod 700 /var/qmail/queue/info/9
+  chown qmails.qmail /var/qmail/queue/info/10; chmod 700 /var/qmail/queue/info/10
+  chown qmails.qmail /var/qmail/queue/info/11; chmod 700 /var/qmail/queue/info/11
+  chown qmails.qmail /var/qmail/queue/info/12; chmod 700 /var/qmail/queue/info/12
+  chown qmails.qmail /var/qmail/queue/info/13; chmod 700 /var/qmail/queue/info/13
+  chown qmails.qmail /var/qmail/queue/info/14; chmod 700 /var/qmail/queue/info/14
+  chown qmails.qmail /var/qmail/queue/info/15; chmod 700 /var/qmail/queue/info/15
+  chown qmails.qmail /var/qmail/queue/info/16; chmod 700 /var/qmail/queue/info/16
+  chown qmails.qmail /var/qmail/queue/info/17; chmod 700 /var/qmail/queue/info/17
+  chown qmails.qmail /var/qmail/queue/info/18; chmod 700 /var/qmail/queue/info/18
+  chown qmails.qmail /var/qmail/queue/info/19; chmod 700 /var/qmail/queue/info/19
+  chown qmails.qmail /var/qmail/queue/info/20; chmod 700 /var/qmail/queue/info/20
+  chown qmails.qmail /var/qmail/queue/info/21; chmod 700 /var/qmail/queue/info/21
+  chown qmails.qmail /var/qmail/queue/info/22; chmod 700 /var/qmail/queue/info/22
+  chown qmailq.qmail /var/qmail/queue/intd; chmod 700 /var/qmail/queue/intd
+  chown qmailq.qmail /var/qmail/queue/lock; chmod 750 /var/qmail/queue/lock
+  chown qmailr.qmail /var/qmail/queue/lock/tcpto; chmod 644 /var/qmail/queue/lock/tcpto
+  chown qmails.qmail /var/qmail/queue/lock/sendmutex; chmod 600 /var/qmail/queue/lock/sendmutex
+  chown qmails.qmail /var/qmail/queue/lock/trigger; chmod 622 /var/qmail/queue/lock/trigger
+  chown qmailq.qmail /var/qmail/queue/mess; chmod 750 /var/qmail/queue/mess
+  chown qmailq.qmail /var/qmail/queue/mess/0; chmod 750 /var/qmail/queue/mess/0
+  chown qmailq.qmail /var/qmail/queue/mess/1; chmod 750 /var/qmail/queue/mess/1
+  chown qmailq.qmail /var/qmail/queue/mess/2; chmod 750 /var/qmail/queue/mess/2
+  chown qmailq.qmail /var/qmail/queue/mess/3; chmod 750 /var/qmail/queue/mess/3
+  chown qmailq.qmail /var/qmail/queue/mess/4; chmod 750 /var/qmail/queue/mess/4
+  chown qmailq.qmail /var/qmail/queue/mess/5; chmod 750 /var/qmail/queue/mess/5
+  chown qmailq.qmail /var/qmail/queue/mess/6; chmod 750 /var/qmail/queue/mess/6
+  chown qmailq.qmail /var/qmail/queue/mess/7; chmod 750 /var/qmail/queue/mess/7
+  chown qmailq.qmail /var/qmail/queue/mess/8; chmod 750 /var/qmail/queue/mess/8
+  chown qmailq.qmail /var/qmail/queue/mess/9; chmod 750 /var/qmail/queue/mess/9
+  chown qmailq.qmail /var/qmail/queue/mess/10; chmod 750 /var/qmail/queue/mess/10
+  chown qmailq.qmail /var/qmail/queue/mess/11; chmod 750 /var/qmail/queue/mess/11
+  chown qmailq.qmail /var/qmail/queue/mess/12; chmod 750 /var/qmail/queue/mess/12
+  chown qmailq.qmail /var/qmail/queue/mess/13; chmod 750 /var/qmail/queue/mess/13
+  chown qmailq.qmail /var/qmail/queue/mess/14; chmod 750 /var/qmail/queue/mess/14
+  chown qmailq.qmail /var/qmail/queue/mess/15; chmod 750 /var/qmail/queue/mess/15
+  chown qmailq.qmail /var/qmail/queue/mess/16; chmod 750 /var/qmail/queue/mess/16
+  chown qmailq.qmail /var/qmail/queue/mess/17; chmod 750 /var/qmail/queue/mess/17
+  chown qmailq.qmail /var/qmail/queue/mess/18; chmod 750 /var/qmail/queue/mess/18
+  chown qmailq.qmail /var/qmail/queue/mess/19; chmod 750 /var/qmail/queue/mess/19
+  chown qmailq.qmail /var/qmail/queue/mess/20; chmod 750 /var/qmail/queue/mess/20
+  chown qmailq.qmail /var/qmail/queue/mess/21; chmod 750 /var/qmail/queue/mess/21
+  chown qmailq.qmail /var/qmail/queue/mess/22; chmod 750 /var/qmail/queue/mess/22
+  chown qmailq.qmail /var/qmail/queue/todo; chmod 750 /var/qmail/queue/todo
+  chown qmails.qmail /var/qmail/queue/local; chmod 700 /var/qmail/queue/local
+  chown qmails.qmail /var/qmail/queue/local/0; chmod 700 /var/qmail/queue/local/0
+  chown qmails.qmail /var/qmail/queue/local/1; chmod 700 /var/qmail/queue/local/1
+  chown qmails.qmail /var/qmail/queue/local/2; chmod 700 /var/qmail/queue/local/2
+  chown qmails.qmail /var/qmail/queue/local/3; chmod 700 /var/qmail/queue/local/3
+  chown qmails.qmail /var/qmail/queue/local/4; chmod 700 /var/qmail/queue/local/4
+  chown qmails.qmail /var/qmail/queue/local/5; chmod 700 /var/qmail/queue/local/5
+  chown qmails.qmail /var/qmail/queue/local/6; chmod 700 /var/qmail/queue/local/6
+  chown qmails.qmail /var/qmail/queue/local/7; chmod 700 /var/qmail/queue/local/7
+  chown qmails.qmail /var/qmail/queue/local/8; chmod 700 /var/qmail/queue/local/8
+  chown qmails.qmail /var/qmail/queue/local/9; chmod 700 /var/qmail/queue/local/9
+  chown qmails.qmail /var/qmail/queue/local/10; chmod 700 /var/qmail/queue/local/10
+  chown qmails.qmail /var/qmail/queue/local/11; chmod 700 /var/qmail/queue/local/11
+  chown qmails.qmail /var/qmail/queue/local/12; chmod 700 /var/qmail/queue/local/12
+  chown qmails.qmail /var/qmail/queue/local/13; chmod 700 /var/qmail/queue/local/13
+  chown qmails.qmail /var/qmail/queue/local/14; chmod 700 /var/qmail/queue/local/14
+  chown qmails.qmail /var/qmail/queue/local/15; chmod 700 /var/qmail/queue/local/15
+  chown qmails.qmail /var/qmail/queue/local/16; chmod 700 /var/qmail/queue/local/16
+  chown qmails.qmail /var/qmail/queue/local/17; chmod 700 /var/qmail/queue/local/17
+  chown qmails.qmail /var/qmail/queue/local/18; chmod 700 /var/qmail/queue/local/18
+  chown qmails.qmail /var/qmail/queue/local/19; chmod 700 /var/qmail/queue/local/19
+  chown qmails.qmail /var/qmail/queue/local/20; chmod 700 /var/qmail/queue/local/20
+  chown qmails.qmail /var/qmail/queue/local/21; chmod 700 /var/qmail/queue/local/21
+  chown qmails.qmail /var/qmail/queue/local/22; chmod 700 /var/qmail/queue/local/22
+  chown qmails.qmail /var/qmail/queue/bounce; chmod 700 /var/qmail/queue/bounce
+  chown qmails.qmail /var/qmail/queue/remote; chmod 700 /var/qmail/queue/remote
+  chown qmails.qmail /var/qmail/queue/remote/0; chmod 700 /var/qmail/queue/remote/0
+  chown qmails.qmail /var/qmail/queue/remote/1; chmod 700 /var/qmail/queue/remote/1
+  chown qmails.qmail /var/qmail/queue/remote/2; chmod 700 /var/qmail/queue/remote/2
+  chown qmails.qmail /var/qmail/queue/remote/3; chmod 700 /var/qmail/queue/remote/3
+  chown qmails.qmail /var/qmail/queue/remote/4; chmod 700 /var/qmail/queue/remote/4
+  chown qmails.qmail /var/qmail/queue/remote/5; chmod 700 /var/qmail/queue/remote/5
+  chown qmails.qmail /var/qmail/queue/remote/6; chmod 700 /var/qmail/queue/remote/6
+  chown qmails.qmail /var/qmail/queue/remote/7; chmod 700 /var/qmail/queue/remote/7
+  chown qmails.qmail /var/qmail/queue/remote/8; chmod 700 /var/qmail/queue/remote/8
+  chown qmails.qmail /var/qmail/queue/remote/9; chmod 700 /var/qmail/queue/remote/9
+  chown qmails.qmail /var/qmail/queue/remote/10; chmod 700 /var/qmail/queue/remote/10
+  chown qmails.qmail /var/qmail/queue/remote/11; chmod 700 /var/qmail/queue/remote/11
+  chown qmails.qmail /var/qmail/queue/remote/12; chmod 700 /var/qmail/queue/remote/12
+  chown qmails.qmail /var/qmail/queue/remote/13; chmod 700 /var/qmail/queue/remote/13
+  chown qmails.qmail /var/qmail/queue/remote/14; chmod 700 /var/qmail/queue/remote/14
+  chown qmails.qmail /var/qmail/queue/remote/15; chmod 700 /var/qmail/queue/remote/15
+  chown qmails.qmail /var/qmail/queue/remote/16; chmod 700 /var/qmail/queue/remote/16
+  chown qmails.qmail /var/qmail/queue/remote/17; chmod 700 /var/qmail/queue/remote/17
+  chown qmails.qmail /var/qmail/queue/remote/18; chmod 700 /var/qmail/queue/remote/18
+  chown qmails.qmail /var/qmail/queue/remote/19; chmod 700 /var/qmail/queue/remote/19
+  chown qmails.qmail /var/qmail/queue/remote/20; chmod 700 /var/qmail/queue/remote/20
+  chown qmails.qmail /var/qmail/queue/remote/21; chmod 700 /var/qmail/queue/remote/21
+  chown qmails.qmail /var/qmail/queue/remote/22; chmod 700 /var/qmail/queue/remote/22
+  chown root.qmail /var/qmail/users; chmod 755 /var/qmail/users
+  chown root.root /var/qmail/service; chmod 755 /var/qmail/service
+  chown qmaill /var/log/qmail; chmod 755 /var/log/qmail
+}
+
