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 

Email messages to website problem

 
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
jase
Guest





PostPosted: Tue Mar 16, 2004 1:02 am    Post subject: Email messages to website problem Reply with quote

First of all this program is a great idea. The site is all working well except i can't get users to recieve messages via email (Haven't tried via phone, not worried at this stage). The site is http://www.studex.co.nz/ & as u can see the users have no posts. I have MMS a msg to a mailbox then forward that msg to "p-7c04df84@studex.co.nz" which is ment to send a post to a user called Joe(When joe signed up he recieved mail with this address p-7c04df84@studex.co.nz, so i can msgs to that address - right?).
I thought i had configered .htaccess, .procmailrc, recmail.pl & config.php correctly but must have an error somewhere. Any advice would b appreaciated Smile
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Thu Mar 18, 2004 9:24 am    Post subject: Reply with quote

I'm not sure I follow in all details you mention but here is how the email interface works. You send an email to the address you get in the registration email. For this to work you would have had to set up the email server to send all unrouted email (email without a proper user account) to a special account, say to the peffisaur user. In the peffisaur user's home account you first have the procmailrc but also the recmail.pl (make sure recmail.pl is executable and readable by any user (or at least the user that the email server runs as). If this part is setup correct then you should get log entries in /tmp/recmail.log so check those entries when you email. If you don't get the file or if it's empty then something is wrong with your email server setup.

Then in order for Peffisaur to accept messages and put them in the database it will check the ID (in this case 7c04df84) against its database, and lookup the MSISDN property of that user. What it finds as this property must be equal to whatever comes in front of the @-sign in the from address. The reason why it's called MSISDN is that many operators choose to put the phone number in front of the @-sign. But some may not so check what it says in the email you got in your phone. And this is where I think your explanation sounds strange. It seems you have an MMS in your inbox and forwards it to the address. What you must know is that then you get the sender address of that inbox in the from address, thus in order for it to work you would have to put whatever comes before the @-sign in THAT address in the MSISDN property instead.

But you could also hack the recmail.pl and disable checking against the MSISDN property. It was just a small solution to make the solution a little bit more protected. It's still more or less wide open however.
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