Can now send mail to imap throught smtp
This commit is contained in:
parent
817278f79a
commit
d490c645a5
@ -6,7 +6,7 @@ mail_location=sdbox:~/Mail
|
|||||||
# mail_uid=1000
|
# mail_uid=1000
|
||||||
# mail_gid=10000
|
# mail_gid=10000
|
||||||
|
|
||||||
protocols = imap submission lmtp
|
protocols = imap lmtp
|
||||||
|
|
||||||
# first_valid_uid = 1000
|
# first_valid_uid = 1000
|
||||||
# last_valid_uid = 10000
|
# last_valid_uid = 10000
|
||||||
@ -34,8 +34,11 @@ namespace {
|
|||||||
separator = /
|
separator = /
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lmtp_proxy = yes
|
||||||
|
|
||||||
service lmtp {
|
service lmtp {
|
||||||
inet_listener {
|
inet_listener {
|
||||||
|
address = 0.0.0.0
|
||||||
port = 24
|
port = 24
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ COPY startup.sh /usr/bin/startup.sh
|
|||||||
RUN chmod +x /usr/bin/startup.sh
|
RUN chmod +x /usr/bin/startup.sh
|
||||||
COPY main.cf /etc/postfix/main.cf
|
COPY main.cf /etc/postfix/main.cf
|
||||||
COPY virtual /etc/postfix/virtual
|
COPY virtual /etc/postfix/virtual
|
||||||
|
COPY vmailbox /etc/postfix/vmailbox
|
||||||
|
|
||||||
EXPOSE 25
|
EXPOSE 25
|
||||||
EXPOSE 465
|
EXPOSE 465
|
||||||
|
@ -3,12 +3,13 @@ maillog_file = /dev/stdout
|
|||||||
|
|
||||||
# this setting has several side-effects, e.g. the domain of this mail
|
# 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
|
# 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
|
# disable all compatibility levels
|
||||||
compatibility_level = 9999
|
compatibility_level = 9999
|
||||||
|
|
||||||
virtual_mailbox_domains = virt.local
|
virtual_mailbox_domains = imap.virt.local virt.local
|
||||||
virtual_mailbox_maps = lmdb:/etc/postfix/virtual
|
virtual_mailbox_maps = lmdb:/etc/postfix/vmailbox
|
||||||
virtual_alias_maps = lmdb:/etc/postfix/virtual
|
virtual_alias_maps = lmdb:/etc/postfix/virtual
|
||||||
virtual_transport = lmtp:mail-dovecot.default.svc.cluster.local:24
|
virtual_transport = lmtp:mail-dovecot.default.svc.cluster.local:24
|
@ -3,6 +3,7 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
postmap /etc/postfix/virtual
|
postmap /etc/postfix/virtual
|
||||||
|
postmap /etc/postfix/vmailbox
|
||||||
newaliases
|
newaliases
|
||||||
|
|
||||||
exec postfix start-fg
|
exec postfix start-fg
|
||||||
|
@ -1 +1 @@
|
|||||||
@virt.local user@virt.local
|
postmaster@virt.local postmaster
|
||||||
|
2
dockerfiles/postfix/vmailbox
Normal file
2
dockerfiles/postfix/vmailbox
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
user@virt.local whatever
|
||||||
|
user2@virt.local whatever
|
Loading…
Reference in New Issue
Block a user