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

I have now changed my domain hoster from Mailfence to Migadu.
I am still having issues.

400: Expected response code “250” but got code “553”, with message “553 5.7.1 user@mailbox.org: Sender address rejected: not owned by user user@mydomain.academy”.

user@mailbox.org was an address that did work in sending. Is it stuck in the settings somehow??
I have both the environmental variables set to my domain and the Advanced Settings - Email Settings set to my domain email! Where is user@mailbox.org coming from and how to have my domain email user@mydomain.academy work?

If you have the SMTP settings in the .env file and in the app on Settings > Email Settings the settings in the app should take precedence.

Maybe you’ve configured custom settings for a group or client?

Thanks Hillel. I will have to investigate what that means.

I suspect it may be related to my other issue though:

Do you have your custom domain configured within mailbox.org correctly? I use a custom domain with them as my email provider and do not have any issues. But, if you do not have the domain verification setup correctly, you will get errors.

I think a failed upgrade borked the email settings locking in mailbox.
I have spun up a new instance and set it up with my domain email registered with Migadu now.
Mailbox.org was working correct with me@mailbox.org. I do not use them as the client for my domain email. I only had mailbox in the app settings as previously my domain email would not work as I could not get the ssl to work with it on a self -hosted email server.

All fine now on the new instance - apart from attaching pdf’s.