hellkvist.org Forum Index hellkvist.org
Discussions about the free software on hellkvist.org
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

.procmailrc?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Apr 07, 2004 6:17 pm    Post subject: .procmailrc? Reply with quote

is there anyway to load procmailrc manually?, im not sure if my MTA is setup to process procmailrc properly or if it has the wrong permissions,

~peffisaurmail/.procmailrc reads...


LOGFILE=/tmp/recmail.log
:0
| /home/peffisaurmail/recmail.pl


~peffisaurmail/recmail.pl is setup like ....

$munpack = "/usr/local/bin/munpack";
$msgstore = "/var/www/html/msgstore";
$reldir = "msgstore";

munpack -appears- to be installed and working

peffisaurmail@www:/usr/local/bin$ /usr/local/bin/./munpack
munpack: reading from standard input

procmail is installed and working i think
peffisaurmail@www:~$ procmail -v
procmail v3.22 2001/09/10
Copyright (c) 1990-2001, Stephen R. van den Berg <srb@cuci.nl>
Copyright (c) 1997-2001, Philip A. Guenther <guenther@sendmail.com>



does .procmailrc need to be chmodded or something? is there any way i can check where the transfer is failing? , the message ive sent is in the inbox of peffisaurmail but procmailrc hasn't done anything, :/

any help/advice would be greatly appreciated
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Wed Apr 07, 2004 9:56 pm    Post subject: Reply with quote

First of all - check if anything is processed by the procmail script. Take a look in the /tmp/recmail.log as it's specified in your file. An entry should be written there for every incoming email. If it's not something is not working with the procmail setup. The .procmailrc I don't think have to be executable but the recmail.pl certainly has to. And make sure they are both readable by the user that the sendmail daemon runs as (perhaps root but perhaps something else on your system) - to be safe you could give read and execute permissions to all users.

Then if you do get entries in /tmp/recmail.log but still nothing on the site - check for any errors in the log file. There are a few bugs in recmail.pl (search the forum for recmail.pl to find a more updated one) so if you get any error messages in /tmp/recmail.pl this could be it....assuming the "MSISDN" for the user goes ok. You will be able to see in /tmp/recmail.log where the message goes. If it is processed ok or if it gets spooled to the email folder of the peffisaurmail user.
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Thu Apr 08, 2004 9:50 pm    Post subject: Reply with quote

is procmail supposed to be running all the time?

when i "ps aux" it's not listed o_O
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Thu Apr 08, 2004 10:51 pm    Post subject: Reply with quote

No no. It's not a daemon and it's not a program even. It's simply a file that sendmail reads to determine how it should process the incoming email. In this case we direct it to pipe the email through the recmail.pl script. But that script won't run always either. It will only run when an email arrives.
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Thu Apr 08, 2004 11:41 pm    Post subject: Reply with quote

hrm :/ I thought sendmail was only needed so that the php script could call the "mail" and send out e-mails. I was using "postfix" as my MTA instead, doesnt procmail only need the "procmail" program? - or is procmailrc dependant on both "procmail" and "sendmail" ?
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Fri Apr 09, 2004 10:39 am    Post subject: Reply with quote

Well, I'm no specialist in MTA programs but I suppose any program with procmail support will do and I don't think sendmail is the only one. By searching for procmail and postfix on google I would say that postfix handles it too. You just have to figure out how to configure it.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    hellkvist.org Forum Index -> Peffisaur All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group