Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
procmail (or similar) for vpopmail-users
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
Holly
n00b
n00b


Joined: 08 Mar 2003
Posts: 67

PostPosted: Mon Oct 18, 2004 2:25 pm    Post subject: procmail (or similar) for vpopmail-users Reply with quote

can I use procmail in connection with vpopmail so that i have different procmail-settings for each vpopmail-user?

background: i have installed a mailserver basically with the qmail/vpopmail-howto. now some of the users want certain mails to be delivered into different folders of ther IMAP-account. like spam or newsletters, mailinglists etc.

so it would be good if each user's procmail-settings were in a seperate file, instead of one central procmailrc of the vpopmail-user.

if this won't work with procmail, is there any other solution to do this?
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Fri Nov 26, 2004 2:07 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
DeathAndTaxes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Mar 2003
Posts: 124

PostPosted: Mon Nov 29, 2004 9:37 am    Post subject: Reply with quote

I did this with mailfilter instead of procmail, I think. It can be done. Hopefully in the next couple of days I can find my personal docs on how I did this and post them. :-\
Back to top
View user's profile Send private message
arlequin
l33t
l33t


Joined: 16 Nov 2002
Posts: 707
Location: grep $USER /etc/passwd | cut -d':' -f6

PostPosted: Tue Jan 04, 2005 4:41 pm    Post subject: Reply with quote

You can use 'qmail-inject' in your .procmail file, in order to deliver the mail to vpopmail account. My procmail rules look like this :

Code:
# Spamassassin
:0 fw
| /usr/bin/spamc

# Personnal script for clamav
:0 fw
| /home/tom/scripts/mscan.sh

:0 fw
| /usr/bin/formail -I "X-Procmail: scan complete"

# Qmail-inject while deliver mail to vpopmail
:0 fw
| /var/qmail/bin/qmail-inject myemail@mydomain.com

# Avoid errors with procmail/fetchmail
:0:
/dev/null


and procmail is called by fetchmail, with this (fcron task) :

Code:
/usr/bin/fetchmail -a -D mydomain.com -m "/usr/bin/procmail -d %T"


Hope this help ! :wink:
_________________
J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais.
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