summaryrefslogtreecommitdiff
path: root/src/hier.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-18 15:15:18 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-18 15:15:18 +0200
commit7b4d3ab22988d021d5f12b81aec746f7e486fa52 (patch)
tree651e78e316411a39baadadb1cfaca450e1351c7f /src/hier.c
parent25f74781424d5e13f0211c08cce8c2a1d60b9aec (diff)
update to 4.3.09
Diffstat (limited to 'src/hier.c')
-rw-r--r--src/hier.c33
1 files changed, 23 insertions, 10 deletions
diff --git a/src/hier.c b/src/hier.c
index 5169912..d628c05 100644
--- a/src/hier.c
+++ b/src/hier.c
@@ -1,4 +1,5 @@
#include "auto_qmail.h"
+#include "auto_queue.h"
#include "auto_split.h"
#include "auto_uids.h"
#include "fmt.h"
@@ -14,7 +15,7 @@ void dsplit(char *base,int uid,int mode) /* base must be under 100 bytes */
char *x;
unsigned long i;
- d(auto_qmail,base,uid,auto_gidq,mode);
+ d(auto_queue,base,uid,auto_gidq,mode);
for (i = 0; i < auto_split; ++i) {
x = buf;
@@ -23,22 +24,26 @@ void dsplit(char *base,int uid,int mode) /* base must be under 100 bytes */
x += fmt_ulong(x,i);
*x = 0;
- d(auto_qmail,buf,uid,auto_gidq,mode);
+ d(auto_queue,buf,uid,auto_gidq,mode);
}
}
void hier()
{
- h(auto_qmail,auto_uido,auto_gidq,0755);
+ h(auto_qmail,auto_queue,auto_uido,auto_gidq,0755);
+
+ /* s/qmail main directory */
d(auto_qmail,"control",auto_uido,auto_gidq,0755);
d(auto_qmail,"users",auto_uido,auto_gidq,0755);
d(auto_qmail,"bin",auto_uido,auto_gidq,0755);
d(auto_qmail,"alias",auto_uida,auto_gidq,02755);
- d(auto_qmail,"queue",auto_uidq,auto_gidq,0750);
- d(auto_qmail,"queue/pid",auto_uidq,auto_gidq,0700);
- d(auto_qmail,"queue/bounce",auto_uids,auto_gidq,0700);
+ /* s/qmail queue directory */
+
+ d(auto_queue,"queue",auto_uidq,auto_gidq,0750);
+ d(auto_queue,"queue/pid",auto_uidq,auto_gidq,0700);
+ d(auto_queue,"queue/bounce",auto_uids,auto_gidq,0700);
dsplit("queue/dkim",auto_uidq,0750);
dsplit("queue/mess",auto_uidq,0750);
@@ -48,10 +53,12 @@ void hier()
dsplit("queue/local",auto_uids,0700);
dsplit("queue/remote",auto_uids,0700);
- d(auto_qmail,"queue/lock",auto_uidq,auto_gidq,0750);
- z(auto_qmail,"queue/lock/tcpto",TCPTO_BUFSIZ,auto_uidr,auto_gidq,0644);
- z(auto_qmail,"queue/lock/sendmutex",0,auto_uids,auto_gidq,0600);
- p(auto_qmail,"queue/lock/trigger",auto_uids,auto_gidq,0622);
+ d(auto_queue,"queue/lock",auto_uidq,auto_gidq,0750);
+ z(auto_queue,"queue/lock/tcpto",TCPTO_BUFSIZ,auto_uidr,auto_gidq,0644);
+ z(auto_queue,"queue/lock/sendmutex",0,auto_uids,auto_gidq,0600);
+ p(auto_queue,"queue/lock/trigger",auto_uids,auto_gidq,0622);
+
+ /* s/qmail core programs */
c(auto_qmail,"bin","qmail-queue",auto_uidq,auto_gidq,04711);
c(auto_qmail,"bin","qmail-qmaint",auto_uidq,auto_gidq,0711);
@@ -97,6 +104,8 @@ void hier()
c(auto_qmail,"bin","qmail-qmtpd",auto_uido,auto_gidq,0755);
c(auto_qmail,"bin","qmail-smtpd",auto_uido,auto_gidq,0755);
+ /* s/qmail user programs; can be linked/moved to usr path */
+
c(auto_qmail,"bin","predate",auto_uido,auto_gidq,0755);
c(auto_qmail,"bin","datemail",auto_uido,auto_gidq,0755);
c(auto_qmail,"bin","mailsubj",auto_uido,auto_gidq,0755);
@@ -122,6 +131,8 @@ void hier()
c(auto_qmail,"bin","srsforward",auto_uido,auto_gidq,0755);
c(auto_qmail,"bin","srsreverse",auto_uido,auto_gidq,0755);
+ /* s/qmail DNS user programs; can be linked to usr path */
+
c(auto_qmail,"bin","ipmeprint",auto_uido,auto_gidq,0755);
c(auto_qmail,"bin","spfquery",auto_uido,auto_gidq,0755);
c(auto_qmail,"bin","dnscname",auto_uido,auto_gidq,0755);
@@ -133,6 +144,8 @@ void hier()
c(auto_qmail,"bin","dnstxt",auto_uido,auto_gidq,0755);
c(auto_qmail,"bin","hostname",auto_uido,auto_gidq,0755);
+ /* s/qmail qmailanalog programs */
+
c(auto_qmail,"bin","columnt",auto_uido,auto_gidq,0755);
c(auto_qmail,"bin","ddist",auto_uido,auto_gidq,0755);
c(auto_qmail,"bin","deferrals",auto_uido,auto_gidq,0755);