YoRyan / mailrise

An SMTP gateway for Apprise notifications.
https://mailrise.xyz
MIT License
898 stars 39 forks source link

mailto doesn't work #94

Open cozhelp opened 11 months ago

cozhelp commented 11 months ago

I need help getting Mailrise to send emails through Gmail. I can get it to work for Apprise. I'm able to get Mailrise to work for other services like ntfy. I am using the Gmail app password like Apprise specifies.

configs:

  "*@*":
    urls:
      - mailto://myuser:myapppassword@gmail.com

tls:
  mode: off
YoRyan commented 11 months ago

Try the -vv flag to turn on verbose logging. Does anything interesting show up?

djonko commented 10 months ago

Same problem here : I have set basic authentication without tls My config

configs:
  ntfy:
    urls:
      - ntfy://192.168.0.7:9999/fdsjlfd
  "*@dfd.dfd.com":
    urls:
      - ntfy://192.168.0.1:8888/dfdfkdf
smtp:
  auth:
    basic:
      dfdxx: zzzz
      testpwd: xxxx
tls:
  mode: off

but I have now this error

Attaching to mailrise-server mailrise-server | /home/mailrise/.local/lib/python3.12/site-packages/aiosmtpd/smtp.py:372: UserWarning: Requiring AUTH while not requiring TLS can lead to security vulnerabilities! mailrise-server | warn("Requiring AUTH while not requiring TLS " mailrise-server | [2024-01-06 14:44:53] WARNING:mail.log:auth_required == True but auth_require_tls == False mailrise-server | /home/mailrise/.local/lib/python3.12/site-packages/aiosmtpd/smtp.py:372: UserWarning: Requiring AUTH while not requiring TLS can lead to security vulnerabilities! mailrise-server | warn("Requiring AUTH while not requiring TLS " mailrise-server | [2024-01-06 14:47:33] WARNING:mail.log:auth_required == True but auth_require_tls == False mailrise-server | /home/mailrise/.local/lib/python3.12/site-packages/aiosmtpd/smtp.py:372: UserWarning: Requiring AUTH while not requiring TLS can lead to security vulnerabilities! mailrise-server | warn("Requiring AUTH while not requiring TLS " mailrise-server | [2024-01-06 14:49:36] WARNING:mail.log:auth_required == True but auth_require_tls == False mailrise-server | /home/mailrise/.local/lib/python3.12/site-packages/aiosmtpd/smtp.py:372: UserWarning: Requiring AUTH while not requiring TLS can lead to security vulnerabilities! mailrise-server | warn("Requiring AUTH while not requiring TLS " mailrise-server | [2024-01-06 14:49:44] WARNING:mail.log:auth_required == True but auth_require_tls == False mailrise-server | /home/mailrise/.local/lib/python3.12/site-packages/aiosmtpd/smtp.py:372: UserWarning: Requiring AUTH while not requiring TLS can lead to security vulnerabilities! mailrise-server | warn("Requiring AUTH while not requiring TLS " mailrise-server | [2024-01-06 14:50:25] WARNING:mail.log:auth_required == True but auth_require_tls == False mailrise-server | /home/mailrise/.local/lib/python3.12/site-packages/aiosmtpd/smtp.py:372: UserWarning: Requiring AUTH while not requiring TLS can lead to security vulnerabilities! mailrise-server | warn("Requiring AUTH while not requiring TLS " mailrise-server | [2024-01-06 14:50:26] WARNING:mail.log:auth_required == True but auth_require_tls == False

it come with the latest update. The version 1.3.0 doesn't have this issue ... I just downgraded to it 1.3.0

YoRyan commented 10 months ago

Thanks for the report @djonko—I’ve reverted the commit that broke SMTP authentication. It was the fix for #98.

We already test configuration parsing, but I really should write some integration tests, so that we can avoid situations like this in the future.