1 (edited by DAK 2021-09-11 11:41:17)

Topic: Error sending SMTP mail

When configuring to send messages via SMTP, the following error has recently occurred:

mycal:ERROR Script: index php - SMTP mail to mymail{at}gmail com failed.
DATA string: SMTP server reply: 451
Reason : You can't get mail through to MSN and thousands of other systems around the Internet. Your mailer is violating 822bis section 2.3, which specifically prohibits all bare LFs.

The problem is with both versions - MySQL and SQLite.
There are no problems when using PHP Mail.

There is no problem when checking with smtptest.php from Toolbox !

Programmer - a binary-biological organism that turns coffee into software code

Re: Error sending SMTP mail

Hi DAK,
It's hard to say what causes the problem. I checked the LuxCal emails and can confirm that I did not find any "bare" LFs, all LFs are preceded by a CR.
You are writing "recently occurred", does this mean that in the past the error did not show up?
Does it happen with all emails, or just some emails?

Roel

3 (edited by DAK 2021-09-12 23:57:50)

Re: Error sending SMTP mail

For the first time I noticed the problem in the file luxcal.log from date 02-09-2021. Previously, SMTP sent messages normally.
I guess some servers (gmail, msn and others) have changed their security policies.
I personally tested it only with letters to Gmail

I was using version 5.1.1L-b2 when this error occurred.
I upgraded to a clean version 5.1.1M, but the problem still has it.
Note that when testing with smtptest.php SMTP works normally and send emails to Gmail!

I guess the problem is in the smtpMail function, but I couldn't find it ... for now.

Programmer - a binary-biological organism that turns coffee into software code

Re: Error sending SMTP mail

Hi Dak,
The smtpMail function has not changed since several years and is basically the same as the smtptest.php script.
So I'm wondering is there something in the mail message itself (like the "bare LF", as mentioned in your first post), but so far could not find anything in particular.
I will have another careful look. Should you find something, please let me know.

Roel