LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-26-2008, 04:10 PM   #1
Mariognarly
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Exclamation Sendmail config error: warning program unsafe


I trying to to run RT 3.6.7 on Solaris 10. I am using Sendmail v. 8.13.8. I'm using this guide from Sun:

http://www.sun.com/bigadmin/features...q_track_1.html
http://www.sun.com/bigadmin/features...q_track_2.html

uname -a
SunOS vpd1tst1no 5.10 Generic_127111-11 sun4u sparc SUNW,Sun-Fire-V215

I have RT installed and running, using Apache, MySQL, OpenSSL. rt-mailgate basically is setup as an alias for sendmail. Sendmail accepts mail, pipes it to rt-mailgate(RT), and that parses it to an httpd process using perl, which ultimately creates a trouble ticket in the RT application. However my problem lies with 'RT' receiving mail from Sendmail. I believe I have a sendmail configuration problem.

I send mail via the command line:

"sendmail -v General" (General is the name of an alias in /etc/mail/aliases)

and the mail piped to RT shows this (/var/adm/messages):

Aug 21 14:26:16 vpd1tst1no sm-mta[8091]: [ID 801593 mail.info] m7LKQGhW008090: Warning: program /usr/lib/smrsh unsafe: No such file or directory
Aug 21 14:26:16 vpd1tst1no last message repeated 1 time
Aug 21 14:26:16 vpd1tst1no sm-mta[8091]: [ID 801593 mail.crit] m7LKQGhW008090: SYSERR(root): Cannot exec /usr/lib/smrsh : No such file or directory
Aug 21 14:26:16 vpd1tst1no last message repeated 1 time


Now I understand sendmail uses its restricted shell when an alias instructs it to pipe to a program. Sendmail is configured to use smrsh, and I have placed a symlink and/or copy of rt-mailgate in /var/adm/sm.bin.... which is sendmail's authorized programs directory. But still the above error occurs.

I've reconfigured sendmail.cf to use /bin/bash instead of /usr/lib/smrsh instead, without success. Permissions on smrsh look okay as far as I know. I still get the same result...just now with the different shell reference:

Aug 21 15:15:43 vpd1tst1no sm-mta[8171]: [ID 801593 mail.info] m7LLFgpJ008170: Warning: program /bin/bash unsafe: No such file or directory
Aug 21 15:15:43 vpd1tst1no last message repeated 1 time
Aug 21 15:15:43 vpd1tst1no sm-mta[8171]: [ID 801593 mail.crit] m7LLFgpJ008170: SYSERR(root): Cannot exec /bin/bash : No such file or directory
Aug 21 15:15:43 vpd1tst1no last message repeated 1 time


I've checked my $PATH to make sure it can find /usr/lib/smrsh or /bin/bash (even though its pretty hard to miss those). I've tried sending mail as root, and both as a regular user. I've also included the DontBlameSendmail flags, in the sendmail config, to ease up on the security configuration parameters of sendmail itself. Still no luck.

I am able to send mail successfully to local users.

Also, when I run the RT program with sendmail's shell outside of sending an email with sendmail, it runs properly, however doesn't have any flags to pass an email to it via STDIN.

# smrsh -c | /usr/local/rt3/bin/rt-mailgate --queue General --action correspond --url https://localhost/
Usage: smrsh -c command
/usr/local/rt3/bin/rt-mailgate: no message passed on STDIN!
#




Any thoughts on the warning: program unsafe errors sendmail is throwing?
 
  


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 config error: mail loops back to me (MX problem?) /jhannus Slackware 6 06-21-2011 05:44 AM
Warning: and Fatal error require_once(../wp-config.php) [function.require-once] jouvert Linux - Newbie 3 06-25-2008 01:52 AM
Sendmail - Config for IP Block's & Config Issues Thom_Redhat Linux - Software 1 04-07-2006 01:29 PM
smtp-vilter error: unsafe socket on Fedora Core 2 PlorkZ Linux - Software 0 08-18-2004 12:15 PM
Gtk-Warning but program still works... I close konsole, program closes Laptop2250 Linux - Software 2 11-14-2003 11:18 PM

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

All times are GMT -5. The time now is 06:02 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