This is a discussion on Re: [courier-users] Still maildrop within the Courier-Imap forums, part of the Mail Servers and Related category; > This doesn't appear to be a Courier issue as you've stated > the question. > You're ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> This doesn't appear to be a Courier issue as you've stated
> the question. > You're using Courier-IMAP to provide access to stored mail > after it's been delivered, but you don't mention using > maildrop as your delivery agent, except in your subject header. > > If you were using Maildrop and Courier MTA, you could use the > $USER variable in your maildrop filter rules, which can (on > my servers it always does) contain the full email address of > the delivery account. If you were using SpamAssassin for > filtering your email you would want to store all information > (Bayesian filtering info, user prefs, auto-whitelist info) in > a MySQL database as well, and use "-u $USER" > with all relevant SpamAssassin components. > > SpamAssassin (probably also dspam and other spam detection > programs) adds headers to email which can be tested and used > for mail sorting. > e.g., in my (still experimental) setup: > > if( $SIZE < $SCANSPAMSIZE ) > { > xfilter "/usr/bin/spamc -u $USER -s $SCANSPAMSIZE" > } > > if (/^X-Spam-Status: *YES/:h) > { > exception { > to "$DEFAULT/.Spam/" > } > } Thanks Lindsay for your precious hints.. But, Im I have alredy put in '/etc/maildroprc' the lines above. The proble is that when I receive an email for one of my mailbox, that message is not scanned by maildrop: Jun 18 08:37:12 dev postfix/smtpd[16012]: connect from relay.sttspa.it[80.74.176.142] Jun 18 08:37:12 dev postfix/smtpd[16012]: 3593043E2: client=relay.sttspa.it[80.74.176.142] Jun 18 08:37:12 dev postfix/cleanup[16017]: 3593043E2: message-id=<D1B1DF404A32164AACB366ADFEA7C0E00113A0E0@srv5. stt.loc> Jun 18 08:37:12 dev postfix/qmgr[29684]: 3593043E2: from=<xxx@yy>, size=1522, nrcpt=1 (queue active) Jun 18 08:37:12 dev postfix/smtpd[16012]: disconnect from relay.sttspa.it[80.74.176.142] Jun 18 08:37:12 dev postfix/virtual[16019]: 3593043E2: to=<rocco@nomesito.it>, relay=virtual, delay=0, status=sent (delivered to maildir) Jun 18 08:37:12 dev postfix/qmgr[29684]: 3593043E2: removed It seems to me the problem is that the message is delivered to the virtual mailbox before is scanned ("relay=virtual" on the 6th line above). Moreover, I don't think that what you said in you previous email works, because the e.v. $USER in my case refers to the user which is running postfix... Hoping that I m clear in what I'm saying. Howerver, I ve no proble to give you further clarification. rocsca ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |