Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
94bb0331
Unverified
Commit
94bb0331
authored
6 years ago
by
Roma
Committed by
Rémy Huet
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implémentation de SSL, ouverture au monde extérieur sur SMTP (25) et SMTPS (465)
parent
3096599c
No related branches found
Branches containing commit
No related tags found
1 merge request
!20
pica-mailnt
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose/mail.yml
+4
-3
4 additions, 3 deletions
docker-compose/mail.yml
pica-mail-mta/entrypoint.sh
+7
-7
7 additions, 7 deletions
pica-mail-mta/entrypoint.sh
with
11 additions
and
10 deletions
docker-compose/mail.yml
+
4
−
3
View file @
94bb0331
...
...
@@ -18,8 +18,9 @@ services:
build
:
../pica-mail-mta
image
:
pica-mail-mta
container_name
:
pica-mail-mta
# ports:
# - "25:25"
ports
:
-
"
25:25"
-
"
465:465"
networks
:
-
mail
volumes
:
...
...
@@ -30,7 +31,7 @@ services:
-
LMTP_LAN_HOSTNAME=pica-mail-mda.pica_mail
labels
:
-
"
traefik.frontend.rule=Host:mail-test-picasoft.maliach.fr"
#
- "traefik.port=80"
-
"
traefik.port=80"
-
"
traefik.enable=true"
-
"
traefik.docker.network=pica_mail"
...
...
This diff is collapsed.
Click to expand it.
pica-mail-mta/entrypoint.sh
+
7
−
7
View file @
94bb0331
...
...
@@ -67,13 +67,11 @@ EOF
dpkg-statoverride
--add
root sasl 710 /var/spool/postfix/var/run/saslauthd
adduser postfix sasl
service saslauthd restart
#
le SASL se fait entre le client SMTP et le conteneur MTA, donc on indique notre nom d'hôte
#
activation du sasl
postconf
-e
'smtpd_sasl_local_domain = '
postconf
-e
'smtpd_sasl_auth_enable = yes'
#interdit le sasl avec mot de passe en clair sur un canal en clair. (il existe des méthodes permettant de chiffrer seulement le mot de passe)
postconf
-e
'smtpd_sasl_security_options = noanonymous, noplaintext'
#autorise le sasl avec mot de passe en clair sur un canal tls
postconf
-e
'smtpd_sasl_tls_security_options = noanonymous'
#autorise l'auth sasl seulement sur un canal tls
postconf
-e
'smtpd_tls_auth_only = yes'
#autorise l'auth depuis des clients connus comme obsolètes/non standard (outlook) mais ne présentant pas de faille de sécurité
postconf
-e
'broken_sasl_auth_clients = yes'
...
...
@@ -123,8 +121,10 @@ postconf -e 'smtpd_tls_security_level = may'
#activation du service smtps (sur le port 465 par défaut)
cat
<<
EOF
>> /etc/postfix/master.cf
smtps inet n - y - - smtpd
EOF
#configuration du socket TCP/IP, on est obligé d'utiliser ipv4 pour la local delivery car les docker network ne supportent pas iPv6 par défaut
postconf
-e
"inet_protocols = ipv4"
...
...
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