LonelyStar Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 06 Dec 2005 Posts: 390
|
Posted: Tue Dec 25, 2007 12:24 am Post subject: procmail configuration help |
|
|
Hi,
I am trying to configure procmail on my mail server, but i am having trouble.
a)
I am using qmail/vpopmail. I am using a catchall address on my domain.
Since I am getting spam on certain Addresses (like info and webmaster) I would like to return a "Delivery failed" on these.
If I understand the qmail documentation correctly, this works if procmails return code is "100" for these addresses.
So I would need lines like these in my .procmailrc:
Code: |
:0
* ^From: webmaster@madomain.com
<return 100>
|
The questions is: How can I make procmail return the code 100?
b)
I am using the Maildir format. My default .procmailrc looks like this (not doing anything special):
Code: |
MAILDIR=/var/vpopmail/domains/mydomain.com/ls/.maildir/
LOGFILE=/home/ls/procmail.log
LOGABSTRACT=no
:0
* .*
$MAILDIR
|
Now I want to filter certain mails into subfolders. I am not sure how the Maildir format works.
Into what would the line "$MAILDIR" be changed to delivere the mail into "SOMEFOLDER" instead of "INBOX"?
Thanks!
Nathan |
|