Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
maildrop nightmare: qmail/courier/vpopmail [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
jbryner
n00b
n00b


Joined: 03 Sep 2004
Posts: 47
Location: pdx

PostPosted: Sat Apr 19, 2008 9:13 pm    Post subject: maildrop nightmare: qmail/courier/vpopmail [solved] Reply with quote

Usually when I can't find the answer in the howto/wiki/tips and tricks I'm missing something basic. Hopefully this is the case.

Situation: I installed and have working qmail/vpopmail/courier per the guide at: http://www.gentoo.org/doc/en/qmail-howto.xml

Problem: The guide doesn't cover maildrop filters and I'd like to get that working.

Where I've looked:
http://gentoo-wiki.com/HOWTO_Email_Virtual_Server_Maildrop_and_Spam_Assasin#Maildrop_Setup
http://gentoo-wiki.com/Maildrop_configuration#Qmail_Integration
The maildrop conf in this post helped the most:
https://forums.gentoo.org/viewtopic.php?t=111817&postdays=0&postorder=asc&start=50

but still no love.

My setup:
I edited the default .qmail-default file in /var/vpopmail/domains/mydomainnamehere/ to have simply:

Code:

| maildrop -M /etc/conf.d/maildroprc
| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox


since I'd like universal defaults (send spam to .spam, etc).

the /etc/conf.d/maildroprc file doesn't seem to do anything. I tried a simple:
Code:

log "====  BEGIN maildrop processing for $EXT@$HOST ==="


But no log anywhere that I can find. I tried other simple commands as well like:
Code:

xfilter "/usr/bin/reformail -a \"X-Myheader: myheader\""


But they also have no effect. So I'm thinking that I'm missing something simple? Anyone got a clue for me?

Thanks!


Last edited by jbryner on Sun Apr 20, 2008 8:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
jbryner
n00b
n00b


Joined: 03 Sep 2004
Posts: 47
Location: pdx

PostPosted: Sun Apr 20, 2008 8:32 pm    Post subject: Reply with quote

Not to fix my own problem or anything ;-) but here's what works:

/var/vpopmail/domains/thedomainnamegoeshere.com/.qmail-default
Code:

| /var/qmail/bin/preline /usr/bin/maildrop /var/vpopmail/domains/thedomainnamegoeshere.com/mailfilter


the mailfilter file has this in it as a start:
Code:


SHELL="/bin/sh"
import EXT
import HOST
VPOP="| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
VHOME=`/var/vpopmail/bin/vuserinfo -d $EXT@$HOST`

logfile "/var/log/maildrop.log"
log "====  BEGIN maildrop processing for $EXT@$HOST ==="

#defaultdelivery
log "all if's failed.  So im delivering the meaage"
to "$VPOP"


All the files (.qmail-default, mailfilter,/var/log/maildrop.log ) are chmod 600 and owned by vpopmail:vpopmail

This gives me entries in my /var/log/maildrop.log file and gives me a place to start custom filters.

FWIW I got some clues from this post:
http://forum.qmailrocks.org/showthread.php?t=6268&highlight=qmail-default

Whew!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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