accept mail only from tilde servers

This commit is contained in:
James Tomasino 2020-09-18 20:22:40 +00:00
parent c7d5358dce
commit 8a1b3b2f54
2 changed files with 43 additions and 44 deletions

View File

@ -54,8 +54,8 @@ menu:
postfix: postfix:
if ! grep -q 'transport_maps' "/etc/postfix/main.cf"; then \ if ! grep -q 'transport_maps' "/etc/postfix/main.cf"; then \
printf "transport_maps = hash:/etc/postfix/transport" >> "/etc/postfix/main.cf"; \ printf "transport_maps = hash:/etc/postfix/transport\n" >> "/etc/postfix/main.cf"; \
printf "smtpd_sender_restrictions = hash:/etc/postfix/access" >> "/etc/postfix/main.cf"; \ printf "smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/access, reject" >> "/etc/postfix/main.cf"; \
fi fi
stow -t "/etc/postfix" postfix stow -t "/etc/postfix" postfix
sudo chown root /etc/postfix/transport sudo chown root /etc/postfix/transport

View File

@ -1,42 +1,41 @@
cosmic.voyage ALLOW cosmic.voyage permit_auth_destination
.aussies.space ALLOW .aussies.space permit_auth_destination
.circumlunar.space ALLOW .circumlunar.space permit_auth_destination
.hashbang.sh ALLOW .hashbang.sh permit_auth_destination
.thunix.cf ALLOW .thunix.cf permit_auth_destination
.thunix.net ALLOW .thunix.net permit_auth_destination
.tildeverse.org ALLOW .tildeverse.org permit_auth_destination
aussies.space ALLOW aussies.space permit_auth_destination
circumlunar.space ALLOW circumlunar.space permit_auth_destination
ctrl-c.club ALLOW ctrl-c.club permit_auth_destination
envs.net ALLOW envs.net permit_auth_destination
radiofreqs.space ALLOW radiofreqs.space permit_auth_destination
rw.rs ALLOW rw.rs permit_auth_destination
fuckup.club ALLOW fuckup.club permit_auth_destination
grex.org ALLOW grex.org permit_auth_destination
hashbang.sh ALLOW hashbang.sh permit_auth_destination
nand.sh ALLOW nand.sh permit_auth_destination
rawtext.club ALLOW rawtext.club permit_auth_destination
sdf.org ALLOW sdf.org permit_auth_destination
thunix.cf ALLOW thunix.cf permit_auth_destination
thunix.net ALLOW thunix.net permit_auth_destination
tild3.org ALLOW tild3.org permit_auth_destination
tilde.chat ALLOW tilde.chat permit_auth_destination
tilde.club ALLOW tilde.club permit_auth_destination
tilde.institute ALLOW tilde.institute permit_auth_destination
tilde.life ALLOW tilde.life permit_auth_destination
tilde.news ALLOW tilde.news permit_auth_destination
tilde.pink ALLOW tilde.pink permit_auth_destination
tilde.site ALLOW tilde.site permit_auth_destination
tilde.team ALLOW tilde.team permit_auth_destination
tilde.town ALLOW tilde.town permit_auth_destination
tilde.wiki ALLOW tilde.wiki permit_auth_destination
tilde.wtf ALLOW tilde.wtf permit_auth_destination
tilde.zone ALLOW tilde.zone permit_auth_destination
tildegit.org ALLOW tildegit.org permit_auth_destination
tildenet.org ALLOW tildenet.org permit_auth_destination
tilderadio.org ALLOW tilderadio.org permit_auth_destination
tildeteam.org ALLOW tildeteam.org permit_auth_destination
tildeverse.org ALLOW tildeverse.org permit_auth_destination
ttm.sh ALLOW ttm.sh permit_auth_destination
yourtilde.com ALLOW yourtilde.com permit_auth_destination
* REJECT