PgAdmin client SMTPRecipientsRefused: 450, 4.1.8 : Sender address rejected: Domain not found

After the pg installation I tried to reset the pgadmin password but i had this problem:

[error] [pid 12033] mod_wsgi.c(1631): [client SMTPRecipientsRefused: {u’[email protected]’: (450, ‘4.1.8 <[email protected]>: Sender address
rejected: Domain not found’)}

i solved in this way:

vim /usr/lib/python2.7/site-packages/pgadmin4-web/config.py

MAIL_SERVER = ‘localhost’
MAIL_PORT = 25
MAIL_USE_SSL = False
MAIL_USE_TLS = False
MAIL_USERNAME = ”
MAIL_PASSWORD = ”
MAIL_DEBUG = False

# Flask-Security overrides Flask-Mail’s MAIL_DEFAULT_SENDER setting, so
# that should be set as such:
SECURITY_EMAIL_SENDER = ‘no-reply@localhost

 

I changed the SECURITY_EMAIL_SENDER into a my valid email

Restart httpd!

Leave a Reply