Page 1 of 1

SMTP not sending emails

Posted: Sun Dec 19, 2021 12:00 pm
by mestro65
MAMP SMTP won`t send emails from Drupal. I think I misconfigured SMTP.
Here is the configuration:
Local SMTP port: 25
Outgoing server: 127.0.0.1 port: 25
user name: setup (drupal username)
password: (drupal password)
auth: SSL

I`m trying to send email to gmail user.

Log:
emailrelay: 20211219.114817: warning: no domain name in "DESKTOP-7956QNA": defaulting to ".local"
emailrelay: 20211219.114817: info: smtp server on 0.0.0.0:25
emailrelay: 20211219.120141: warning: no domain name in "DESKTOP-7956QNA": defaulting to ".local"
emailrelay: 20211219.120141: info: smtp server on 0.0.0.0:25
emailrelay: 20211219.120704: warning: no domain name in "DESKTOP-7956QNA": defaulting to ".local"
emailrelay: 20211219.120704: info: smtp server on 0.0.0.0:25
emailrelay: 20211219.121318: info: smtp connection from 127.0.0.1:49543
emailrelay: 20211219.121318: info: tx>>: "220 DESKTOP-7956QNA.local -- E-MailRelay V1.9 -- Service ready"
emailrelay: 20211219.121318: info: smtp connection closed: exception event: 127.0.0.1:49543
emailrelay: 20211219.121318: warning: winsock select error: 10053
emailrelay: 20211219.121318: warning: winsock select error: 10053
emailrelay: 20211219.121358: error: polling: connection timeout
emailrelay: 20211219.121358: info: smtp client error: "connection timeout"

Re: SMTP not sending emails

Posted: Wed Dec 22, 2021 6:15 pm
by mampsupportmod
mestro65 wrote: Sun Dec 19, 2021 12:00 pm MAMP SMTP won`t send emails from Drupal. I think I misconfigured SMTP.
Here is the configuration:
Local SMTP port: 25
Outgoing server: 127.0.0.1 port: 25
user name: setup (drupal username)
password: (drupal password)
auth: SSL

I`m trying to send email to gmail user.

Log:
emailrelay: 20211219.114817: warning: no domain name in "DESKTOP-7956QNA": defaulting to ".local"
emailrelay: 20211219.114817: info: smtp server on 0.0.0.0:25
emailrelay: 20211219.120141: warning: no domain name in "DESKTOP-7956QNA": defaulting to ".local"
emailrelay: 20211219.120141: info: smtp server on 0.0.0.0:25
emailrelay: 20211219.120704: warning: no domain name in "DESKTOP-7956QNA": defaulting to ".local"
emailrelay: 20211219.120704: info: smtp server on 0.0.0.0:25
emailrelay: 20211219.121318: info: smtp connection from 127.0.0.1:49543
emailrelay: 20211219.121318: info: tx>>: "220 DESKTOP-7956QNA.local -- E-MailRelay V1.9 -- Service ready"
emailrelay: 20211219.121318: info: smtp connection closed: exception event: 127.0.0.1:49543
emailrelay: 20211219.121318: warning: winsock select error: 10053
emailrelay: 20211219.121318: warning: winsock select error: 10053
emailrelay: 20211219.121358: error: polling: connection timeout
emailrelay: 20211219.121358: info: smtp client error: "connection timeout"
You're getting connection time out trying to resolve a localhost. You haven't set smtp up correctly. Sorry, all I can say without knowing more and your goals.

Re: SMTP not sending emails

Posted: Thu Dec 23, 2021 9:21 pm
by mestro65
Thanks for the reply! All I want is just to notify a new Drupal user of their new account. I`m sending an email from the Drupal Maintenance account.

Re: SMTP not sending emails

Posted: Thu Dec 23, 2021 9:22 pm
by mestro65
Also, the Drupal version is 9 and Mamp Pro 4. I also have the SMTP module for Drupal. Sorry, I`m pretty new to SMTP and Drupal.