summaryrefslogtreecommitdiff
path: root/package/postfix/files/postfix.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'package/postfix/files/postfix.postinst')
-rw-r--r--package/postfix/files/postfix.postinst9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/postfix/files/postfix.postinst b/package/postfix/files/postfix.postinst
new file mode 100644
index 000000000..8c9fbba60
--- /dev/null
+++ b/package/postfix/files/postfix.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf postfix postfix NO
+gid=$(get_next_gid)
+add_group postfix $gid
+add_user postfix $(get_next_uid) $gid /etc/postfix
+gid=$(get_next_gid)
+add_group postdrop $gid
+add_service smtp 25/tcp