PDA

View Full Version : SquirrelMail and dovecot imap 13 : Permission denied



mib4
14th June 2005, 11:36 PM
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
15th June 2005, 03:49 AM
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
19th June 2005, 02:36 AM
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
24th June 2005, 07:26 PM
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
25th June 2005, 05:33 AM
u may try /etc/selinux/targeted/booleans.local first.

n3r0
8th July 2005, 07:22 PM
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
4th August 2005, 02:32 AM
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

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: