WilliamFromTW / docker-postfix-openldap

docker , centos , postfix , rspamnd with backend openldap authentication
1 stars 1 forks source link

postfix relay access denied with MY_NETWORKS defined #2

Closed changchichung closed 2 years ago

changchichung commented 2 years ago

my command to run the container

docker run --name postfixldap -v /etc/letsencrypt:/etc/letsencrypt \
-v postfixldap_vmail:/home/vmail \
-v postfixldap_postfix:/etc/postfix \
-v postfixldap_dovecot:/etc/dovecot \
-v postfixldap_rspamd:/etc/rspamd \
-v postfixldap_log:/var/log \
-p 25:25 -p 110:110 -p 143:143 -p 465:465 -p 587:587  -p 993:993 -p 995:995 -p 4190:419 \
-e DOMAIN_NAME="test.com" \
-e HOST_NAME="hqs013"  \
-e HOST_IP="192.168.11.1"  \
-e SEARCH_BASE="ou=People,dc=test,dc=com" \
-e BIND_DN="cn=admin,dc=test,dc=com" \
-e BIND_PW="PASSWORD"  \
-e TZ="Asia/Taipei" \
-e ENABLE_QUOTA="true" --restart always \
-e MY_NETWERKS="192.168.11.1/24"
-d inmethod/docker-postfix-openldap:0.1

and test SMTP via telnet

2022-02-14 11:39:22 [docker-postfix-openldap]$ telnet 192.168.11.13 25
Trying 192.168.11.13...
Connected to 192.168.11.13.
Escape character is '^]'.
220 hqs013 ESMTP Postfix
ehlo me
250-s013
250-PIPELINING
250-SIZE 104857600
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: <changch@test.com>
250 2.1.0 Ok
rcpt to: <chang0206@gmail.com>
454 4.7.1 <chang0206@gmail.com>: Relay access denied

Did I miss something ??? any variable should be modified ?