namshi / docker-smtp

SMTP docker container
MIT License
548 stars 199 forks source link

entrypoint.sh MAIN_TLS_ENABLE = yes #80

Open grumblebrian opened 3 years ago

grumblebrian commented 3 years ago

entrypoint.sh contains the following conditional block that is either incorrect or unnecessary:

        if [ "$MAILNAME" ]; then
                echo "MAIN_TLS_ENABLE = yes" >> /etc/exim4/exim4.conf.localmacro
s
        else
                echo "MAIN_TLS_ENABLE = yes" >> /etc/exim4/exim4.conf.localmacros
        fi

I suspect that the else clause should be setting MAIN_TLS_ENABLE to no if there is MAILNAME variable set, but I could be mistaken.