View previous topic :: View next topic |
Author |
Message |
Holly n00b
Joined: 08 Mar 2003 Posts: 67
|
Posted: Mon Oct 18, 2004 2:25 pm Post subject: procmail (or similar) for vpopmail-users |
|
|
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 |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Fri Nov 26, 2004 2:07 am Post subject: |
|
|
bump |
|
Back to top |
|
|
DeathAndTaxes Tux's lil' helper
Joined: 27 Mar 2003 Posts: 124
|
Posted: Mon Nov 29, 2004 9:37 am Post subject: |
|
|
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 |
|
|
arlequin l33t
Joined: 16 Nov 2002 Posts: 707 Location: grep $USER /etc/passwd | cut -d':' -f6
|
Posted: Tue Jan 04, 2005 4:41 pm Post subject: |
|
|
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 ! _________________ J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais. |
|
Back to top |
|
|
|