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 

Clarify the Email function step by step

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





PostPosted: Sun May 23, 2004 3:26 am    Post subject: Clarify the Email function step by step Reply with quote

Messages are been sent to p-53b16f3f@domain.com and the mail filter is directing all mail that is sent to an address beginning with “p” to the .promailrc file
Here is the .filter file contents
$header_to: begins "p"+++++++|/home/peffisaur_user/.procmailrc

In /home/peffisaur_user/ I’ve created a file .forward with the file contents
|/usr/bin/procmail

.procmailrc is located in the /home/peffisaur_user/ directory

.htaccess & recmail.pl are located in /home/peffisaur_user/public_html/ MMS/ with the other web pages
But no recmail.log file is been created in
/home/peffisaur_user/tmp

I think i should have workewd this out by now Embarassed
Back to top
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Sun May 23, 2004 8:42 pm    Post subject: Reply with quote

I don't get what that filter thing is that you are talking about. Is that something you must have in your system? Either way, regardless of how the filter works or who uses it, you should not pipe something through the procmailrc as you seem to do in the filter. With that filter thing you could probably avoid procmail altogether. Just pipe it directly to recmal.pl. But it's hard for me to tell as I don't know why you have a filter file.

/S
Back to top
View user's profile Send private message Visit poster's website
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Sun May 23, 2004 8:51 pm    Post subject: Reply with quote

To clarify...

The way it works, when filter is not used (which is the only thing I can talk about) is that the email server receives a message, sees that there is no user named p-23456 (or whatever), sees that there is a default route for these messages and sends the mail to that user. When sending it to the user it sees that there is a .forward file in that user's home directory thus it pipes the message through that. The forward in turn sends the message to procmail which will read the procmailrc to determine what to do with the message. In our case it will pipe the mail through recmail.pl which will unpack everything.

But what goes on with that filter thing I have no idea...
Back to top
View user's profile Send private message Visit poster's website
buglerroller



Joined: 12 Jul 2005
Posts: 5

PostPosted: Tue Jul 12, 2005 9:05 pm    Post subject: Reply with quote

After reading this and another post, is correct that the .forward file should have;

$header_to: begins "p-"+++++++|/home/my_username/recmail.pl
Back to top
View user's profile Send private message
Peffis
Site Admin


Joined: 09 Sep 2003
Posts: 324
Location: Sweden

PostPosted: Wed Jul 13, 2005 4:09 pm    Post subject: Reply with quote

My .forward contains only
Code:
|/usr/bin/procmail


Then my .procmailrc contains
Code:
LOGFILE=/home/hellkvis/tmp/recmail.log

:0
| /home/hellkvis/bin/recmail.pl


hellkvis is the user that all emails are directed to
Back to top
View user's profile Send private message Visit poster's website
buglerroller



Joined: 12 Jul 2005
Posts: 5

PostPosted: Wed Jul 13, 2005 4:32 pm    Post subject: Reply with quote

Do these files have any special owner properties? Im still having problems getting Peffisaur working 100%. When i try your .forward file no email is received to any account...

I still cannot access my log file either. this is all very odd
Back to top
View user's profile Send private message
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