LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-01-2014, 08:10 AM   #1
socalheel
Member
 
Registered: Oct 2012
Location: Raleigh, NC
Distribution: CentOS / RHEL
Posts: 158

Rep: Reputation: 3
Sendmail ... "Insufficient permission"?


what could be doing this?

I am forwarding an email to "project@redmine.company.com" with an alias entry in /etc/aliases

[code]
project: "|/etc/smrsh/redmine_mailhandler.rb --url http://redmine01.company.com --key removed"
[\code]

my first problem was i had the mailhandler's full pathname and it could not call the script. i had to put in a symlink for /etc/smrsh/redmine_mailhandler.rb -> /opt/redmine/extra/mail_handler/redmine_mailhandler.rb and i was able to get the script called.

now, i'm running into the below error.
i believe the permissions are set properly on the script, they are:

-rwxr-xr-x root apache
and i gave mail rwx permissions with setfacl

Code:
Jan 31 15:35:05 redmine sendmail[29243]: s0VKZ5HH029242: to="|/etc/smrsh/rdm-mailhandler --url http://redmine01.company.com --key removed", ctladdr=<alias@localhost.localdomain> (8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=30752, dsn=5.0.0, stat=Insufficient permission


Jan 31 15:35:05 redmine sendmail[29243]: s0VKZ5HH029242: s0VKZ5HH029243: DSN: Insufficient permission
 
Old 02-02-2014, 10:46 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
After editing your sendmail config, did you restart the sendmail daemon to have the changes take effect?
 
1 members found this post helpful.
Old 02-02-2014, 03:48 PM   #3
Rawcous
Member
 
Registered: Jan 2014
Location: Farnborough, Hampshire - UK
Distribution: SCO UNIX -> Fedora (Core) -> CentOS -> RedHat
Posts: 128

Rep: Reputation: 48
Hello SocalHeel,

Out of interest what is the result of the following:

ls -ld /var/spool/mqueue
ls -ld /var/spool/mail

I have the following respectively:

drwx------. 2 root mail 4096 Feb 2 19:09 /var/spool/mqueue
drwxrwxr-x. 3 root mail 4096 Feb 2 19:10 /var/spool/mail

Maybe my suggestion as per this earlier thread may help: http://www.linuxquestions.org/questi...did=4175493356

In step 8 replace "8. echo "\B, A" > .forward" with "|/etc/smrsh/redmine_mailhandler.rb --url http://redmine01.company.com --key removed"

After you have done this remove the entry from /etc/aliases and regenerate the .db with the command newaliases

Hope it helps..

Regards,

Rawcous!
 
1 members found this post helpful.
Old 02-03-2014, 11:35 AM   #4
socalheel
Member
 
Registered: Oct 2012
Location: Raleigh, NC
Distribution: CentOS / RHEL
Posts: 158

Original Poster
Rep: Reputation: 3
Thanks for the input guys ... turns out wasn't a sendmail configuration issue at all. It had to do with the options on the mailhandler file.

I had to add the following:

Code:
--no-permission-check --unknown-user=accept
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 "Permission denied" for local users kassemi Linux - Software 5 11-14-2013 04:47 AM
Usage of "-f" option of grep in a script results in "Permission Denied" error zaayu87 Linux - Newbie 3 07-25-2013 01:45 PM
"Permission denied" and "recursive directory loop" when searching for string in files mack1e Linux - Newbie 5 06-12-2008 08:38 AM
sendmail: "permission denied" when using include:/file sohmc Linux - Software 1 05-22-2003 07:40 AM
sendmail: "Who are you?: Permission denied!" markus1982 Linux - Networking 2 10-08-2002 12:55 PM

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

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