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 06-19-2003, 01:16 PM   #1
markstevens
Member
 
Registered: Jun 2003
Posts: 86

Rep: Reputation: 15
Procmail configured but not available?


This is a continuation of another post but has changed enough I wanted people to be able to find it easier.

http://www.linuxquestions.org/questi...threadid=66609

I have a .procmail.rc file in /home/myaccount that I am using for auto reply.

The .forward file is calling the .procmail.rc file fine.

But I get the message bounced with this error:

----- The following addresses had permanent fatal errors -----
"|exec /usr/bin/procmail"
(reason: Service unavailable)
(expanded from: <xxxxxxxxxxx>)


----- Transcript of session follows -----
smrsh: "procmail" not available for sendmail programs (stat failed)
554 5.0.0 Service unavailable

So I checked sendmail.mc and found

define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
FEATURE(local_procmail, `',`procmail -t -Y -a $h -d $u')dnl
MAILER(procmail) dnl

that is the correct location of procmail on my system.

Any idea why Sendmail is saying Procmail is not available?
 
Old 06-19-2003, 02:26 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Check the permission on your .procmailrc

Some daemons require chmod 600 and won't work if the permission is set any looser than that.
 
Old 06-19-2003, 02:32 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
few things so pick at...

it's .procmailrc not .procmail.rc

you don't need anything in your .forward

does /usr/bin/procmail actually exist?
 
Old 06-19-2003, 02:54 PM   #4
markstevens
Member
 
Registered: Jun 2003
Posts: 86

Original Poster
Rep: Reputation: 15
I picked up on the .procmailrc file name issue. Corrected that.

I have tried changing permissions.

No change.

I tried an empty .forward file and the e-mail is delivered but there is no return message.

If the .forward file is not calling the procmail program how does the procmail program know to start?

whereis procmail = /usr/bin/procmail


Any other ideas?
 
Old 06-19-2003, 03:16 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Procmail runs as a daemon

# Common e-mail tools
sendmail - postfix - sends mail to local users (and internet when configured correctly)
fetchmail - gets mail from internet accounts (non-Hotmail type)
procmail - sorts and delivers into separate mailboxes
mutt - mail client that sucks less than all the others
Email the Linux Way
Suresh Ramasubramanian's email guide
The Linux Mail User HOWTO
The Linux Electronic Mail Administrator HOWTO
SquirrelMail web mail
Why use Hotmail when there is LinuxMail?
Gotmail, a utility to download mail from Hotmail type accounts
 
Old 06-19-2003, 03:26 PM   #6
markstevens
Member
 
Registered: Jun 2003
Posts: 86

Original Poster
Rep: Reputation: 15
So I turned on Verbose in my rc file and the result was... the auto reply worked but I got this in my bounce.

What does it all mean?

----- Transcript of session follows -----
smrsh: "procmail" not available for sendmail programs (stat failed)
554 5.0.0 Service unavailable
procmail: [25316] Thu Jun 19 15:23:23 2003
procmail: Match on "^To:.*\<()realname\>"
procmail: Match on ! "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: Multiple recipients of |(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSE RV|o(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem )|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@> ][^<)]*(\(.*\).*)?)?$([^>]|$)))"
procmail: Match on ! "^X-Loop: realname@realdomain.com"
procmail: Locking "vacation.lock"
procmail: Executing "formail,-rD,8192,vacation.cache"
procmail: Assigning "LASTFOLDER=formail -rD 8192 vacation.cache"
procmail: Unlocking "vacation.lock"
procmail: Locking "/var/spool/mail/realname.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/realname"
procmail: Opening "/var/spool/mail/realname"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/spool/mail/realname.lock"
procmail: Notified comsat: "realname@0:/var/spool/mail/realname"
>


So what is my next step?

Like I said the auto reply feature does work but for some reason we are still getting the bounce message as well. This doesn't make sense.
 
Old 06-19-2003, 03:35 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Are you using the isp mail or local. If you are going through your isp, you will need to re-configure sendmail.

Suresh Ramasubramanian's email guide- Sendmail on a dialup
sendmail

# Common e-mail tools
sendmail - postfix - sends mail to local users (and internet when configured correctly)
fetchmail - gets mail from internet accounts (non-Hotmail type)
procmail - sorts and delivers into separate mailboxes
mutt - mail client that sucks less than all the others
Email the Linux Way
Suresh Ramasubramanian's email guide
The Linux Mail User HOWTO
The Linux Electronic Mail Administrator HOWTO
SquirrelMail web mail
Why use Hotmail when there is LinuxMail?
Gotmail, a utility to download mail from Hotmail type accounts

Last edited by fancypiper; 06-19-2003 at 03:39 PM.
 
Old 06-19-2003, 03:38 PM   #8
markstevens
Member
 
Registered: Jun 2003
Posts: 86

Original Poster
Rep: Reputation: 15
We host our own mail server.
 
Old 06-19-2003, 03:44 PM   #9
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
A google search for your error messages mentions that sendmail isn't configured correctly. Try the link in my sig and search for:

smrsh: "procmail" not available for sendmail programs (stat failed)
 
Old 06-19-2003, 03:55 PM   #10
markstevens
Member
 
Registered: Jun 2003
Posts: 86

Original Poster
Rep: Reputation: 15
Well I used you linux/google search and got nothing of value and certainly nothing to support that the sendmail is not properly configured. Additionally... I did a standard google search... something I do constantly every day... and found the same question I have had with no resolution.

So I guess it may be that no one has the answer to my problem.
 
Old 06-19-2003, 08:41 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Do sendmail/maillog/syslog/messages logfiles show any error messages?
 
Old 06-20-2003, 08:13 AM   #12
markstevens
Member
 
Registered: Jun 2003
Posts: 86

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by unSpawn
Do sendmail/maillog/syslog/messages logfiles show any error messages?
the only log that I can find is /var/log/maillog which of course is only logging transactions. No errors reported there. I checked through the sendmail.mc file and could find nothing to set error reporting higher or to specify where to put logs. I will work on getting better loging.
 
Old 06-20-2003, 09:08 AM   #13
markstevens
Member
 
Registered: Jun 2003
Posts: 86

Original Poster
Rep: Reputation: 15
Talking PROBLEM SOLVED

And the reason this was so hard to figure out... was because it was so stinking simple.

Sendmail runs with smrsh and thus will only use programs in /etc/smrsh . So after reading man smrsh I discovered that i needed to drop a link for procmail into the smrsh directory. did that and after a few tweaks... it works.


Thanks everyone for the help... sorry to be such a pain.

Enjoy the weekend.
 
  


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
cannot get x configured paul62 *BSD 2 05-10-2005 10:11 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
X is not configured hhegab Fedora 4 05-03-2004 11:31 AM
can GRUB be configured mikew Linux - General 6 10-23-2002 09:20 AM
No Configured Video davidb Linux - Software 2 02-15-2001 12:23 PM

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

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