PDA

SquirrelMail and dovecot imap 13 : Permission denied

mib4
2005-06-14, 03:36 PM PDT
Hello,

I'm running SquirrelMail and dovecot under FC4. I'm having a problem when I'm trying to login:

ERROR
Error connecting to IMAP server: localhost.
13 : Permission denied

My sendmail server works just fine sending and receiving e-mails to and from Internet. No problem connecting to 110, 143, 995 ports.

I have enabled SELINUX policy and I believe something is wrong with the settings there. Could you help me please?

Thanks in advance.

mib4
2005-06-14, 07:49 PM PDT
I figured it out. If somebody is interested the command is:

setsebool httpd_can_network_connect=1

To see the existing status of the se booleand use:

getsebool httpd_can_network_connect

I found the information above at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=158181

crankshaft
2005-06-18, 06:36 PM PDT
Hmmm, after a re-boot the problem returns !

Do I need to run the command : setsebool httpd_can_network_connect=1 each time I reboot ??

Cheers

PeterC

pzeigler
2005-06-24, 11:26 AM PDT
Same issue here. Let me know if you find a more permanent solution. This has just happened for me when I had a selinux policy update on 6/20/05.

yellowbug
2005-06-24, 09:33 PM PDT
u may try /etc/selinux/targeted/booleans.local first.

n3r0
2005-07-08, 11:22 AM PDT
Yeah i was having this problem too after i updated selinux.

at least there is this board where people can record all the simple problems they have :)

i made that file and added that line to it, reboot and it didnt work. Then i noticed that maybe like the other file in the directory (booleans) it needed to be marked as an executable so i ran the following


chmod --reference=booleans booleans.local


that unfortunately did not work.
So i put it directly into the booleans file.

didnt work. so then i thought ok ill put it in /etc/rc.d/rc.local

and ho ho! success!

tobrien
2005-08-03, 06:32 PM PDT
[QUOTE=crankshaft]Hmmm, after a re-boot the problem returns !

Do I need to run the command : setsebool httpd_can_network_connect=1 each time I reboot ??

Cheers

PeterC[/QUOTE]

Why not add the -P switch to this command to make the change permanent when rebooting...
setsebool -P httpd_can_network_connect=1 This will add the change to your /etc/selinux/targeted/booleans file and will be applied at each reboot.

:) Tim

I'll be happy to answer other similar Linux queries on my Linux forum at http://obrienit.com.au/forum/ check it out, add a post :cool: