View previous topic :: View next topic |
Author |
Message |
joe Guest
|
Posted: Sun May 23, 2004 3:26 am Post subject: Clarify the Email function step by step |
|
|
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 |
|
Back to top |
|
|
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Sun May 23, 2004 8:42 pm Post subject: |
|
|
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 |
|
|
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Sun May 23, 2004 8:51 pm Post subject: |
|
|
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 |
|
|
buglerroller
Joined: 12 Jul 2005 Posts: 5
|
Posted: Tue Jul 12, 2005 9:05 pm Post subject: |
|
|
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 |
|
|
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Wed Jul 13, 2005 4:09 pm Post subject: |
|
|
My .forward contains only
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 |
|
|
buglerroller
Joined: 12 Jul 2005 Posts: 5
|
Posted: Wed Jul 13, 2005 4:32 pm Post subject: |
|
|
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 |
|
|
|