Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
c623ddae
Commit
c623ddae
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Don't reject onion domains
parent
93720062
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-base-email
+6
-2
6 additions, 2 deletions
src/freedombone-base-email
with
6 additions
and
2 deletions
src/freedombone-base-email
+
6
−
2
View file @
c623ddae
...
...
@@ -269,7 +269,10 @@ function configure_email_onion {
# 20:$onion_address
# 3600 IN SRV 0 5 25 $onion_address
# Test with: exim -d -bt username@$onion_address
# To test the system, on receiving server:
# exim -bd -d -oX 25
# On the sensing server:
# exim -d -oX 25 -bt username@$onion_address
{
echo
"perl_startup = do '/etc/exim4/perl-routines.pl'"
;
echo
"perl_at_start"
;
}
>
/etc/exim4/conf.d/main/00_exim4-config_perl
...
...
@@ -1093,7 +1096,8 @@ function spam_filtering {
# This configuration is based on https://wiki.debian.org/DebianSpamAssassin
sed
-i
's/local_parts = postmaster/local_parts = postmaster:abuse/g'
/etc/exim4/conf.d/acl/30_exim4-config_check_rcpt
sed
-i
'/domains = +local_domains : +relay_to_domains/a\ set acl_m0 = rfcnames'
/etc/exim4/conf.d/acl/30_exim4-config_check_rcpt
sed
-i
"s/accept/accept condition =
\$
{if eq{
\$
acl_m0}{rfcnames} {1}{0}}/g"
/etc/exim4/conf.d/acl/40_exim4-config_check_data
# This prevents .onion domains from being accepted
#sed -i "s/accept/accept condition = \${if eq{\$acl_m0}{rfcnames} {1}{0}}/g" /etc/exim4/conf.d/acl/40_exim4-config_check_data
{
echo
"warn message = X-Spam-Score:
\$
spam_score (
\$
spam_bar)"
;
echo
' spam = nobody:true'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment