Email test fail - Error 550

Version ie <v5.10.30>

5.9.9.9

Environment <Docker/Shared Hosting/Zip/Other>

Docker (Caprover)

Describe the bug

In app settings I try a test with the new settings and get Error 550

Steps To Reproduce

I have mail setup working with a personal account - Mailbox.org
I changed the setup in both the environment variables and the app settings to Mailfence.
nb. Mailfence has my custom domain for the business.
In app settings I try a test with the new settings and get Error 550

Expected Behavior

Change of settings give a successful test.

Logs

There is nothing in system logs.

Hi,

A 550 error implies the email credentials may be are ok but the email couldn’t be delivered. I suggest trying to email an invoice to a different email address.

Thanks for the reply Hillel!
I am not sure I understand though.

At first I changed the environment variables for InvoiceNinja in the Caprover/docker settings from the working Mailbox.org settings to my Mailfence.com settings.


After the change when I sent an invoice it was still sent from Mailbox.org.

I then changed the settings -email settings in the InvoiceNinja app from Mailbox.org to Mailfence.com.


In this pic you can see the Mailbox.org working settings. When I change the host, username and password to Mailfence I get a 550 error when clicking ‘Send test email’.

What exactly do I need to change?

Thanks.

The settings in the app on Settings > Email Settings will override the values in the .env config.

Ok. If I leave Setting- Email Settings blank will I be able to send a test email?
Hmm, actually when it was blank before I was not able to use the export data function. ??

Now with the fields blank I get

400: Bad Request • Expected response code "250/251/252" but got code "554", with message "554 5.7.1 <mail.*mysite*.academy[89.40.1.227]:54090>: Client host rejected: Access denied".

Does this indicate with ‘mail.mysite.academy’ that is looking to my website rather than the email provider??

No. The fields in settings cannot be left blank! :woozy_face:

To leave the app settings blank and use the .env file I believe you need to select the default mail option.

Huh. How do you select the ‘default’ mail option Hillel? I cannot see such an option.

nb Now getting:

400: Bad Request • Connection could not be established with host "ssl://smtp.mailfence.com:465": stream_socket_client(): Unable to connect to ssl://smtp.mailfence.com:465 (Operation timed out)

You may want to use telnet to check that the host/port are reachable from the server.

Ok, I will investigate what that is.
That said, I am assuming that would be to check
smtp.mailfence.com:465
I just sent an email successfully from the Kmail client with those settings.

I assume the Kmail client is running on your computer, not the server? If you’re seeing “Operation timed out” you’ll want to check that you can connect from the server.

form the server

telnet smtp.mailfence.com
Trying 212.3.242.80...

and nothing.

telnet smtp.mailfence.com 25
Trying 212.3.242.80...

With Mailbox.org

telnet smtp.mailbox.org 25
Trying 2001:67c:2050:b100:1:587:0:196...
Connected to smtp.mailbox.org.

So, is this an issue with Mailfence??

It may be a network issue on the server

I would suggest your lack of server response is possibly a black listing.

Too many failed logins gets you banned for a time. It stops brute forcing.

Try it again using telnet tomorrow. Or try in an hour first.

If you can use a mail client on the server setup email using that to work out settings, especially check if it needs tls or start tls or if your password needs to be encrypted.

Do they provide a settings info page

2 Likes