Can now send mail to imap throught smtp

This commit is contained in:
Quentin Legot 2023-10-17 17:00:33 +02:00
parent 817278f79a
commit d490c645a5
6 changed files with 13 additions and 5 deletions

View File

@ -6,7 +6,7 @@ mail_location=sdbox:~/Mail
# mail_uid=1000
# mail_gid=10000
protocols = imap submission lmtp
protocols = imap lmtp
# first_valid_uid = 1000
# last_valid_uid = 10000
@ -34,8 +34,11 @@ namespace {
separator = /
}
lmtp_proxy = yes
service lmtp {
inet_listener {
address = 0.0.0.0
port = 24
}
}

View File

@ -6,6 +6,7 @@ COPY startup.sh /usr/bin/startup.sh
RUN chmod +x /usr/bin/startup.sh
COPY main.cf /etc/postfix/main.cf
COPY virtual /etc/postfix/virtual
COPY vmailbox /etc/postfix/vmailbox
EXPOSE 25
EXPOSE 465

View File

@ -3,12 +3,13 @@ maillog_file = /dev/stdout
# this setting has several side-effects, e.g. the domain of this mail
# server is now example.com, http://www.postfix.org/postconf.5.html#mydomain
myhostname = virt.local
myhostname = smtp.virt.local
mynetworks = 127.0.0.0/8 10.0.0.0/8 192.0.0.0/8 172.17.0.0/16
# disable all compatibility levels
compatibility_level = 9999
virtual_mailbox_domains = virt.local
virtual_mailbox_maps = lmdb:/etc/postfix/virtual
virtual_mailbox_domains = imap.virt.local virt.local
virtual_mailbox_maps = lmdb:/etc/postfix/vmailbox
virtual_alias_maps = lmdb:/etc/postfix/virtual
virtual_transport = lmtp:mail-dovecot.default.svc.cluster.local:24

View File

@ -3,6 +3,7 @@
set -ex
postmap /etc/postfix/virtual
postmap /etc/postfix/vmailbox
newaliases
exec postfix start-fg

View File

@ -1 +1 @@
@virt.local user@virt.local
postmaster@virt.local postmaster

View File

@ -0,0 +1,2 @@
user@virt.local whatever
user2@virt.local whatever