LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2005, 05:37 PM   #1
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Rep: Reputation: 31
Need help with Squirrelmail with Dovecot & Sendmail


I have configured my server with Sendmail and Dovecot as a pop3 & imap server. I'm able to send and receive mail from Outlook or Thunderbird via pop. But, when I tried to login from my web interface I get permission denied. So, I ran the configtest.php and I get this error return:

SquirrelMail configtest

This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.

SquirrelMail version: 1.4.6 [CVS]-0.cvs20050812.1.fc3
Config file version: 1.4.0
Config file last modified: 14 November 2005 17:00:45
Checking PHP configuration...
PHP version 4.3.11 OK.
PHP extensions OK.
Checking paths...
Data dir OK.
Attachment dir OK.
Plugins OK.
Themes OK.
Default language OK.
Base URL detected as: http://www.jurgiel.com/webmail/src
Checking outgoing mail service....

ERROR: Location of sendmail program incorrect (/usr/sbin/sendmail)!

I don't get it. Can any help????

Thanks
John
 
Old 11-15-2005, 01:15 AM   #2
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
Anyone out there might have an answer?????
 
Old 11-15-2005, 06:55 AM   #3
ai6ksb
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
Hi I had a similiar issue, I changed the location to usr/lib/sendmail and the error moved on (this was on a Fedora Core 4 system), basically check the location of where send mail is.
 
Old 11-15-2005, 08:10 AM   #4
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
ai6ksb,

I'm using FC3. Sendmail is location in "/usr/sbin/sendmail". Why it won't find it?
 
Old 11-15-2005, 08:16 AM   #5
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
ai6ksb,

I changed the location to /usr/lib/sendmail and I still get the same error. Any other suggestion?
 
Old 11-16-2005, 12:43 AM   #6
ai6ksb
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
My mistake I am using Postfix instead of Sendmail, as it is supposed to be more secure and easier to configure. The configtest.php passes the stage where it looks for sendmail, however if fails IMAP, (thats another problem all together), hope that helps
 
Old 11-17-2005, 12:48 AM   #7
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
ai6ksb,

I found the cause of my problem. It's SELinux which prevent accessing sendmail and imap through httpd. So, if I turn off SELinux by:

setenforce 0

Squirrelmail worked perfectly. But, as soon I turned SELinux back on by:

setenforce 1

Squirrelmail will get permission denied when I tried to login. So, now I need to figure out how to change SELinux to work with Squirrelmail. Because, I don't want to disable SELinux on my server. Any ideas????
 
Old 11-17-2005, 02:31 AM   #8
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
c if this helps

http://www.redhat.com/docs/manuals/e...selinux-guide/
 
Old 11-17-2005, 02:46 PM   #9
ai6ksb
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
I've just built fc3 box and got the same errors, i'd be interested if you find a solution to this problen
 
Old 11-17-2005, 02:52 PM   #10
ai6ksb
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
Thanks jayakrishnan
I enabled httpd_can_connect and it worked
I just need to know what it means and what are the implications of doing this?

Can you help?
 
Old 11-18-2005, 09:09 AM   #11
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
ai6ksb,

where do you enable httpd_can_connect? How do you restart SELinux without rebooting the server?
 
Old 11-18-2005, 12:10 PM   #12
ai6ksb
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 0
Try this System Settings -> security -> SELinux -> Other
 
Old 11-18-2005, 03:27 PM   #13
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
ai6ksb,

"httpd_can_connect" is not on the list. Also, I use shell via ssh to do most of my work.
 
Old 04-22-2006, 11:43 PM   #14
fhleung
Member
 
Registered: Aug 2004
Distribution: Lubuntu Live OS
Posts: 432

Rep: Reputation: 30
Sendmail config howto? Any Sendmail expert here?

I having FC5 and would like to setup simple mail server with Sendmail, Dovecot and SquirrelMail.

In the very begining, I can not login via SquirrelMail webmail interface. The problem of this thread just same as mine so I turn off the SELinux.

But now I want to go back how to configure sendmail. Are there any expert here?

Cheers
 
Old 04-24-2006, 10:50 AM   #15
cojo
Member
 
Registered: Feb 2003
Location: St. Louis
Distribution: RedHat 8
Posts: 262

Original Poster
Rep: Reputation: 31
fhleung,

it's actually quite easy to fixed. Is your webmail work fine if you turn selinux off? If yes, you will need to install the selinux Policy targeted sources. Just follow these steps:

1. yum -y install selinux-targeted-sources
2. setenforce 0
3. audit2allow -l -i /var/log/messages >> /etc/selinux/targeted/src/policy/domains/misc/local.te
4. /usr/bin/make -C /etc/selinux/targeted/src/policy/ reload
5. setenforce 1
6. try to login again
7. repeat step 2 thru 6 if neccessary

This should fix your problem. Let me know if you need help.

John
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail & dovecot Inbox problem fatum112 Linux - Networking 2 09-23-2007 01:51 AM
Dovecot, Sendmail, & FC2 ScooterB Linux - Software 0 08-30-2005 10:11 AM
Postfix, Dovecot, SquirrelMail Troubles?! simonsez711 Linux - Software 14 07-22-2005 02:32 PM
access denied on squirrelmail / dovecot / SE Linux policy rioguia Linux - Security 2 07-06-2005 11:25 PM
Relationship: sendmail <=> dovecot hfreeman Linux - Software 4 03-04-2005 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration