shenxn / protonmail-bridge-docker

ProtonMail IMAP/SMTP Bridge Docker container
GNU General Public License v3.0
356 stars 73 forks source link

Can't access smtp server #16

Open northorsouth opened 3 years ago

northorsouth commented 3 years ago

I can't seem to access the smtp server from the host. I ran the initial setup command and successfully added my account. This is my command for running the docker:

docker run \
        -d \
        --network bridge \
        --restart unless-stopped \
        --name protonmail-bridge \
        -p 1143:143/tcp \
        -p 1025:25/tcp \
        -v /mnt/pool1-fs1/protonmail/data/:/root \
        shenxn/protonmail-bridge:latest

But I get no response when contacting the SMTP server through telnet:

telnet localhost 1025
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

I have also tried to send mail using curl, mutt, and sendmail. None of them have worked. This is my .muttrc file:

set from="user@protonmail.com"
set smtp_url="smtp://user@protonmail.com:password@localhost:1025/"
set ssl_starttls=yes
set ssl_force_tls=yes
set send_charset="us-ascii:utf-8"

Any help would be appreciated. Or if this is a bug, please let me know.

northorsouth commented 3 years ago

Forgot to mention, I'm on Debian stable (buster)

shenxn commented 3 years ago

I'm not sure what causes this problem. Can you try the shenxn/protonmail-bridge:build image? Also, do you see anything related in the container log?

camps7ee commented 2 years ago

Login to the container via _docker exec -it bash_. Once you're in just run ./entrypoint.sh and let it run. If you get permission denied, then run chmod +x ./entrypoint.sh and try again.

Make sure you've configured your settings via protonmail-bridge --cli beforehand.