On Fri, 07 Jun 2013 17:23:47 +1000 Mark Constable <[email protected]> wrote:
> On 06/07/2013 05:09 PM, Milan Obuch wrote: > >> Do I have to somehow call the users .mailfilter from > >> /etc/courier/maildroprc? > > > > In my understanding it is the other way round, maildrop uses > > maildroprc file when started. What is your DEFAULTDELIVERY setting > > in your courierd config file? It should be > > > > DEFAULTDELIVERY="| /usr/local/bin/maildrop" > > This part works fine as I use /etc/courier/maildroprc to do my Dspam > filtering and that works really well... > > ~ grep DEFAULTDELIVERY /etc/courier/courierd | grep -v '#' > DEFAULTDELIVERY="| /usr/bin/maildrop" > That's OK. > > if maildrop is to be used for local mail delivery. Or, if you like > > it only for some mailboxes, use .courier file to enable it. > > Yes, aliasing is working just fine too. What does not seem to work is > any ~/.mailfilter file I provide (suitably chown/chmod'd). Clients > used to use sqwebmail for vacation scripts and I still have one > example created by sqwebmail but it and any simple test scripts are > not working. > > ~ cat /var/vmail/renta.net/markc/.mailfilter > logfile "/var/log/maildrop.log" > SENDER=tolower($SENDER) > log "Hello $SENDER" > #cc test@address > > ~ ll /etc/courier/mail* > -rw-r--r-- 1 root root 18 Nov 29 2010 /etc/courier/maildrop > -rw-r--r-- 1 root root 18 Jun 7 16:07 /etc/courier/maildropfilter > -rw-r--r-- 1 root root 665 Apr 19 17:25 /etc/courier/maildroprc > > ~ cat /etc/courier/maildropfilter > /usr/bin/maildrop > What is in your /etc/courier/maildroprc? Do you have any delivery instruction there? If not, $HOME/.mailfilter should be executed after maildroprc processing... Also, for a test, you could try it without maildroprc file. Regards, Milan ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
