Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

502 AUTH not supported #1

Open
tommycw1 opened this issue Nov 4, 2020 · 0 comments
Open

502 AUTH not supported #1

tommycw1 opened this issue Nov 4, 2020 · 0 comments

Comments

@tommycw1
Copy link

tommycw1 commented Nov 4, 2020

Hello, I am trying to use this smtp2mqtt server to receive email from my IP camera when they detected motion to trigger stuff on my home automation system.

It seems that I cannot configure my camera to properly connect, however I have been able to connect to the smtp2mqtt from thunderbird email client as well as directly sending SMTP commands over telnet both from the same box that the server is running on as well as other boxes on my LAN.

In trying to debug this I stopped smtp2mqtt and started a dummy SMTP server that just prints what it receives to the console. It seems that my camera tries to connect with the following:

Incoming connection from ('192.168.1.136', 55023)
Peer: ('192.168.1.136', 55023)
Data: 'EHLO localhost'
Data: 'HELO localhost'
Data: 'AUTH LOGIN'
Data: 'QUIT'

So then I stopped my dummy SMTP server and restarted smtp2mqtt. Next I connected via telnet and entered the same commands to see what the response was from smtp2mqtt, here is what I got:

tom@mythfe:~$ telnet 192.168.1.50 10025
Trying 192.168.1.50...
Connected to 192.168.1.50.
Escape character is '^]'.
220 MQTT-forwarder ESMTP ready.
helo test
250 Go ahead
AUTH LOGIN
502 AUTH not supported.

So, it seems that auth login is not supported and that my camera then closes the connection when receiving this command - since it cannot proceed

I am starting the server with a uname/passwd defined so I am surprised this is rejected:

./smtp2mqtt_linux_amd64 -json -topic orbital/motion -mqtt tcp://127.0.0.1:1883 -listen 192.168.1.50:10025 -user test -password test -debug

There seems to be no way to stop my camera from sending this auth string. Is this expected behavior for this server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant