Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
procmail configuration help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
LonelyStar
Guru
Guru


Joined: 06 Dec 2005
Posts: 390

PostPosted: Tue Dec 25, 2007 12:24 am    Post subject: procmail configuration help Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
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