Compare commits
6 Commits
dae232d3f7
...
ccb9bd344a
Author | SHA1 | Date | |
---|---|---|---|
ccb9bd344a
|
|||
b4dcf77e0a | |||
47083691bb | |||
75e8683238 | |||
2e4e41bf6e | |||
dea136d331 |
@ -82,6 +82,7 @@ nano /etc/prosody/prosody.cfg.lua /etc/dovecot/dovecot.conf /etc/postfix/main.cf
|
||||
|
||||
Create database tables, activate firewall and enable cron:
|
||||
```
|
||||
postmap /etc/postfix/header_checks
|
||||
cd /var/www/mail && php setup.php && chmod +x /etc/rc.local && /etc/rc.local && systemctl enable mail-cron.timer
|
||||
```
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
/^To:.*@[^@]*\.de-mail\.de/ REJECT "Sorry, you tried contacting a De-Mail Address. This is a special System by the German government, not compatible with E-Mail. More info here: https://www.cio.bund.de/Web/DE/Innovative-Vorhaben/De-Mail/de_mail_node.html"
|
||||
/^To:.*@[^@]*\.de-mail\.de/ REJECT "Sorry, you tried contacting a De-Mail Address. This is a special System by the German government, not compatible with E-Mail. More info here: https://de-mail.info/"
|
||||
/^(To|From).*@example\.com/ REJECT
|
||||
|
@ -1 +0,0 @@
|
||||
DESKTOPRaihan REJECT
|
@ -68,7 +68,6 @@ smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:12340, permit
|
||||
smtpd_sender_restrictions = reject_sender_login_mismatch, check_sender_access inline:{{<> = REJECT}}, permit_sasl_authenticated
|
||||
smtpd_relay_restrictions = permit_sasl_authenticated, permit_auth_destination, reject_unauth_destination
|
||||
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_auth_maps.cf
|
||||
smtpd_helo_restrictions = check_helo_access hash:/etc/postfix/helo_checks
|
||||
|
||||
# anti-spam settings
|
||||
smtpd_milters = inet:127.0.0.1:11332
|
||||
@ -76,7 +75,6 @@ non_smtpd_milters = inet:127.0.0.1:11332
|
||||
milter_default_action = tempfail
|
||||
milter_protocol = 6
|
||||
header_checks = regexp:/etc/postfix/header_checks
|
||||
body_checks = regexp:/etc/postfix/body_checks
|
||||
disable_vrfy_command = yes
|
||||
smtpd_discard_ehlo_keywords = silent-discard, dsn
|
||||
smtpd_delay_reject = yes
|
||||
|
@ -8,7 +8,7 @@ workingdir=$(pwd)
|
||||
|
||||
# install all required packages
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y apt-transport-tor bash-completion bind9 ca-certificates clamav-daemon clamav-freshclam curl dovecot-imapd dovecot-lmtpd dovecot-pop3d git gnupg haveged iptables libsasl2-modules locales locales-all logrotate lsb-release mariadb-server mercurial nano nginx openssl php8.2-cli php8.2-curl php8.2-fpm php8.2-gd php8.2-gmp php8.2-gnupg php8.2-imap php8.2-intl php8.2-mbstring php8.2-mysql php8.2-pspell php8.2-readline postfix postfix-mysql prosody redis rspamd tor vim wget unzip wireguard wireguard-tools
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y apt-transport-tor bash-completion bind9 ca-certificates clamav-daemon clamav-freshclam curl dovecot-imapd dovecot-lmtpd dovecot-pop3d git gnupg haveged iptables libsasl2-modules locales locales-all logrotate lsb-release mariadb-server mercurial nano nginx openssl php8.2-cli php8.2-curl php8.2-fpm php8.2-gd php8.2-gmp php8.2-gnupg php8.2-imap php8.2-intl php8.2-mbstring php8.2-mysql php8.2-pspell php8.2-readline postfix postfix-mysql prosody redis rspamd tor vim wget unzip brotli wireguard wireguard-tools
|
||||
|
||||
# install composer
|
||||
curl -sSL https://github.com/composer/composer/releases/download/2.7.6/composer.phar > /usr/bin/composer
|
||||
@ -29,7 +29,12 @@ if [ ! -e /etc/dovecot/ecprivkey.pem ]; then
|
||||
fi
|
||||
# postifx certificates
|
||||
if [ ! -e /etc/postfix/danwin1210-mail.chain ]; then
|
||||
openssl req -x509 -nodes -days 3650 -newkey ed448 -subj "/" -keyout /etc/postfix/danwin121-mail.key -out /etc/postfix/danwin1210-mail.crt && cat /etc/postfix/danwin1210-mail.key >> /etc/postfix/danwin1210-mail.chain && cat /etc/postfix/danwin1210-mail.crt >> /etc/postfix/danwin1210-mail.chain
|
||||
openssl req -x509 -nodes -days 3650 -newkey ed448 -subj "/" -keyout /etc/postfix/danwin1210-mail.key -out /etc/postfix/danwin1210-mail.crt && cat /etc/postfix/danwin1210-mail.key >> /etc/postfix/danwin1210-mail.chain && cat /etc/postfix/danwin1210-mail.crt >> /etc/postfix/danwin1210-mail.chain
|
||||
fi
|
||||
|
||||
# Nginx
|
||||
if [ ! -e /etc/nginx/dh4096.pem ]; then
|
||||
openssl dhparam -out /etc/nginx/dh4096.pem 4096
|
||||
fi
|
||||
|
||||
#install scripts
|
||||
|
Reference in New Issue
Block a user