-
Hi! Could you help me configure padloc smtp for google-workspace smtp relay without user authentication? I'm trying to self-host padloc with docker, but I'm stuck on configuring the SMTP server. Upon first sign-up I get the generic error I cannot find any errors or logs besides I'm trying to use google workspace as smtp relay. It's configured so that authentication isn't required, but instead the sending IP is checked. What I think is the problem What i've tried While Here's an excerpt of my configuration ...
services:
server:
image: padloc/server
environment:
PL_DATA_BACKEND: leveldb
PL_DATA_LEVELDB_DIR: /data
PL_DATA_ATTACHMENTS_BACKEND: fs
PL_DATA_ATTACHMENTS_DIR: /attachments
PL_SERVER_CLIENT_URL: [redacted]
PL_EMAIL_BACKEND: smtp
PL_EMAIL_SMTP_HOST: smtp-relay.gmail.com
PL_EMAIL_SMTP_PORT: 587
PL_EMAIL_SMTP_IGNORE_TLS: true
PL_EMAIL_SMTP_SECURE: true
PL_EMAIL_SMTP_USER:
PL_EMAIL_SMTP_PASSWORD:
PL_EMAIL_SMTP_FROM: no-reply@[redacted]
... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I've just checked, the authentication thing isn't true. |
Beta Was this translation helpful? Give feedback.
-
I would strongly advice against using smtp without authentication, but if you really want to, one thing that you can try is setting |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply! Google workspace can be configured to allow sending only from certain authorized IP addresses, so this environment isn't completely without authentication. After some fiddling around with an isolated nodemailer environment, it turns out my issue is solved by these two changes:
|
Beta Was this translation helpful? Give feedback.
Thanks for your reply! Google workspace can be configured to allow sending only from certain authorized IP addresses, so this environment isn't completely without authentication.
After some fiddling around with an isolated nodemailer environment, it turns out my issue is solved by these two changes:
secure: false
andignoreTLS: false
. I had mistaken the latter as 'ignore certificate validity', but this setting will actually prevent nodemailer from negotiating STARTTLS.