Closed MatthijsCornil closed 1 year ago
After some more searching I have found the issue. So I did some connection checks via telnet and nmap and figured out that I needed to use port 587 and tls, instead of 465 and ssl as I am used to when I connect the domain mail to gmail. But changing the port did not solve my issue in sending emails. Then I saw on 1 of the sites I was checking for tips and tricks that if there were any special characters in my password that they needed to be escaped. So I made a sufficiently long password with only letters and numbers, and now the connection worked. So it was a combination of port, connection type and "password mismatch" that caused the issue. Leaving this here for if someone runs in to the same issue.
Hi, I've set up the application (ufw, apache2, mysql, ...) and everything seems to be working nicely. I just can't seem to get it to send out emails. Tried with a domain address and a gmail address. smtp settings gmail: server = smtp.gmail.com:465 (also tried with 587) sender = myuser@gmail.com login = myuser@gmail.com:password (also tried myuser:password) tls = true ssl = true
set my account up to allow less safe apps and doesn't event have 2-factor authentication, so that is also not causing the problem.
smtp settings domain mail: server = mail.mydomain.com:465 sender = myuser@mydomain.com login = myuser@mydomain.com:password tls = true (tried with true and false) ssl = true
used the same settings to connect it to my gmail and that worked.
Of course only had one setting active per test run ufw is set up to allow outgoing connections
Any tips are welcomed.