openship 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -24
- package/dist/bare-2HYDXQEH.js +23 -0
- package/dist/{bowser-MFQA6OS4.js → bowser-O3AEA6AN.js} +5 -1
- package/dist/{chunk-KD7VO4LG.js → chunk-2ZLR7ULL.js} +255 -65
- package/dist/{chunk-YHXCHW7Q.js → chunk-3JQTL4R4.js} +236 -99
- package/dist/{chunk-E77LJWJK.js → chunk-4TJC4JZQ.js} +20 -9
- package/dist/{chunk-YL67EWYZ.js → chunk-4Z5QO7N6.js} +6 -2
- package/dist/{chunk-WJPCBU7Z.js → chunk-5FNIWBFI.js} +10 -6
- package/dist/{chunk-Y37KHU7L.js → chunk-5MZ624VX.js} +5 -0
- package/dist/{chunk-QKFRZNKN.js → chunk-6APIPIJY.js} +8 -4
- package/dist/{chunk-JZLNHGLW.js → chunk-6APULWSU.js} +153 -133
- package/dist/{chunk-F4DFVG6Q.js → chunk-6B5YCFFV.js} +8 -4
- package/dist/{chunk-XVSAUO2I.js → chunk-AVIB7CT7.js} +5 -1
- package/dist/{chunk-TEYJYSMT.js → chunk-C5OHTYEF.js} +12 -6
- package/dist/{chunk-7UOB5GGQ.js → chunk-DYPH4HCI.js} +5 -0
- package/dist/{chunk-XIFRMKYT.js → chunk-EI575GHN.js} +6 -2
- package/dist/{chunk-4CQWT2WL.js → chunk-FPRHYBY2.js} +5 -0
- package/dist/chunk-FQGJZ2HS.js +248 -0
- package/dist/{chunk-JR2OCMJA.js → chunk-FRNAR33O.js} +6 -2
- package/dist/{chunk-JUJBBF5U.js → chunk-FXTBHTWY.js} +362 -42
- package/dist/chunk-ILFETZOM.js +131 -0
- package/dist/{chunk-5ZCKQ2MI.js → chunk-IXCHURVK.js} +7 -3
- package/dist/{chunk-6ERIMTBC.js → chunk-JYGD5WSN.js} +5 -0
- package/dist/{chunk-4VNS5WPM.js → chunk-KI2EY3WB.js} +4 -0
- package/dist/{chunk-3U4SPZD5.js → chunk-L2VOGB2X.js} +7 -104
- package/dist/{chunk-NB2VEIWG.js → chunk-MZ2WEHHY.js} +7 -3
- package/dist/{chunk-BUBSSKO6.js → chunk-O6ZZF52V.js} +5 -1
- package/dist/{chunk-LBFH7THC.js → chunk-OWED2GRM.js} +5 -1
- package/dist/{chunk-4MG3BVHE.js → chunk-OXWDY22G.js} +6 -2
- package/dist/{chunk-4FABQGQP.js → chunk-Q2CIRAOK.js} +5 -0
- package/dist/{chunk-4LEL3H2Z.js → chunk-RPHRPFEH.js} +5 -0
- package/dist/{chunk-46YJFP4S.js → chunk-SQ77DZOI.js} +1728 -1484
- package/dist/{chunk-S6DSRLNE.js → chunk-TGIINPVM.js} +15 -2
- package/dist/{chunk-U2DPZSXA.js → chunk-TYVME3XD.js} +9 -1
- package/dist/{chunk-HFYDYK4D.js → chunk-V6AN6XLZ.js} +18 -6
- package/dist/{chunk-ZKJOFWBJ.js → chunk-VDMQJHPI.js} +38 -15
- package/dist/{chunk-E6W2JMMU.js → chunk-VFINNTUL.js} +22 -1
- package/dist/{chunk-OJE6YWPQ.js → chunk-VWPEKOH6.js} +6 -2
- package/dist/{chunk-5N7VUGL6.js → chunk-W73X43R7.js} +6 -2
- package/dist/cloud-7QYOGF7F.js +11 -0
- package/dist/cloud-ZSKOS4GY.js +30 -0
- package/dist/detect-SH4FHFBI.js +36 -0
- package/dist/{dist-L3MPOWCA.js → dist-IQJ6H6UZ.js} +6 -2
- package/dist/{dist-es-KE56MWYO.js → dist-es-5DY7K32L.js} +9 -5
- package/dist/dist-es-JSTDUS7Q.js +26 -0
- package/dist/{dist-es-GTAMF674.js → dist-es-OSNJBLXB.js} +8 -4
- package/dist/{dist-es-NRZIQY5B.js → dist-es-RYHIPOTN.js} +17 -13
- package/dist/{dist-es-XQCOTGC7.js → dist-es-VNKHQVIB.js} +7 -3
- package/dist/{dist-es-WZCR7DHQ.js → dist-es-WV4AMOII.js} +11 -7
- package/dist/{dist-es-ZW3HFQUM.js → dist-es-X3B5QYKB.js} +9 -5
- package/dist/docker-U7AF5PTA.js +16 -0
- package/dist/docker-edge-executor-VHW3JPJS.js +13 -0
- package/dist/edge-import-V5CBA47C.js +45 -0
- package/dist/ensure-container-edge-CMYROUSI.js +33 -0
- package/dist/{event-streams-7LGDL56D.js → event-streams-EHRAKL75.js} +7 -3
- package/dist/executor-YPT6RH6O.js +30 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +258 -245
- package/dist/{loadSso-N273C5I7.js → loadSso-46FQRIZS.js} +13 -9
- package/dist/local-executor-V7U5VOZW.js +12 -0
- package/dist/nginx-2GTRUIDE.js +24 -0
- package/dist/noop-FMMFG2EZ.js +11 -0
- package/dist/{openresty-lua-HAO4EUDY.js → openresty-lua-4WLGDSER.js} +13 -3
- package/dist/server/engine/ChangeLog +2289 -0
- package/dist/server/engine/Documentations +5 -0
- package/dist/server/engine/LICENSE +674 -0
- package/dist/server/engine/README.md +34 -0
- package/dist/server/engine/conf/amavisd +150 -0
- package/dist/server/engine/conf/clamav +71 -0
- package/dist/server/engine/conf/core +632 -0
- package/dist/server/engine/conf/dovecot +151 -0
- package/dist/server/engine/conf/fail2ban +72 -0
- package/dist/server/engine/conf/global +698 -0
- package/dist/server/engine/conf/iredapd +52 -0
- package/dist/server/engine/conf/logwatch +28 -0
- package/dist/server/engine/conf/postfix +97 -0
- package/dist/server/engine/conf/postgresql +93 -0
- package/dist/server/engine/conf/spamassassin +39 -0
- package/dist/server/engine/dialog/config_via_dialog.sh +258 -0
- package/dist/server/engine/dialog/optional_components.sh +122 -0
- package/dist/server/engine/dialog/pgsql_config.sh +52 -0
- package/dist/server/engine/dialog/virtual_domain_config.sh +94 -0
- package/dist/server/engine/functions/amavisd.sh +267 -0
- package/dist/server/engine/functions/backend.sh +85 -0
- package/dist/server/engine/functions/clamav.sh +100 -0
- package/dist/server/engine/functions/cleanup.sh +393 -0
- package/dist/server/engine/functions/dovecot.sh +583 -0
- package/dist/server/engine/functions/fail2ban.sh +209 -0
- package/dist/server/engine/functions/iredapd.sh +356 -0
- package/dist/server/engine/functions/optional_components.sh +24 -0
- package/dist/server/engine/functions/packages.sh +522 -0
- package/dist/server/engine/functions/packages_freebsd.sh +179 -0
- package/dist/server/engine/functions/postfix.sh +457 -0
- package/dist/server/engine/functions/postgresql.sh +239 -0
- package/dist/server/engine/functions/spamassassin.sh +49 -0
- package/dist/server/engine/functions/system_accounts.sh +128 -0
- package/dist/server/engine/iRedMail.sh +144 -0
- package/dist/server/engine/pkgs/get_all.sh +338 -0
- package/dist/server/engine/pkgs/pkgs.freebsd.sha256 +3 -0
- package/dist/server/engine/pkgs/pkgs.openbsd.sha256 +6 -0
- package/dist/server/engine/pkgs/pkgs.sha256 +1 -0
- package/dist/server/engine/samples/amavisd/amavisd.conf +677 -0
- package/dist/server/engine/samples/amavisd/amavisd.mysql +278 -0
- package/dist/server/engine/samples/amavisd/amavisd.pgsql +253 -0
- package/dist/server/engine/samples/amavisd/amavisd.schema +942 -0
- package/dist/server/engine/samples/amavisd/default_spam_policy.sql +46 -0
- package/dist/server/engine/samples/dovecot/dovecot-2.4-mariadb.conf +758 -0
- package/dist/server/engine/samples/dovecot/dovecot-2.4-openldap.conf +767 -0
- package/dist/server/engine/samples/dovecot/dovecot-2.4-pgsql.conf +762 -0
- package/dist/server/engine/samples/dovecot/dovecot-last-login.conf +50 -0
- package/dist/server/engine/samples/dovecot/dovecot-ldap.conf +21 -0
- package/dist/server/engine/samples/dovecot/dovecot-share-folder.conf +22 -0
- package/dist/server/engine/samples/dovecot/dovecot-sql.conf +28 -0
- package/dist/server/engine/samples/dovecot/dovecot-used-quota.conf +13 -0
- package/dist/server/engine/samples/dovecot/dovecot.conf +484 -0
- package/dist/server/engine/samples/dovecot/dovecot.sieve +7 -0
- package/dist/server/engine/samples/dovecot/dovecot2-quota-warning.sh +38 -0
- package/dist/server/engine/samples/dovecot/sql/imap_share_folder.mysql +16 -0
- package/dist/server/engine/samples/dovecot/sql/last_login.mysql +12 -0
- package/dist/server/engine/samples/dovecot/sql/used_quota.mysql +26 -0
- package/dist/server/engine/samples/dovecot/systemd/override.conf +3 -0
- package/dist/server/engine/samples/fail2ban/action.d/banned_db.conf +9 -0
- package/dist/server/engine/samples/fail2ban/bin/fail2ban_banned_db +268 -0
- package/dist/server/engine/samples/fail2ban/fail2ban.local +17 -0
- package/dist/server/engine/samples/fail2ban/filter.d/dovecot.iredmail.conf +5 -0
- package/dist/server/engine/samples/fail2ban/filter.d/postfix-pregreet.iredmail.conf +16 -0
- package/dist/server/engine/samples/fail2ban/filter.d/postfix.iredmail.conf +18 -0
- package/dist/server/engine/samples/fail2ban/filter.d/roundcube.iredmail.conf +9 -0
- package/dist/server/engine/samples/fail2ban/jail.d/dovecot.local +8 -0
- package/dist/server/engine/samples/fail2ban/jail.d/nginx-http-auth.local +8 -0
- package/dist/server/engine/samples/fail2ban/jail.d/postfix-pregreet.local +9 -0
- package/dist/server/engine/samples/fail2ban/jail.d/postfix.local +8 -0
- package/dist/server/engine/samples/fail2ban/jail.d/roundcube.local +9 -0
- package/dist/server/engine/samples/fail2ban/jail.d/sogo.local +8 -0
- package/dist/server/engine/samples/fail2ban/jail.d/sshd.local +8 -0
- package/dist/server/engine/samples/fail2ban/jail.local +6 -0
- package/dist/server/engine/samples/fail2ban/openbsd/rc +27 -0
- package/dist/server/engine/samples/fail2ban/sql/fail2ban.mysql +49 -0
- package/dist/server/engine/samples/fail2ban/sql/fail2ban.pgsql +48 -0
- package/dist/server/engine/samples/firewall/firewalld/services/ssh.xml +6 -0
- package/dist/server/engine/samples/firewall/firewalld/zones/iredmail.xml +15 -0
- package/dist/server/engine/samples/firewall/iptables/ip6tables.init.debian +362 -0
- package/dist/server/engine/samples/firewall/iptables/ip6tables.rules +53 -0
- package/dist/server/engine/samples/firewall/iptables/iptables.init.debian +363 -0
- package/dist/server/engine/samples/firewall/iptables/iptables.rules +54 -0
- package/dist/server/engine/samples/firewall/nftables.conf +58 -0
- package/dist/server/engine/samples/freebsd/newsyslog.conf.d/dovecot.conf +3 -0
- package/dist/server/engine/samples/freebsd/newsyslog.conf.d/iredapd.conf +1 -0
- package/dist/server/engine/samples/freebsd/newsyslog.conf.d/mlmmjadmin.conf +1 -0
- package/dist/server/engine/samples/freebsd/newsyslog.conf.d/php-fpm.conf +2 -0
- package/dist/server/engine/samples/freebsd/newsyslog.conf.d/slapd.conf +1 -0
- package/dist/server/engine/samples/freebsd/syslog.d/dovecot.conf +2 -0
- package/dist/server/engine/samples/freebsd/syslog.d/fail2ban.conf +2 -0
- package/dist/server/engine/samples/freebsd/syslog.d/iredapd.conf +2 -0
- package/dist/server/engine/samples/freebsd/syslog.d/mlmmjadmin.conf +2 -0
- package/dist/server/engine/samples/freebsd/syslog.d/php-fpm.conf +2 -0
- package/dist/server/engine/samples/freebsd/syslog.d/slapd.conf +2 -0
- package/dist/server/engine/samples/iredmail/iredmail.mysql +491 -0
- package/dist/server/engine/samples/iredmail/iredmail.pgsql +465 -0
- package/dist/server/engine/samples/iredmail/iredmail.schema +456 -0
- package/dist/server/engine/samples/iredmail/used_quota_triggers_dovecot_2.3.pgsql +40 -0
- package/dist/server/engine/samples/iredmail/used_quota_triggers_dovecot_2.4.pgsql +18 -0
- package/dist/server/engine/samples/logrotate/dovecot +13 -0
- package/dist/server/engine/samples/logrotate/iredapd +13 -0
- package/dist/server/engine/samples/logrotate/mlmmjadmin +13 -0
- package/dist/server/engine/samples/logrotate/openldap +19 -0
- package/dist/server/engine/samples/logrotate/php-fpm +13 -0
- package/dist/server/engine/samples/openbsd/ldapd.conf +58 -0
- package/dist/server/engine/samples/openbsd/pf.conf +28 -0
- package/dist/server/engine/samples/postfix/command_filter.pcre +3 -0
- package/dist/server/engine/samples/postfix/freebsd/mailer.conf +9 -0
- package/dist/server/engine/samples/postfix/helo_access.pcre +180 -0
- package/dist/server/engine/samples/postfix/ldap/catchall_maps.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/recipient_bcc_maps_domain.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/recipient_bcc_maps_user.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/relay_domains.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/sender_bcc_maps_domain.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/sender_bcc_maps_user.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/sender_dependent_relayhost_maps_domain.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/sender_dependent_relayhost_maps_user.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/sender_login_maps.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/transport_maps_domain.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/transport_maps_user.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/virtual_alias_maps.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/virtual_group_maps.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/virtual_group_members_maps.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/virtual_mailbox_domains.cf +11 -0
- package/dist/server/engine/samples/postfix/ldap/virtual_mailbox_maps.cf +12 -0
- package/dist/server/engine/samples/postfix/main.cf +282 -0
- package/dist/server/engine/samples/postfix/main.cf.amavisd +7 -0
- package/dist/server/engine/samples/postfix/main.cf.dovecot +8 -0
- package/dist/server/engine/samples/postfix/main.cf.ldap +39 -0
- package/dist/server/engine/samples/postfix/main.cf.mlmmj +5 -0
- package/dist/server/engine/samples/postfix/main.cf.mysql +39 -0
- package/dist/server/engine/samples/postfix/main.cf.pgsql +39 -0
- package/dist/server/engine/samples/postfix/main.cf.postscreen +30 -0
- package/dist/server/engine/samples/postfix/master.cf +87 -0
- package/dist/server/engine/samples/postfix/mysql/catchall_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/domain_alias_catchall_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/domain_alias_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/recipient_bcc_maps_domain.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/recipient_bcc_maps_user.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/relay_domains.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/sender_bcc_maps_domain.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/sender_bcc_maps_user.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/sender_dependent_relayhost_maps.cf +6 -0
- package/dist/server/engine/samples/postfix/mysql/sender_login_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/transport_maps_domain.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/transport_maps_maillist.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/transport_maps_user.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/virtual_alias_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/virtual_mailbox_domains.cf +5 -0
- package/dist/server/engine/samples/postfix/mysql/virtual_mailbox_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/catchall_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/domain_alias_catchall_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/domain_alias_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/recipient_bcc_maps_domain.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/recipient_bcc_maps_user.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/relay_domains.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/sender_bcc_maps_domain.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/sender_bcc_maps_user.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/sender_dependent_relayhost_maps.cf +6 -0
- package/dist/server/engine/samples/postfix/pgsql/sender_login_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/transport_maps_domain.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/transport_maps_maillist.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/transport_maps_user.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/virtual_alias_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/virtual_mailbox_domains.cf +5 -0
- package/dist/server/engine/samples/postfix/pgsql/virtual_mailbox_maps.cf +5 -0
- package/dist/server/engine/samples/postfix/postscreen_access.cidr +6 -0
- package/dist/server/engine/samples/postgresql/sql/add_first_domain_and_user.sql +34 -0
- package/dist/server/engine/samples/postgresql/sql/grant_permissions.sql +14 -0
- package/dist/server/engine/samples/postgresql/sql/init_vmail_db.sql +15 -0
- package/dist/server/engine/samples/rsyslog.d/1-iredmail-dovecot.conf +23 -0
- package/dist/server/engine/samples/rsyslog.d/1-iredmail-fail2ban.conf +2 -0
- package/dist/server/engine/samples/rsyslog.d/1-iredmail-iredapd.conf +12 -0
- package/dist/server/engine/samples/rsyslog.d/1-iredmail-mlmmjadmin.conf +12 -0
- package/dist/server/engine/samples/rsyslog.d/1-iredmail-openldap.conf +2 -0
- package/dist/server/engine/samples/rsyslog.d/1-iredmail-phpfpm.conf +3 -0
- package/dist/server/engine/samples/spamassassin/local.cf +186 -0
- package/dist/server/engine/samples/spamassassin/razor.conf +1 -0
- package/dist/server/engine/samples/systemd/clamd.service.d/override.conf +2 -0
- package/dist/server/engine/samples/systemd/mariadb.service.d/override.conf +3 -0
- package/dist/server/engine/samples/systemd/slapd.service.d/override.conf +6 -0
- package/dist/server/engine/samples/yum/CentOS-Linux-AppStream.repo +6 -0
- package/dist/server/engine/samples/yum/CentOS-Linux-PowerTools.repo +6 -0
- package/dist/server/engine/samples/yum/CentOS-Stream-AppStream.repo +7 -0
- package/dist/server/engine/samples/yum/CentOS-Stream-PowerTools.repo +7 -0
- package/dist/server/engine/samples/yum/symas-openldap.repo +6 -0
- package/dist/server/engine/tools/add_enabled_service.py +60 -0
- package/dist/server/engine/tools/backup_mysql.sh +238 -0
- package/dist/server/engine/tools/backup_openldap.sh +230 -0
- package/dist/server/engine/tools/backup_pgsql.sh +217 -0
- package/dist/server/engine/tools/backup_sogo.sh +156 -0
- package/dist/server/engine/tools/create_mail_user_OpenLDAP.py +335 -0
- package/dist/server/engine/tools/create_mail_user_OpenLDAP.sh +287 -0
- package/dist/server/engine/tools/create_mail_user_SQL.sh +127 -0
- package/dist/server/engine/tools/enable_postscreen.sh +144 -0
- package/dist/server/engine/tools/fail2ban_unban_ip.sh +39 -0
- package/dist/server/engine/tools/find_sasl_login_ip.sh +20 -0
- package/dist/server/engine/tools/find_top_sasl_usernames.sh +28 -0
- package/dist/server/engine/tools/generate_ssl_keys.sh +85 -0
- package/dist/server/engine/tools/kill_high_cpu_sogo_process.sh +32 -0
- package/dist/server/engine/tools/ldap_assign_user_to_groups.py +151 -0
- package/dist/server/engine/tools/ldap_move_members_to_another_group.py +129 -0
- package/dist/server/engine/tools/migrate_sql_alias_table.py +177 -0
- package/dist/server/engine/update/0.9.8/amavisd.mysql +29 -0
- package/dist/server/engine/update/0.9.8/amavisd.pgsql +39 -0
- package/dist/server/engine/update/0.9.8/iredmail.mysql +53 -0
- package/dist/server/engine/update/0.9.8/iredmail.pgsql +61 -0
- package/dist/server/engine/update/0.9.9/iredmail.mysql +2 -0
- package/dist/server/engine/update/0.9.9/iredmail.pgsql +2 -0
- package/dist/server/engine/update/1.0/iredmail.mysql +2 -0
- package/dist/server/engine/update/1.0/iredmail.pgsql +2 -0
- package/dist/server/engine/update/1.2/last_login.mysql +16 -0
- package/dist/server/engine/update/1.4.0/iredmail.mysql +22 -0
- package/dist/server/engine/update/1.4.0/iredmail.pgsql +20 -0
- package/dist/server/engine/update/1.4.1/iredmail.mysql +3 -0
- package/dist/server/engine/update/1.4.1/iredmail.pgsql +3 -0
- package/dist/server/engine/update/1.4.1/sogo.mysql +11 -0
- package/dist/server/engine/update/1.4.1/sogo.pgsql +30 -0
- package/dist/server/engine/update/1.4.1/update-ldap.py +66 -0
- package/dist/server/engine/update/1.4.2/iredmail.mysql +9 -0
- package/dist/server/engine/update/1.4.2/iredmail.pgsql +9 -0
- package/dist/server/engine/update/1.4.2/sogo.pgsql +30 -0
- package/dist/server/engine/update/1.6.0/sogo_view.pgsql +27 -0
- package/dist/server/engine/update/1.6.3/iredmail.mysql +1 -0
- package/dist/server/engine/update/1.7.0/fail2ban.mysql +11 -0
- package/dist/server/engine/update/1.7.0/fail2ban.pgsql +12 -0
- package/dist/server/engine/update/1.7.1/amavisd.mysql +1 -0
- package/dist/server/engine/update/1.7.2/vmail.mysql +30 -0
- package/dist/server/engine/update/1.7.3/deleted_mailboxes.mysql +43 -0
- package/dist/server/engine/update/1.7.3/iredadmin.mysql +26 -0
- package/dist/server/engine/update/1.7.3/vmail.mysql +79 -0
- package/dist/server/engine/update/1.7.3/vmail.pgsql +9 -0
- package/dist/server/engine/update/README.md +1 -0
- package/dist/server/engine/update/ldap/README.md +40 -0
- package/dist/server/engine/update/ldap/update-ldap-dovecot-2.3.py +69 -0
- package/dist/server/index.js +55574 -53675
- package/dist/server/migrations/0071_gh_device_token.sql +3 -0
- package/dist/server/migrations/0072_gh_device_token_method.sql +1 -0
- package/dist/server/migrations/meta/_journal.json +14 -0
- package/dist/setup-HQIZLUOJ.js +20 -0
- package/dist/{signin-DR462ERO.js → signin-ITOPKKUB.js} +13 -9
- package/dist/{sso-oidc-VBZLJUK5.js → sso-oidc-NON2PD7Y.js} +13 -9
- package/dist/{sts-EJLZ4Z77.js → sts-HHFFSAY2.js} +12 -8
- package/package.json +1 -1
- package/dist/bare-ITM45QBX.js +0 -18
- package/dist/cloud-JMPHO3CW.js +0 -7
- package/dist/cloud-W5G6YXAY.js +0 -24
- package/dist/dist-es-4C322O5D.js +0 -22
- package/dist/docker-3FVJMFC3.js +0 -12
- package/dist/docker-edge-executor-ZIWAZWPL.js +0 -9
- package/dist/edge-import-Y34YL6JK.js +0 -39
- package/dist/executor-J7BHW5HF.js +0 -26
- package/dist/nginx-YZWKYKQU.js +0 -16
- package/dist/noop-RRNCIUI5.js +0 -7
- package/dist/setup-5X3WEEHA.js +0 -14
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT forwardings.forwarding FROM forwardings,alias_domain,domain WHERE alias_domain.alias_domain='%d' AND forwardings.address=alias_domain.target_domain AND alias_domain.target_domain=domain.domain AND forwardings.active=1 AND alias_domain.active=1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT forwardings.forwarding FROM forwardings,alias_domain,domain WHERE alias_domain.alias_domain='%d' AND forwardings.address=('%u' || '@' || alias_domain.target_domain) AND alias_domain.target_domain=domain.domain AND forwardings.active=1 AND alias_domain.active=1 AND domain.backupmx=0
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT recipient_bcc_domain.bcc_address FROM recipient_bcc_domain, domain WHERE recipient_bcc_domain.domain='%d' AND recipient_bcc_domain.domain=domain.domain AND domain.active=1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT recipient_bcc_user.bcc_address FROM recipient_bcc_user,domain WHERE recipient_bcc_user.username='%s' AND recipient_bcc_user.domain='%d' AND recipient_bcc_user.domain=domain.domain AND recipient_bcc_user.active=1 AND domain.backupmx=0 AND domain.active=1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT sender_bcc_domain.bcc_address FROM sender_bcc_domain, domain WHERE sender_bcc_domain.domain='%d' AND sender_bcc_domain.domain=domain.domain AND domain.active=1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT sender_bcc_user.bcc_address FROM sender_bcc_user,domain WHERE sender_bcc_user.username='%s' AND sender_bcc_user.domain='%d' AND sender_bcc_user.domain=domain.domain AND sender_bcc_user.active=1 AND domain.backupmx=0 AND domain.active=1
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
# '%s' will be replaced by the envelope sender address or @domain.
|
|
6
|
+
query = SELECT relayhost FROM sender_relayhost WHERE account='%s' LIMIT 1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT mailbox.username FROM mailbox,domain WHERE mailbox.username='%s' AND mailbox.domain='%d' AND mailbox.domain=domain.domain AND mailbox.enablesmtp=1 AND mailbox.active=1 AND domain.backupmx=0 AND domain.active=1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT maillists.transport FROM maillists,domain WHERE maillists.address='%s' AND maillists.active=1 AND maillists.domain = domain.domain AND domain.active=1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT mailbox.transport FROM mailbox,domain WHERE mailbox.username='%s' AND mailbox.domain='%d' AND mailbox.domain=domain.domain AND mailbox.transport<>'' AND mailbox.active=1 AND mailbox.enabledeliver=1 AND domain.backupmx=0 AND domain.active=1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT forwardings.forwarding FROM forwardings,domain WHERE forwardings.address='%s' AND forwardings.domain=domain.domain AND forwardings.active=1 AND domain.backupmx=0 AND domain.active=1
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = (SELECT domain FROM domain WHERE domain='%s' AND backupmx=0 AND active=1 LIMIT 1) UNION (SELECT alias_domain.alias_domain FROM alias_domain,domain WHERE alias_domain.alias_domain='%s' AND alias_domain.active=1 AND alias_domain.target_domain=domain.domain AND domain.active=1 AND domain.backupmx=0 LIMIT 1)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
hosts = PH_SQL_SERVER_ADDRESS:PH_SQL_SERVER_PORT
|
|
2
|
+
user = PH_VMAIL_DB_BIND_USER
|
|
3
|
+
password = PH_VMAIL_DB_BIND_PASSWD
|
|
4
|
+
dbname = PH_VMAIL_DB_NAME
|
|
5
|
+
query = SELECT (mailbox.storagenode || '/' || mailbox.maildir || '/Maildir/') FROM mailbox,domain WHERE mailbox.username='%s' AND mailbox.active=1 AND mailbox.enabledeliver=1 AND domain.domain = mailbox.domain AND domain.active=1
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
-- Connect as vmailadmin
|
|
2
|
+
-- \c PH_VMAIL_DB_NAME PH_VMAIL_DB_ADMIN_USER;
|
|
3
|
+
\c PH_VMAIL_DB_NAME;
|
|
4
|
+
|
|
5
|
+
-- Add your first domain
|
|
6
|
+
INSERT INTO domain (domain, transport, settings, created)
|
|
7
|
+
VALUES ('PH_FIRST_DOMAIN', 'PH_TRANSPORT', 'default_user_quota:1024;', NOW());
|
|
8
|
+
|
|
9
|
+
-- Add your first normal user
|
|
10
|
+
INSERT INTO mailbox (username,
|
|
11
|
+
password,
|
|
12
|
+
name,
|
|
13
|
+
maildir,
|
|
14
|
+
quota,
|
|
15
|
+
domain,
|
|
16
|
+
isadmin,
|
|
17
|
+
isglobaladmin,
|
|
18
|
+
created)
|
|
19
|
+
VALUES ('PH_DOMAIN_ADMIN_EMAIL',
|
|
20
|
+
'PH_DOMAIN_ADMIN_PASSWD_HASH',
|
|
21
|
+
'PH_DOMAIN_ADMIN_NAME',
|
|
22
|
+
'PH_DOMAIN_ADMIN_MAILDIR_HASH_PART',
|
|
23
|
+
1024,
|
|
24
|
+
'PH_FIRST_DOMAIN',
|
|
25
|
+
0,
|
|
26
|
+
1,
|
|
27
|
+
NOW());
|
|
28
|
+
|
|
29
|
+
INSERT INTO forwardings (address, forwarding, domain, dest_domain, is_forwarding)
|
|
30
|
+
VALUES ('PH_DOMAIN_ADMIN_EMAIL', 'PH_DOMAIN_ADMIN_EMAIL', 'PH_FIRST_DOMAIN', 'PH_FIRST_DOMAIN', 1);
|
|
31
|
+
|
|
32
|
+
-- Mark first mail user as global admin
|
|
33
|
+
INSERT INTO domain_admins (username, domain, created)
|
|
34
|
+
VALUES ('PH_DOMAIN_ADMIN_EMAIL', 'ALL', NOW());
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
\c PH_VMAIL_DB_NAME;
|
|
2
|
+
|
|
3
|
+
-- Set correct privilege for ROLE: vmail
|
|
4
|
+
GRANT SELECT ON
|
|
5
|
+
admin, alias, alias_domain, anyone_shares,
|
|
6
|
+
deleted_mailboxes, domain, domain_admins,
|
|
7
|
+
forwardings,
|
|
8
|
+
mailbox, maillists, maillist_owners, moderators,
|
|
9
|
+
recipient_bcc_domain, recipient_bcc_user,
|
|
10
|
+
sender_bcc_domain, sender_bcc_user, sender_relayhost, share_folder
|
|
11
|
+
TO PH_VMAIL_DB_BIND_USER;
|
|
12
|
+
|
|
13
|
+
-- Update per-user real-time mailbox usage
|
|
14
|
+
GRANT SELECT, UPDATE, INSERT, DELETE ON used_quota TO PH_VMAIL_DB_BIND_USER;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
-- Crete role: vmail, read-only.
|
|
2
|
+
CREATE USER PH_VMAIL_DB_BIND_USER
|
|
3
|
+
WITH ENCRYPTED PASSWORD 'PH_VMAIL_DB_BIND_PASSWD'
|
|
4
|
+
NOSUPERUSER NOCREATEDB NOCREATEROLE;
|
|
5
|
+
|
|
6
|
+
-- Create role: vmailadmin, read + write.
|
|
7
|
+
CREATE USER PH_VMAIL_DB_ADMIN_USER
|
|
8
|
+
WITH ENCRYPTED PASSWORD 'PH_VMAIL_DB_ADMIN_PASSWD'
|
|
9
|
+
NOSUPERUSER NOCREATEDB NOCREATEROLE;
|
|
10
|
+
|
|
11
|
+
-- Create database to store mail accounts
|
|
12
|
+
CREATE DATABASE PH_VMAIL_DB_NAME WITH TEMPLATE template0 ENCODING 'UTF8';
|
|
13
|
+
|
|
14
|
+
-- Grant privilege
|
|
15
|
+
ALTER DATABASE PH_VMAIL_DB_NAME OWNER TO PH_VMAIL_DB_ADMIN_USER;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Debug
|
|
2
|
+
if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains ": Debug:") then -PH_DOVECOT_LOG_FILE
|
|
3
|
+
& stop
|
|
4
|
+
|
|
5
|
+
# sieve and LMTP
|
|
6
|
+
if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains "lmtp(" or $msg contains "lda(") then -PH_DOVECOT_SYSLOG_FILE_LDA
|
|
7
|
+
& stop
|
|
8
|
+
|
|
9
|
+
# IMAP
|
|
10
|
+
if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains "imap(" or $msg contains "imap-login:") then -PH_DOVECOT_SYSLOG_FILE_IMAP
|
|
11
|
+
& stop
|
|
12
|
+
|
|
13
|
+
# POP3
|
|
14
|
+
if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains "pop3(" or $msg contains "pop3-login:") then -PH_DOVECOT_SYSLOG_FILE_POP3
|
|
15
|
+
& stop
|
|
16
|
+
|
|
17
|
+
# managesieve
|
|
18
|
+
if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($msg contains "managesieve(" or $msg contains "managesieve-login:") then -PH_DOVECOT_SYSLOG_FILE_SIEVE
|
|
19
|
+
& stop
|
|
20
|
+
|
|
21
|
+
# All other Dovecot log
|
|
22
|
+
if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and $programname startswith "dovecot" then -PH_DOVECOT_LOG_FILE
|
|
23
|
+
& stop
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Log to /var/log/iredapd/iredapd.log
|
|
2
|
+
#
|
|
3
|
+
# Notes:
|
|
4
|
+
#
|
|
5
|
+
# - $syslogfacility-text must be same as value of parameter SYSLOG_FACILITY
|
|
6
|
+
# in iredapd config file. Defaults to 'local5' (defined in
|
|
7
|
+
# libs/default_settings.py).
|
|
8
|
+
#
|
|
9
|
+
# - Directory /var/log/iredapd/ must be owned by syslog daemon user/group.
|
|
10
|
+
#
|
|
11
|
+
if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and ($syslogtag startswith 'iredapd' or $msg startswith 'iredapd') then -PH_IREDAPD_LOG_FILE
|
|
12
|
+
& stop
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Log to /var/log/mlmmjadmin/mlmmjadmin.log
|
|
2
|
+
#
|
|
3
|
+
# Notes:
|
|
4
|
+
#
|
|
5
|
+
# - $syslogfacility-text must be same as value of parameter SYSLOG_FACILITY
|
|
6
|
+
# in mlmmjadmin config file. Defaults to 'local5' (defined in
|
|
7
|
+
# libs/default_settings.py).
|
|
8
|
+
#
|
|
9
|
+
# - Directory /var/log/mlmmjadmin/ must be owned by syslog daemon user/group.
|
|
10
|
+
#
|
|
11
|
+
if $syslogfacility-text == 'PH_IREDMAIL_SYSLOG_FACILITY' and $programname startswith 'mlmmjadmin' then -PH_MLMMJADMIN_LOG_FILE
|
|
12
|
+
& stop
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
#---------------------------------------------------------------------
|
|
2
|
+
# This file is part of iRedMail, which is an open source mail server
|
|
3
|
+
# solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu.
|
|
4
|
+
#
|
|
5
|
+
# iRedMail is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
8
|
+
# (at your option) any later version.
|
|
9
|
+
#
|
|
10
|
+
# iRedMail is distributed in the hope that it will be useful,
|
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
# GNU General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU General Public License
|
|
16
|
+
# along with iRedMail. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
#---------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
#
|
|
20
|
+
# Sample SpamAssassin rules. It should be located at:
|
|
21
|
+
# /etc/mail/spamassassin/local.cf
|
|
22
|
+
#
|
|
23
|
+
# Shipped within iRedMail project:
|
|
24
|
+
# * http://iRedMail.googlecode.com/
|
|
25
|
+
#
|
|
26
|
+
# See also:
|
|
27
|
+
# $ man Mail::SpamAssassin::Conf
|
|
28
|
+
#
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# These two lines will not affect due to Amavisd use its
|
|
32
|
+
# own variables setting in /etc/amavisd.conf.
|
|
33
|
+
required_score 5.0
|
|
34
|
+
rewrite_header subject [ SPAM ]
|
|
35
|
+
|
|
36
|
+
report_safe 0
|
|
37
|
+
lock_method flock
|
|
38
|
+
|
|
39
|
+
#
|
|
40
|
+
# Bayesian support
|
|
41
|
+
#
|
|
42
|
+
# References:
|
|
43
|
+
# - http://wiki.apache.org/spamassassin/BayesInSpamAssassin
|
|
44
|
+
# - http://svn.apache.org/repos/asf/spamassassin/branches/3.3/sql/README.bayes
|
|
45
|
+
# Addition plugin for Roundcube webmail to call sa-learn
|
|
46
|
+
# - http://www.tehinterweb.co.uk/roundcube/#pimarkasjunk2
|
|
47
|
+
#
|
|
48
|
+
use_bayes 1
|
|
49
|
+
bayes_auto_learn 1
|
|
50
|
+
bayes_auto_expire 1
|
|
51
|
+
|
|
52
|
+
# Store bayesian data in MySQL.
|
|
53
|
+
# Please make sure you have correct server address, port and database name.
|
|
54
|
+
#bayes_store_module Mail::SpamAssassin::BayesStore::MySQL
|
|
55
|
+
#bayes_sql_dsn DBI:mysql:sa_bayes:127.0.0.1:3306
|
|
56
|
+
|
|
57
|
+
# Store bayesian data in PostgreSQL.
|
|
58
|
+
# Please make sure you have correct server address, port and database name.
|
|
59
|
+
#bayes_store_module Mail::SpamAssassin::BayesStore::PgSQL
|
|
60
|
+
#bayes_sql_dsn DBI:Pg:database=sa_bayes;host=127.0.0.1;port=5432
|
|
61
|
+
|
|
62
|
+
# SQL username and password.
|
|
63
|
+
#bayes_sql_username db_username
|
|
64
|
+
#bayes_sql_password db_password
|
|
65
|
+
|
|
66
|
+
# Override the username used for storing data in the database.
|
|
67
|
+
# This could be used to group users together to share bayesian filter data.
|
|
68
|
+
# You can also use this config option to trick sa-learn to learn data as a specific user.
|
|
69
|
+
#bayes_sql_override_username vmail
|
|
70
|
+
|
|
71
|
+
# Increase score for message which contains blacklisted or phishing URI
|
|
72
|
+
# URIBL
|
|
73
|
+
#score URIBL_SBL 3
|
|
74
|
+
# dbl.spamhaus.org
|
|
75
|
+
#score URIBL_DBL_SPAM 3
|
|
76
|
+
#score URIBL_DBL_PHISH 3
|
|
77
|
+
#score URIBL_DBL_MALWARE 3
|
|
78
|
+
#score URIBL_DBL_BOTNETCC 3
|
|
79
|
+
#score URIBL_DBL_ABUSE_SPAM 3
|
|
80
|
+
#score URIBL_DBL_ABUSE_REDIR 3
|
|
81
|
+
#score URIBL_DBL_ABUSE_PHISH 3
|
|
82
|
+
#score URIBL_DBL_ABUSE_MALW 3
|
|
83
|
+
#score URIBL_DBL_ABUSE_BOTCC 3
|
|
84
|
+
#score URIBL_DBL_ERROR 0
|
|
85
|
+
# multi.surbl.org
|
|
86
|
+
#score URIBL_WS_SURBL 3
|
|
87
|
+
#score URIBL_PH_SURBL 3
|
|
88
|
+
#score URIBL_MW_SURBL 3
|
|
89
|
+
#score URIBL_CR_SURBL 3
|
|
90
|
+
#score URIBL_ABUSE_SURBL 3
|
|
91
|
+
#score SURBL_BLOCKED 0
|
|
92
|
+
# multi.urlbl.com
|
|
93
|
+
#score URIBL_BLACK 3
|
|
94
|
+
#score URIBL_RED 3
|
|
95
|
+
#score URIBL_BLOCKED 0
|
|
96
|
+
|
|
97
|
+
# DNSBL
|
|
98
|
+
#score RCVD_IN_SBL 5
|
|
99
|
+
#score RCVD_IN_XBL 5
|
|
100
|
+
#score RCVD_IN_PBL 5
|
|
101
|
+
|
|
102
|
+
# Turn off ALL DNSBL (DNS Blocklists)
|
|
103
|
+
#skip_rbl_checks 1
|
|
104
|
+
# Turn off DNSBL: rhsbl.ahbl.org.
|
|
105
|
+
# Check /usr/share/spamassassin/20_dnsbl_test.cf to see the rule name.
|
|
106
|
+
score DNS_FROM_AHBL_RHSBL 0
|
|
107
|
+
|
|
108
|
+
score URIBL_AB_SURBL 0 0.3306 0 0.3812
|
|
109
|
+
score URIBL_JP_SURBL 0 0.3360 0 0.4087
|
|
110
|
+
score URIBL_OB_SURBL 0 0.2617 0 0.3008
|
|
111
|
+
score URIBL_PH_SURBL 0 0.2240 0 0.2800
|
|
112
|
+
score URIBL_SBL 0 0.1094 0 0.1639
|
|
113
|
+
score URIBL_SC_SURBL 0 0.3600 0 0.4498
|
|
114
|
+
score URIBL_WS_SURBL 0 0.1533 0 0.2140
|
|
115
|
+
|
|
116
|
+
# For SpamAssassin-3.2.x. Reference:
|
|
117
|
+
# http://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Plugin_SPF.html
|
|
118
|
+
#do_not_use_mail_spf 0
|
|
119
|
+
#do_not_use_mail_spf_query 1
|
|
120
|
+
#ignore_received_spf_header 1
|
|
121
|
+
|
|
122
|
+
# Trusted networks. Examples:
|
|
123
|
+
# 192.168/16 # all in 192.168.*.*
|
|
124
|
+
# 212.17.35.15 # just that host
|
|
125
|
+
# !10.0.1.5 10.0.1/24 # all in 10.0.1.* but not 10.0.1.5
|
|
126
|
+
# DEAD:BEEF::/32 # all in that ipv6 prefix
|
|
127
|
+
# Local host (127.0.0.1) will automatically be trusted implicitly.
|
|
128
|
+
#trusted_networks 192.168/16
|
|
129
|
+
|
|
130
|
+
# Whitelist from SPF.
|
|
131
|
+
#whitelist_from_spf joe@example.com fred@example.com
|
|
132
|
+
#whitelist_from_spf *@example.com
|
|
133
|
+
|
|
134
|
+
# Whitelist from DKIM.
|
|
135
|
+
loadplugin Mail::SpamAssassin::Plugin::DKIM
|
|
136
|
+
whitelist_from_dkim *@paypal.com
|
|
137
|
+
whitelist_from_dkim *@linkedin.com
|
|
138
|
+
whitelist_from_dkim *@twitter.com
|
|
139
|
+
whitelist_from_dkim *@bounce.twitter.com
|
|
140
|
+
|
|
141
|
+
# Whitelist domains.
|
|
142
|
+
# Reference: http://wiki.apache.org/spamassassin/ManualWhitelist
|
|
143
|
+
#whitelist_from *@gmail.com
|
|
144
|
+
|
|
145
|
+
# Locales.
|
|
146
|
+
ok_locales all
|
|
147
|
+
|
|
148
|
+
# Some sample custom file rules. Refer to SpamAssassin wiki site for more
|
|
149
|
+
# details: http://wiki.apache.org/spamassassin/WritingRules
|
|
150
|
+
#
|
|
151
|
+
# Filter Headers.
|
|
152
|
+
# -- Subject
|
|
153
|
+
#header LOCAL_DEMONSTRATION_SUBJECT Subject =~ /\btest\b/i
|
|
154
|
+
#score LOCAL_DEMONSTRATION_SUBJECT 0.1
|
|
155
|
+
# -- From
|
|
156
|
+
#header LOCAL_DEMONSTRATION_FROM From =~ /test\.com/i
|
|
157
|
+
#score LOCAL_DEMONSTRATION_FROM 0.1
|
|
158
|
+
# -- Look at all the headers and match if any of them contain the specified regex:
|
|
159
|
+
#header LOCAL_DEMONSTRATION_ALL ALL =~ /test\.com/i
|
|
160
|
+
#score LOCAL_DEMONSTRATION_ALL 0.1
|
|
161
|
+
#
|
|
162
|
+
# Filter mail body.
|
|
163
|
+
#body LOCAL_DEMONSTRATION_RULE /test/
|
|
164
|
+
#score LOCAL_DEMONSTRATION_RULE 0.1
|
|
165
|
+
#describe LOCAL_DEMONSTRATION_RULE This is a simple test rule
|
|
166
|
+
|
|
167
|
+
# Decrease score for authenticated senders.
|
|
168
|
+
# IMPORTANT NOTES:
|
|
169
|
+
#
|
|
170
|
+
# 1) Please replace 'your\.server\.com' by the value of Postfix parameter
|
|
171
|
+
# "myhostname".
|
|
172
|
+
# 2) Please set 'smtpd_sasl_authenticated_header = yes' in Postfix main.cf.
|
|
173
|
+
#
|
|
174
|
+
#header AUTHENTICATED_SENDER Received =~ /Authenticated\ sender\:.*by\ your\.server\.com/
|
|
175
|
+
#describe AUTHENTICATED_SENDER Header 'Received:' contains 'Authenticated sender:'
|
|
176
|
+
#score AUTHENTICATED_SENDER -3
|
|
177
|
+
|
|
178
|
+
# Checks if domain name of an envelope sender address matches the domain name
|
|
179
|
+
# of the first untrusted relay (if any), or any trusted relay otherwise.
|
|
180
|
+
# https://wiki.apache.org/spamassassin/Rules/RP_MATCHES_RCVD
|
|
181
|
+
score RP_MATCHES_RCVD 0
|
|
182
|
+
|
|
183
|
+
# SPF mismatch
|
|
184
|
+
score SPF_FAIL 5
|
|
185
|
+
|
|
186
|
+
razor_config PH_SA_PLUGIN_RAZOR_CONF
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
debuglevel = 0
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[appstream]
|
|
2
|
+
name=CentOS Stream $releasever - AppStream
|
|
3
|
+
mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=AppStream&infra=$infra
|
|
4
|
+
#baseurl=http://mirror.centos.org/$contentdir/$stream/AppStream/$basearch/os/
|
|
5
|
+
gpgcheck=1
|
|
6
|
+
enabled=1
|
|
7
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
[powertools]
|
|
2
|
+
name=CentOS Stream $releasever - PowerTools
|
|
3
|
+
mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools&infra=$infra
|
|
4
|
+
#baseurl=http://mirror.centos.org/$contentdir/$stream/PowerTools/$basearch/os/
|
|
5
|
+
gpgcheck=1
|
|
6
|
+
enabled=0
|
|
7
|
+
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# encoding: utf-8
|
|
3
|
+
|
|
4
|
+
# Author: Zhang Huangbin <zhb _at_ iredmail.org>
|
|
5
|
+
# Purpose: Add enabledService=<X> for existing mail users.
|
|
6
|
+
|
|
7
|
+
import ldap
|
|
8
|
+
|
|
9
|
+
# Note: bind_dn must have write privilege on LDAP server.
|
|
10
|
+
uri = 'ldap://127.0.0.1:389'
|
|
11
|
+
basedn = 'o=domains,dc=example,dc=com'
|
|
12
|
+
bind_dn = 'cn=Manager,dc=example,dc=com'
|
|
13
|
+
bind_pw = 'passwd'
|
|
14
|
+
|
|
15
|
+
print("* Connecting to LDAP server:", uri)
|
|
16
|
+
conn = ldap.initialize(uri=uri, trace_level=0)
|
|
17
|
+
conn.bind_s(bind_dn, bind_pw)
|
|
18
|
+
|
|
19
|
+
print("* Get all mail accounts...")
|
|
20
|
+
allUsers = conn.search_s(basedn,
|
|
21
|
+
ldap.SCOPE_SUBTREE,
|
|
22
|
+
"(objectClass=mailUser)",
|
|
23
|
+
['mail', 'enabledService'])
|
|
24
|
+
|
|
25
|
+
total = len(allUsers)
|
|
26
|
+
print("* Total %d user(s)." % total)
|
|
27
|
+
|
|
28
|
+
# Values of 'enabledService' which need to be added.
|
|
29
|
+
services = [b'sogo']
|
|
30
|
+
|
|
31
|
+
# Counter.
|
|
32
|
+
count = 1
|
|
33
|
+
|
|
34
|
+
for user in allUsers:
|
|
35
|
+
(dn, entry) = user
|
|
36
|
+
mail = entry['mail'][0]
|
|
37
|
+
if 'enabledService' not in entry:
|
|
38
|
+
continue
|
|
39
|
+
|
|
40
|
+
enabledService = entry['enabledService']
|
|
41
|
+
|
|
42
|
+
# Get missing values.
|
|
43
|
+
values = [s.lower() for s in services if s not in enabledService]
|
|
44
|
+
|
|
45
|
+
if values:
|
|
46
|
+
mod_attrs = [(ldap.MOD_ADD, 'enabledService', values)]
|
|
47
|
+
|
|
48
|
+
if len(mod_attrs) > 0:
|
|
49
|
+
print("* (%d of %d) Updating user: %s" % (count, total, mail))
|
|
50
|
+
conn.modify_s(dn, mod_attrs)
|
|
51
|
+
else:
|
|
52
|
+
print("* (%d of %d) [SKIP] No update required: %s" % (count, total, mail))
|
|
53
|
+
|
|
54
|
+
count += 1
|
|
55
|
+
|
|
56
|
+
# Unbind connection.
|
|
57
|
+
print("* Unbind LDAP server.")
|
|
58
|
+
conn.unbind()
|
|
59
|
+
|
|
60
|
+
print("* Update completed.")
|