LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-07-2006, 07:51 AM   #1
tomazN
Member
 
Registered: May 2005
Location: Slovenia
Distribution: Suse 10.2 64bit
Posts: 127

Rep: Reputation: 16
SquirrelMail WebMail issues with sendmail


I made me a nice little SquirrelMail to acess my mail from web. I set-up an imap to catch my mail. So i get mail sent to me just fine. And i set up sendmail to send my mail, actualy sendmail was configured already bevore to send mail from a KMail 1.9.1 in my KDE desktop. Now when i try to send mail from SquirrelMail i get this error which i dont know how to fix:

Server replied: 127 Can't execute command '/usr/sbin/sendmail -i -t -ftomaz@likegod.org'

I have no ideer to even start to debug this. sendmail is executable for all users on my box, so dunno why he cant execute that. And in SquirrelMail conf.pl sendmail is configured to run from /usr/sbin/sendmail so path is ok too.

So a ? on that

And one more. If i open up KMail 1.9.1 now when i have my webmail thingy also working the mails dissaper the moment KMail fetches them. Probably it uses diffrent mail structure or something. So how to fix this to use with both (see same thing on boath KMail and SquirrelMail).

Thx for the answers.
 
Old 08-08-2006, 02:31 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
The last part of your message about disappearing email. It reads as if you have kmail setup to work with your local mail files, if it were me I'd set it up to work with my IMAP server instead. Also, check that it's not moving the messages from the server (even though it's on the same box, it may move them to a local directory it uses to store your mail).

The first part:
Run the problem:
/usr/sbin/sendmail -i -t whatever@whoever.com
And see if you get any feedback from the terminal on what's actually going on. My (quick) guess is that /usr/sbin might not be letting a non-root user execute files in that directory; it may have created a symlink in /usr/bin for system users to use sendmail. Use a:
whereis sendmail
To get a list of all the sendmail executables in your $PATH variable.

Good Luck!

Cool
 
Old 11-16-2006, 01:33 AM   #3
tomazN
Member
 
Registered: May 2005
Location: Slovenia
Distribution: Suse 10.2 64bit
Posts: 127

Original Poster
Rep: Reputation: 16
I checked that but that isnt the problem, i tried numerous paths and done +x for all users but it still says it cannot execute sendmail :S

Any more info ?

btw. i fixed the kmail and that dissapering mail issue so i use now imap thx on that

thx.
 
Old 03-29-2007, 08:43 AM   #4
_MD_
Member
 
Registered: Apr 2004
Location: Toronto, Canada
Distribution: BackTrack, Knoppix, Fedora, Slackware
Posts: 43

Rep: Reputation: 16
Yeah, I have the same problem.

Quote:
/usr/sbin/sendmail -i -t whatever@whoever.com
And see if you get any feedback from the terminal on what's actually going on.
just hangs producing no output...

Quote:
My (quick) guess is that /usr/sbin might not be letting a non-root user execute files in that directory; it may have created a symlink in /usr/bin for system users to use sendmail. Use a:
whereis sendmail
To get a list of all the sendmail executables in your $PATH variable.
yes, executables are in /usr/sbin but all of my files (related to sendmail) are executable by users... here's the output for:

ls -ahl /usr/sbin/sendmail
Code:
lrwxrwxrwx 1 root root 21 Mar 27 09:37 /usr/sbin/sendmail -> /etc/alternatives/mta
ls -ahl /etc/alternatives/mta
Code:
lrwxrwxrwx 1 root root 27 Mar 27 09:37 /etc/alternatives/mta -> /usr/sbin/sendmail.sendmail
ls -ahl /usr/sbin/sendmail.sendmail
Code:
-rwxr-sr-x 1 root smmsp 757K Sep  5  2006 /usr/sbin/sendmail.sendmail
So I am not sure what causes this error message in squirrelmail... Please advise.
Thanks
 
Old 03-29-2007, 11:25 AM   #5
tomazN
Member
 
Registered: May 2005
Location: Slovenia
Distribution: Suse 10.2 64bit
Posts: 127

Original Poster
Rep: Reputation: 16
Well i actualy have fixed that. But only when i switched to opensuse 10.2 so i reinstalled the system, then done the same thing i have done before setting squirel up, any now it works without any problems out of the box

So i really do not know what was wrong before.
 
Old 08-24-2007, 01:13 PM   #6
fredy10
LQ Newbie
 
Registered: Aug 2007
Posts: 1

Rep: Reputation: 0
Talking

I'm using CentOS 5.0 and actualy i'm fix this problem using the RPM system-switch-mail
 
Old 09-08-2007, 12:40 PM   #7
Atonzi
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Smile Found a Solution

Hi

In Fedora 6 or 7, I solved this problem by disabling SELinux security. I believe it sets restrictions to regular users from executing sendmail.

Hope this helps.

Atonzi
 
Old 04-14-2008, 02:07 AM   #8
KickThis
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Safe Mode

On a FC7 box I created this same problem by switching Safe Mode to On in the php.ini.

Switched it off and was back up and running.

in php.ini:

safe_mode = Off

OR set it up to allow using sendmail.

Last edited by KickThis; 04-14-2008 at 02:10 AM.
 
Old 05-22-2008, 01:08 PM   #9
MariaIano
LQ Newbie
 
Registered: May 2008
Posts: 5

Rep: Reputation: 0
Smile use SMTP

I had the same problem and fixed it by telling squirrelmail to use SMTP instead of sendmail (pointing to localhost for the SMTP server). I am running selinux in enforcing mode and PHP in safe mode, and it works. I would have to have a really good reason before I turned off selinux (no other software options, no configuration alternatives that work, must have this software, preferably have disconnected from network, etc...). Selinux provides such excellent protection.

Maria
 
  


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 webmail interface kafnir Linux - Networking 2 03-29-2007 10:25 AM
Squirrelmail - Webmail - Firewall Davidw20 Linux - General 3 08-05-2005 07:36 AM
sendmail does not work through webmail cdrom Linux - Newbie 5 03-01-2004 07:57 AM
Squirrelmail (webmail) klmn1 Linux - Networking 6 05-29-2003 03:00 AM
Webmail (SquirrelMail) lento para qualquer link aethraadriano Conectiva 0 02-28-2003 11:10 AM

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

All times are GMT -5. The time now is 05:31 AM.

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