summaryrefslogtreecommitdiff
path: root/packages/postfix/files
diff options
context:
space:
mode:
Diffstat (limited to 'packages/postfix/files')
-rw-r--r--packages/postfix/files/.mtn2git_empty0
-rw-r--r--packages/postfix/files/main.cf_2.025
-rwxr-xr-xpackages/postfix/files/postfix31
-rw-r--r--packages/postfix/files/volatiles15
4 files changed, 71 insertions, 0 deletions
diff --git a/packages/postfix/files/.mtn2git_empty b/packages/postfix/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/postfix/files/.mtn2git_empty
diff --git a/packages/postfix/files/main.cf_2.0 b/packages/postfix/files/main.cf_2.0
new file mode 100644
index 0000000000..0bfe4afc1d
--- /dev/null
+++ b/packages/postfix/files/main.cf_2.0
@@ -0,0 +1,25 @@
+mydomain=sample.com
+
+virtual_mailbox_domains = sample.com, other.net
+virtual_mailbox_base = /var/spool/vmail
+virtual_mailbox_maps = hash:/etc/postfix/virtual
+virtual_alias_maps = hash:/etc/postfix/virtual_alias
+virtual_uid_maps = static:vmail
+virtual_gid_maps = static:vmail
+
+config_directory = /etc/postfix
+sample_directory = /etc/postfix
+queue_directory = /var/spool/postfix
+mail_spool_directory = /var/spool/mail
+readme_directory = no
+command_directory = /usr/sbin
+daemon_directory = /usr/libexec/postfix
+mail_owner = postfix
+setgid_group = postdrop
+mydestination =
+unknown_local_recipient_reject_code = 450
+mynetworks_style = host
+debug_peer_level = 2
+sendmail_path = /usr/sbin/sendmail
+newaliases_path = /usr/bin/newaliases
+mailq_path = /usr/bin/mailq
diff --git a/packages/postfix/files/postfix b/packages/postfix/files/postfix
new file mode 100755
index 0000000000..2fd5ba7007
--- /dev/null
+++ b/packages/postfix/files/postfix
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+case "$1" in
+
+ start)
+ echo "Starting Postfix..."
+ postfix start
+ ;;
+
+ stop)
+ echo "Stopping Postfix..."
+ postfix stop
+ ;;
+
+ reload)
+ echo "Reloading Postfix..."
+ postfix reload
+ ;;
+
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+
+ *)
+ echo "Usage: $0 {start|stop|reload|restart}"
+ exit 1
+ ;;
+esac
+
diff --git a/packages/postfix/files/volatiles b/packages/postfix/files/volatiles
new file mode 100644
index 0000000000..cb111cd4c0
--- /dev/null
+++ b/packages/postfix/files/volatiles
@@ -0,0 +1,15 @@
+d postfix nogroup 2755 /var/spool/mail
+d root postfix 0755 /var/spool/postfix
+d postfix root 0700 /var/spool/postfix/active
+d postfix root 0700 /var/spool/postfix/bounce
+d postfix root 0700 /var/spool/postfix/corrupt
+d postfix root 0700 /var/spool/postfix/defer
+d postfix root 0700 /var/spool/postfix/deferred
+d postfix root 0700 /var/spool/postfix/flush
+d postfix root 0700 /var/spool/postfix/hold
+d postfix root 0700 /var/spool/postfix/incoming
+d postfix postdrop 0730 /var/spool/postfix/maildrop
+d root root 0755 /var/spool/postfix/pid
+d postfix root 0700 /var/spool/postfix/private
+d postfix postdrop 0710 /var/spool/postfix/public
+d root root 0755 /var/spool/vmail