Problem with SMTP after changing to https

Post Reply
jasonh
Posts: 2
Joined: Sat Jan 06, 2024 12:32 am

Problem with SMTP after changing to https

Post by jasonh » Sat Jan 06, 2024 12:49 am

I have an installation of Pro Dada 7.4.1

I upgraded my hosting site to https this week and have had a difficulty with DadaMail since. I followed the instructions at http://blog.dadamailproject.com/2017/06 ... ver-https/ and am able to access the platform etc.

A problem seems to exist with the Sending E-mail function. I had the site working using SMTP to send e-mails. Since the change to HTTPS (my last mass mailing was November 2023 and it worked fine) Dadamail will not send e-mails via SMTP. I have had to revert to using Sendmail for this. The e-mail account credentials are correct / unchanged and the same credentials work when accessing the associated mailbox via POP in the Bridge plugin.

My general SMTP settings are

Code: Select all

SMTP Server smtp.cp.hosting.com
Port 25
Use SSL <OFF>
Use SASL <ON>
  Type Plain
POP-before-SMTP <OFF>
When I set the Sender of SMTP Mailings to the List Administration Address to <OFF> I get the following error message

Code: Select all

[Fri Jan  5 22:30:00 2024] mail.cgi: Problems with connecting to the SMTP Server: Connection refused at /DADA/App/Messages.pm line 153
[Fri Jan  5 22:30:00 2024] mail.cgi: Debug => 1
[Fri Jan  5 22:30:00 2024] mail.cgi: Hello => domain.org
[Fri Jan  5 22:30:00 2024] mail.cgi: Port => 25
[Fri Jan  5 22:30:00 2024] mail.cgi: Timeout => 60
[Fri Jan  5 22:30:00 2024] mail.cgi: Host => smtp.cp.hosting.com
[Fri Jan  5 22:30:00 2024] mail.cgi:  at /DADA/App/Messages.pm line 153
[Fri Jan  5 22:30:00 2024] mail.cgi: Problems sending via SMTP: Can't call method "mail" on an undefined value at /DADA/Mail/Send.pm line 610.
[Fri Jan  5 22:30:00 2024] mail.cgi:  at /DADA/App/Messages.pm line 153
When I set the Sender of SMTP Mailings to the List Administration Address to <ON> I get the following error message

Code: Select all

[Sat Jan  6 00:06:27 2024] mail.cgi: Problems with connecting to the SMTP Server: Connection refused at /DADA/App/Messages.pm line 153
[Sat Jan  6 00:06:27 2024] mail.cgi: Debug => 1
[Sat Jan  6 00:06:27 2024] mail.cgi: Hello => domain.org
[Sat Jan  6 00:06:27 2024] mail.cgi: Port => 25
[Sat Jan  6 00:06:27 2024] mail.cgi: Timeout => 60
[Sat Jan  6 00:06:27 2024] mail.cgi: Host => smtp.cp.hosting.com
[Sat Jan  6 00:06:27 2024] mail.cgi:  at /DADA/App/Messages.pm line 153
[Sat Jan  6 00:06:27 2024] mail.cgi: Problems sending via SMTP: Can't call method "auth" on an undefined value at /DADA/Mail/Send.pm line 526.
[Sat Jan  6 00:06:27 2024] mail.cgi:  at /DADA/App/Messages.pm line 153
(difference is is the reference to Send.pm 'line 526' in the second-last line only)

The SMTP server settings are from the hosting providers documentation and are used to access regular mailboxes by e-mail clients unrelated to Dadamail. The settings also remain unchanged since the last successful mailing in November. Any input on defining and fixing the problem would be appreciated. I would prefer to not be using sendmail across the site.

jasonh
Posts: 2
Joined: Sat Jan 06, 2024 12:32 am

Re: Problem with SMTP after changing to https

Post by jasonh » Sat Jan 06, 2024 4:28 pm

Actually, I changed the SMTP port to 587 and that solved the problem.

I have no idea what happened with the ports as I haven't touched the Dadamail settings in years. Resolved now, so can close.

Post Reply