Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Sympa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
NoCloud
docker
Sympa
Commits
eaae65c0
Verified
Commit
eaae65c0
authored
3 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Add SPAM IPs restrictions
parent
7b8fcc9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/postfix/Dockerfile
+5
-1
5 additions, 1 deletion
docker/postfix/Dockerfile
docker/postfix/etc/postfix/main.cf.append
+1
-0
1 addition, 0 deletions
docker/postfix/etc/postfix/main.cf.append
with
6 additions
and
1 deletion
docker/postfix/Dockerfile
+
5
−
1
View file @
eaae65c0
...
@@ -4,11 +4,15 @@ FROM tozd/postfix:ubuntu-focal
...
@@ -4,11 +4,15 @@ FROM tozd/postfix:ubuntu-focal
VOLUME
/etc/sympa/shared
VOLUME
/etc/sympa/shared
RUN
apt-get update
-q
-q
&&
\
RUN
apt-get update
-q
-q
&&
\
apt-get
install
adduser dnsutils openssh-client opendkim opendkim-tools
--yes
--force-yes
&&
\
apt-get
install
adduser
curl
dnsutils openssh-client opendkim opendkim-tools
--yes
--force-yes
&&
\
adduser
--system
--group
mailpipe
--no-create-home
--home
/nonexistent
&&
\
adduser
--system
--group
mailpipe
--no-create-home
--home
/nonexistent
&&
\
cp
/etc/postfix/main.cf /etc/postfix/main.cf.orig
&&
\
cp
/etc/postfix/main.cf /etc/postfix/main.cf.orig
&&
\
cp
/etc/postfix/master.cf /etc/postfix/master.cf.orig
cp
/etc/postfix/master.cf /etc/postfix/master.cf.orig
RUN echo '$IncludeConfig /etc/rsyslog.d1/*.conf' >> /etc/rsyslog.conf1
RUN echo '$IncludeConfig /etc/rsyslog.d1/*.conf' >> /etc/rsyslog.conf1
RUN
curl https://okean.com/sinokoreacidr.txt
\
|
sed
-e
's/\(China\|Korea\)/REJECT Source IP blocked \1/g'
\
>
/etc/postfix/sinokorea.cidr
COPY
./etc /etc
COPY
./etc /etc
This diff is collapsed.
Click to expand it.
docker/postfix/etc/postfix/main.cf.append
+
1
−
0
View file @
eaae65c0
...
@@ -26,3 +26,4 @@ milter_default_action = accept
...
@@ -26,3 +26,4 @@ milter_default_action = accept
milter_protocol = 6
milter_protocol = 6
smtpd_milters = inet:localhost:8892
smtpd_milters = inet:localhost:8892
non_smtpd_milters = inet:localhost:8892
non_smtpd_milters = inet:localhost:8892
smtpd_client_restrictions = check_client_access cidr:/etc/postfix/sinokorea.cidr
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