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
844fb2e9
Unverified
Commit
844fb2e9
authored
6 years ago
by
Thomas Picouet
Committed by
Rémy Huet
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[A JOUR] fichiers de config pour authentification LDAP
parent
c48f4248
No related branches found
Branches containing commit
No related tags found
1 merge request
!20
pica-mailnt
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pica-mail-mda/auth_LDAP/10-mail.conf
+2
-2
2 additions, 2 deletions
pica-mail-mda/auth_LDAP/10-mail.conf
pica-mail-mda/auth_LDAP/Dockerfile
+3
-4
3 additions, 4 deletions
pica-mail-mda/auth_LDAP/Dockerfile
pica-mail-mda/auth_LDAP/entrypoint.sh
+4
-24
4 additions, 24 deletions
pica-mail-mda/auth_LDAP/entrypoint.sh
with
9 additions
and
30 deletions
pica-mail-mda/auth_LDAP/10-mail.conf
+
2
−
2
View file @
844fb2e9
#dovecot 10-mail.conf default file modified in order set mail storage format and mail storage location
#all Pica alterations are commented with a #pica label
#all Pica alterations are commented with a #
/!\
pica label
##
## Mailbox locations and namespaces
...
...
@@ -30,7 +30,7 @@
#
# <doc/wiki/MailLocation.txt>
#
#pica: set mail storage format and location in line with virtual users
#
/!\
pica: set mail storage format and location in line with virtual users
mail_home
= /
var
/
vmail
/%
u
mail_location
=
maildir
:~/
mail
...
...
This diff is collapsed.
Click to expand it.
pica-mail-mda/auth_LDAP/Dockerfile
+
3
−
4
View file @
844fb2e9
...
...
@@ -8,15 +8,14 @@ ENV DEBIAN_FRONTEND noninteractive
#installation des paquets debian
RUN
apt-get update
-y
\
&&
apt-get
install
-y
\
dovecot-common dovecot-imapd dovecot-lmtpd
\
dovecot-common dovecot-imapd dovecot-lmtpd
nano
\
&&
rm
-rf
/var/lib/apt/lists/
*
#configuration de dovecot
#adresse ip locale du lda (serveur qui réceptionne les courriers de fin de chaîne de postfix)
COPY
./dovecot-conf/10-master.conf /etc/dovecot/conf.d/10-master.conf
COPY
./dovecot-conf/10-mail.conf /etc/dovecot/conf.d/10-mail.conf
COPY
entrypoint
_test
.sh /
COPY
entrypoint.sh /
ENTRYPOINT
["/entrypoint
_test
.sh"]
ENTRYPOINT
["/entrypoint.sh"]
This diff is collapsed.
Click to expand it.
pica-mail-mda/auth_LDAP/entrypoint.sh
+
4
−
24
View file @
844fb2e9
...
...
@@ -6,27 +6,6 @@ cat <<EOF >> /etc/dovecot/dovecot.conf
protocols = imap lmtp
EOF
#définition de l'emplacement des mails
cat
<<
EOF
>> /etc/dovecot/conf.d/10-master.conf
mail_home = /var/vmail/%d/%n
mail_location = maildir:~/mail
EOF
# enable plaintest authentication for now.
cat
<<
EOF
>> /etc/dovecot/conf.d/10-auth.conf
disable_plaintext_auth = no
auth_verbose = yes
auth_mechanisms = plain
passdb {
driver = passwd-file
args = /etc/dovecot/passwd
}
userdb {
driver = static
args = uid=vmail gid=vmail home=/home/vmail/%u
}
EOF
#définition de l'emplacement des logs
cat
<<
EOF
>> /etc/dovecot/dovecot.conf
log_path = /var/log/dovecot.log
...
...
@@ -46,9 +25,10 @@ service lmtp {
}
EOF
#ajouter utilisateur et groupe vmail
#ajouter les fichiers de logs
adduser
--disabled-password
vmail
#ajouter utilisateur et groupe vmail avec password demandé à la première connexion
adduser
--disabled-login
vmail
#log écrites par vmail
touch
/var/log/dovecot.log /var/log/dovecot-info.log
chown
vmail:vmail var/log/dovecot.log /var/log/dovecot-info/log
...
...
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