Re: [Dovecot] Fwd: Dovecot cannot connect to PostgreSQL server
On Mon, Apr 28, 2014 at 8:43 AM, Steffen Kaiser < skdovecot@smail.inf.fh-brs.de> wrote:
The log under /var/logs/pgsql is completely empty.
Do you have SELinux or something like that running?
What about this question?
I do have a SELinux up and running, yeah.
- Chris
On Mon, Apr 28, 2014 at 8:51 AM, Chris Vaas <chrisvaas@gmail.com> wrote:
I just looked into my SELinux audit log and found the following denial.
type=AVC msg=audit(1398609990.493:280): avc: denied { name_connect } for pid=5964 comm="auth" dest=5432 scontext=unconfined_u:system_r:dovecot_auth_t:s0 tcontext=system_u:object_r:postgresql_port_t:s0 tclass=tcp_socket
There seems to be a good chance, that this is my problem, doesn't it? But how can I allow the connection?
Cheers Chris
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 28 Apr 2014, Chris Vaas wrote:
In addition to Aleksandar's question: Does Postgres runs at all?
Did you've checked its logs, e.g. (pretty old): http://linux.derkeiler.com/Mailing-Lists/Fedora/2006-03/msg05342.html
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBU13/FXz1H7kL/d9rAQLjbQf+IQV/jSAj+fvxCaIgxgzktUuJenONp5Za LrxYEQ79YelD5ljH1Ms1cYyegp5+8ecHsp0Fc850ZBeEYsplfZjfvAoPP4lO+cdH GOPt3+zniEdeEVMVFfOokyTGjSPWbRrlb5r/wWYj6pU35pkw1pK3M6hPxF2Y6grm poLMdHvaktwIr9STtqu1JTOxRffLgW5qh1AcQwJ+BoNs+h0MKs7ddqgnfeV9bKZx rmyOuAU36QnNcv+LJQJSiJMFw1pejS+OBvI23xYsj/04dAAiTzNHGe3doz/sF1PX P2zroewTEEb+lkvjUkOmukLuTlLnCAVgdHyWZF37c5vML9HD7Xyqrg== =e13N -----END PGP SIGNATURE-----
participants (2)
-
Chris Vaas
-
Steffen Kaiser