From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Đỗ Ngọc Trí Cường <dntcuong(at)digi-texx(dot)vn> |
Cc: | pgadmin-support(at)lists(dot)postgresql(dot)org |
Subject: | Re: pgAdmin 4 | Changing Mail From information! |
Date: | 2017-11-27 09:14:19 |
Message-ID: | CA+OCxoy3QYnKMFMEeyTb0Zgi3GmFbUvYhSWTs7e+gXbo4__y3Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Hi
On Mon, Nov 27, 2017 at 6:53 AM, Đỗ Ngọc Trí Cường <dntcuong(at)digi-texx(dot)vn>
wrote:
> Dear all,
>
> I'm new from pgAdmin4 (I normally used pgAdmin3 in the past).
>
> Now, I'm deploy a server of pgAdmin4 using docker technology (
> https://hub.docker.com/r/chorss/docker-pgadmin4/) I've deployed
> successfully. But noư I face an issue.
>
> Our mail-server restricts to send email if the sender does not match with
> authenticate user (see log below). I've searched in the config and just
> found out the config about mail server and mail user/password. I can't find
> the config mail from or mail template.
>
> Could you please help me where I can modify it?
>
> ************************************************************
> ************************************
> reply: b'235 2.7.0 Authentication successful\r\n'
> reply: retcode (235); Msg: b'2.7.0 Authentication successful'
> send: 'mail FROM:<no-reply(at)localhost> size=1191\r\n'
> reply: b'250 2.1.0 Ok\r\n'
> reply: retcode (250); Msg: b'2.1.0 Ok'
> send: 'rcpt TO:<dntcuong(at)digi-texx(dot)vn>\r\n'
> reply: b'553 5.7.1 <no-reply(at)localhost>: Sender address rejected: not
> owned by user mail_demo(at)digi-texx(dot)vn\r\n'
> reply: retcode (553); Msg: b'5.7.1 <no-reply(at)localhost>: Sender address
> rejected: not owned by user mail_demo(at)digi-texx(dot)vn'
> send: 'rset\r\n'
> reply: b'250 2.0.0 Ok\r\n'
> reply: retcode (250); Msg: b'2.0.0 Ok'
> send: 'quit\r\n'
> reply: b'221 2.0.0 Bye\r\n'
> reply: retcode (221); Msg: b'2.0.0 Bye'
> ************************************************************
> ************************************
>
> Looking forward to your feedback.
>
You should be able to set MAIL_DEFAULT_SENDER to an appropriate address in
your environment. There is a full list of available config options at
http://pythonhosted.org/Flask-Mail/ which should work in addition to those
shown in config.py.
As a sidenote, you should create config_distro.py (alongside config.py) to
contain the required settings. Don't edit config.py itself.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2017-11-27 09:46:42 | Re: Installing pgAdmin 4 in Runtime Mode (stand alone) in Linux |
Previous Message | Đỗ Ngọc Trí Cường | 2017-11-27 06:53:37 | pgAdmin 4 | Changing Mail From information! |