ERPNext Invalid Outgoing mail Server or Port

@Deepika, my suggestion was to mute it once and check if error persists. My guess is you have incorrect email account related entries in you site_config.json

Following correct value should be present in site_config

mail_server: SMTP server hostname.
mail_port: STMP port.
use_ssl: Connect via SSL / TLS.
mail_login: Login id for SMTP server.
mail_password: Password for SMTP server.

Alternatively, you can delete email domain/account in desk and set it up again. This way you need not change or correct site_config.json values. It would be overwritten.

The error has gone. But the problem I face now is, no emails are sent from erpnext.

remove entry from your site_config.json:
“mute_emails”: true

By removing that I hit on the same error.
I have earlier worked in my server but when I try to work locally , such kind of error occur.
Please find me a solution for this.

  1. remote mute_emails entry from site_confing
  2. delete email domain/account detail aftter login to desk and set it up the account details again.

When I try to reset my email domain, I get such an error message

Hello, Have you solve the problema? We are facing the same issue.

1 Like

hello,Facing the same issue. Did anyone found the solution?

A forum search like ‘incoming email account not correct’ will give you clues and pointers to resolve this.

You might try that and report what result you get?

@ashish-greycube
I’m having same problem.
As per your suggestion Deleting all domain/account > if domain is setup the “site_config” file should have the settings in places…?
mail_server: SMTP server hostname.
mail_port: STMP port.
use_ssl: Connect via SSL / TLS.
mail_login: Login id for SMTP server.
mail_password: Password for SMTP server.

But I got nothing but
“db_name”: “_ce396b2efafabf2f”,
“db_password”: “tyfDHdXR249edlyA”,
“db_type”: “mariadb”,
“domains”: […]

My situation is also the same.

Hope, this will help.

Good day sir.
I’m using a custom domain, Ben@bluchtechds.com.ng, so the same settings apply to custom domain

same issue

if its AWS, please try to change TLS to SSL and port 587 to 465.

same issue when configuring Gmail account

Why there is no technical support for the forums to reply to these problems
The guidance available is not enough

2 Likes

have you tried changing the app password for the mail ?

Facing the same issue here.
Did anyone managed to solve it somehow? If so, please let us know.