This topic has been covered before - and I solved it for myself before. But I cannot find the solution now. What happens is, when the user subscribes, he/she gets this message:
Sorry, sending the message to request your confirmation failed - reload and try again…
I had solved this, I can’t remember how, and then I upgraded to 3.3.1, which I know wiped out some tweaks I’d made…but I can’t figure this out.
I’m using smtp via this line:
define(“PHPMAILERHOST”,‘mail.****.com’); - with my host you use the actual server name, not the domain
messages send when campaigns go out - a test campaign sent.
there is another thing where the campaigns fail repeatedly but eventually get all the messages sent but I don’t know if this is related - I think not.
And one more thing I just discovered while typing this…this is only happening on a new subscribe page/list…
not as dumb: I added debug lines to lib.php per another thread and found the following, which perplexes me:
Connection: opening to mail.server307.com:25, timeout=5, options=array ()
Connection: opened
SERVER -> CLIENT: 220 server307.com ESMTP
CLIENT -> SERVER: EHLO aarontrumm.com
SERVER -> CLIENT: 250-server307.com250-STARTTLS250-PIPELINING250-8BITMIME250-SIZE 0250 AUTH LOGIN PLAIN CRAM-MD5
CLIENT -> SERVER: STARTTLS
SERVER -> CLIENT: 220 Proceed.
CLIENT -> SERVER: EHLO aarontrumm.com
SERVER -> CLIENT: 250-server307.com250-PIPELINING250-8BITMIME250-SIZE 0250 AUTH LOGIN PLAIN CRAM-MD5
CLIENT -> SERVER: MAIL FROM:<aaron@aarontrumm.com>
SERVER -> CLIENT: 250 ok
CLIENT -> SERVER: RCPT TO:<aarontrumm@gmail.com>
SERVER -> CLIENT: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)
SMTP ERROR: RCPT TO command failed: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)
CLIENT -> SERVER: QUIT
SERVER -> CLIENT: 221 server307.com
Connection: closed
SMTP Error: The following recipients failed: aarontrumm@gmail.com: sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)
This isn’t a new install - it WAS working - this is after upgrading to 3.3.1 the other day…
This happens with a couple different addresses on different domains…
@nquit Does this problem happen for all emails, for campaigns and other system emails as well as the subscription confirmation email? If not, how is the debug output different when the email is sent successfully?
phplist 3.3.1 probably includes a new release of phpmailer, which is where the problem might be. The debug output looks like TLS is being used automatically despite you connecting on port 25. You can disable that in yoru config.php file
You might want to check your smtp user, and smtp password for your smtp connection (and the TLS and port setttings) as @duncanc mentioned, once you get phpList to login to mail.server307.com correctly, it should be able to relay mail to gmail.com
You need to know what the settings should be, and then you need to put them in the config.php file for phpList.
So yeah - what I’ve done is just change the port to 587 in config.php. That seems to have done it. I’m NOT using login credentials - that was failing with all combinations of ports and security. What finally worked was JUST setting the port to 587.
wait wait no. that’s SOOO WEIRD. I swear that worked last night. today, no. today it told me I need to authenticate first.
SERVER -> CLIENT: 503 you must authenticate first (#5.5.1)
SMTP ERROR: MAIL FROM command failed: 503 you must authenticate first (#5.5.1)
The following From address failed: aaron@aarontrumm.com : MAIL FROM command failed,you must authenticate first (#5.5.1),503,SMTP server error: MAIL FROM command failed Detail: you must authenticate first (#5.5.1) SMTP code:
So I tried that and…
Connection: opening to mail.server307.com:587, timeout=5, options=array ()
Connection: opened
SERVER -> CLIENT: 220 server307.com ESMTP
CLIENT -> SERVER: EHLO aarontrumm.com
SERVER -> CLIENT: 250-server307.com250-STARTTLS250-PIPELINING250-8BITMIME250-SIZE 0250 AUTH LOGIN PLAIN CRAM-MD5
CLIENT -> SERVER: STARTTLS
SERVER -> CLIENT: 220 ready for tls
CLIENT -> SERVER: EHLO aarontrumm.com
SERVER -> CLIENT: 250-server307.com250-PIPELINING250-8BITMIME250-SIZE 0250 AUTH LOGIN PLAIN CRAM-MD5
CLIENT -> SERVER: AUTH CRAM-MD5
SERVER -> CLIENT: 334 PDE4OTMxLjE0NzE4NjIwNzRAc210cC5zdXJlc2VydmVyLmNvbT4=
CLIENT -> SERVER: YWFyb25AYWFyb250cnVtbS5jb20gMTdmNzFmMTI4NGJiYWI2YzhhN2M5YTI5NzMxMzZkMGI=
SERVER -> CLIENT:
SMTP ERROR: Username command failed:
SMTP Error: Could not authenticate.
CLIENT -> SERVER: QUIT
SERVER -> CLIENT: 535 authentication failed (#5.7.1)
SMTP ERROR: QUIT command failed: 535 authentication failed (#5.7.1)
Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting