This commit is contained in:
temasky
2020-07-31 12:45:56 +00:00
commit 5d419635ed
306 changed files with 26949 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
schema "/etc/ldap/core.schema"
schema "/etc/ldap/inetorgperson.schema"
schema "/etc/ldap/nis.schema"
schema "/etc/ldap/amavisd.schema"
schema "/etc/ldap/iredmail.schema"
listen on lo0 secure
#listen on 127.0.0.1 secure
listen on "/var/run/ldapi"
namespace "PH_LDAP_SUFFIX" {
rootdn "PH_LDAP_ROOTDN"
rootpw "PH_LDAP_ROOTPW"
index objectClass
index accountStatus
index sn
index givenName
index cn
index mail
index uid
index shadowLastChange
index userSenderBccAddress
index userRecipientBccAddress
index domainName
index domainAliasName
index domainPendingAliasName
index domainAdmin
index domainGlobalAdmin
index domainBackupMX
index domainSenderBccAddress
index domainRecipientBccAddress
index domainStatus
index accessPolicy
index memberOfGroup
index member
index uniqueMember
index mailingListID
#
# Access policies
#
# Deny by default.
deny read,write access to subtree root by any
# Allow bind/read/write by self
allow read,write access to subtree root by self
# Read all mail accounts
allow read access to subtree "PH_LDAP_BASEDN" by "PH_LDAP_BINDDN"
# Allow to manage (read+write) mail accounts
allow read,write access to subtree "PH_LDAP_BASEDN" by "PH_LDAP_ADMIN_DN"
allow read,write access to subtree "PH_LDAP_ADMIN_BASEDN" by "PH_LDAP_ADMIN_DN"
}
+28
View File
@@ -0,0 +1,28 @@
# Basic PF rules for mail server.
mail_services="{www, https, smtp, submission, imap, imaps, pop3, pop3s, ssh}"
#table <spamd-white> persist
#table <nospamd> persist file "/etc/mail/nospamd"
#table <fail2ban> persist
# Options
set block-policy drop
set skip on lo
# Block all
block log all
# Fail2ban
#block in quick on egress proto tcp from <fail2ban> to any
pass out
# rules for spamd(8)
#pass in on egress proto tcp from any to any port smtp \
# divert-to 127.0.0.1 port spamd
#pass in on egress proto tcp from <nospamd> to any port smtp
#pass in log on egress proto tcp from <spamd-white> to any port smtp
# Access to other mail services
pass in on egress proto tcp from any to any port $mail_services