Skip to content

Commit

Permalink
Bump email
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Feb 5, 2024
1 parent ed17113 commit e4ef092
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
4 changes: 2 additions & 2 deletions services/email/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get update && \
RUN chmod +x /usr/sbin/vsmtp ; mkdir /etc/vsmtp/domain-enabled/erebe.eu/

# Dovcecot configuration
# Disable imap port, only allow IMAPs
# Disable imaps port, and local network as trusted peer
RUN sed -i 's/#login_trusted_networks =/login_trusted_networks = fd00:cafe::\/32/' /etc/dovecot/dovecot.conf && \
# The only one user will have its mailbox at /data
sed -iE 's#mail_location =.*#mail_location = maildir:/data#' /etc/dovecot/conf.d/10-mail.conf && \
Expand Down Expand Up @@ -46,7 +46,7 @@ COPY vsmtp/erebe.eu /etc/vsmtp/domain-enabled/erebe.eu
VOLUME /data
VOLUME /etc/dovecot/users
EXPOSE 25
EXPOSE 993
EXPOSE 143

#USER erebe

Expand Down
2 changes: 1 addition & 1 deletion services/email/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
ports:
- containerPort: 25
- containerPort: 587
- containerPort: 993
- containerPort: 143
env:
- name: SMTP_PASSWORD
valueFrom:
Expand Down
15 changes: 2 additions & 13 deletions services/email/vsmtp/config.vsl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn on_config(config) {
// Specify addresses that the server will listen to.
config.server.interfaces = #{
addr: ["[::]:25"],
addr_submission: ["[::]:587"],
addr_submission: [],
addr_submissions: [],
};

Expand All @@ -30,19 +30,8 @@ fn on_config(config) {
config.server.virtual = #{
"mail.erebe.eu": #{
"is_default": true,
"tls": #{
protocol_version: ["TLSv1.2", "TLSv1.3"],
certificate: "/etc/dovecot/private/tls.crt",
private_key: "/etc/dovecot/private/tls.key",
}
},
"erebe.eu": #{
"tls": #{
protocol_version: ["TLSv1.2", "TLSv1.3"],
certificate: "/etc/dovecot/private/tls.crt",
private_key: "/etc/dovecot/private/tls.key",
}
}
"erebe.eu": #{ }
};

// Change filter rules locations.
Expand Down

0 comments on commit e4ef092

Please sign in to comment.