Procházet zdrojové kódy

Don't reject onion domains

Bob Mottram před 7 roky
rodič
revize
c623ddae3c
1 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 6
    2
      src/freedombone-base-email

+ 6
- 2
src/freedombone-base-email Zobrazit soubor

@@ -269,7 +269,10 @@ function configure_email_onion {
269 269
     # 20:$onion_address
270 270
     # 3600 IN SRV 0 5 25 $onion_address
271 271
 
272
-    # Test with: exim -d -bt username@$onion_address
272
+    # To test the system, on receiving server:
273
+    #   exim -bd -d -oX 25
274
+    # On the sensing server:
275
+    #   exim -d -oX 25 -bt username@$onion_address
273 276
 
274 277
     { echo "perl_startup = do '/etc/exim4/perl-routines.pl'";
275 278
       echo "perl_at_start"; } > /etc/exim4/conf.d/main/00_exim4-config_perl
@@ -1093,7 +1096,8 @@ function spam_filtering {
1093 1096
     # This configuration is based on https://wiki.debian.org/DebianSpamAssassin
1094 1097
     sed -i 's/local_parts = postmaster/local_parts = postmaster:abuse/g' /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt
1095 1098
     sed -i '/domains = +local_domains : +relay_to_domains/a\    set acl_m0 = rfcnames' /etc/exim4/conf.d/acl/30_exim4-config_check_rcpt
1096
-    sed -i "s/accept/accept condition = \${if eq{\$acl_m0}{rfcnames} {1}{0}}/g" /etc/exim4/conf.d/acl/40_exim4-config_check_data
1099
+    # This prevents .onion domains from being accepted
1100
+    #sed -i "s/accept/accept condition = \${if eq{\$acl_m0}{rfcnames} {1}{0}}/g" /etc/exim4/conf.d/acl/40_exim4-config_check_data
1097 1101
 
1098 1102
     { echo "warn  message = X-Spam-Score: \$spam_score (\$spam_bar)";
1099 1103
       echo '      spam = nobody:true';