[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vps-mail] spam and procmail tricks



Hi,

  I have a little problem on a VPS.

 I wanted to send all spam to a pop account but in the server's
procmailrc and not in one of the user's procmailrc.. I used:

:0:
* ^X-Spam-Flag: YES
! postmaster

but it was looping on itself sending to postmaster the email then back
to postmaster in a loop.

So i changed to this:

:0:
* ^X-Spam-Flag: YES
/var/mail/postmaster

but then it failed to create the lock file and complained. I understood
the rights were not enough so i used this:

:0: /tmp/procmaillockfile45566544
* ^X-Spam-Flag: YES
/var/mail/postmaster

but still it was not able to write to the mailbox as the user procmail
run as does not seems to have the right to write  in it.

So i dropped the privileges change DROP_PRIV=no :((( . But this bother
me as now it works but this is not really secure to speak lightly.

I was wondering about chmod 666 /var/mail/postmaster but this is not
really secure as well if someone link this file to anyonther it will
overwrite it..

What do you use to do this in the most secure way ?  A  good one should
be to:

:0:
* ^X-Spam-Flag: YES
! postmaster

and have a way to tell NO PROCMAIL for postmaster but will it work and
how (i failed to get this result) ?


ps: postmaster is a working pop account.


-- 
Cordialement,
Ghislain ADNET.
AQUEOS.

Attention !  Pour toute demande de support ou commande de domaine
utilisez désormais:
http://support.aqueos.net.  

 
AQUEOS - Service Informatique
1, Rue Albert Einstein
77420 Champs sur marne
  	
Service technique :  http://support.aqueos.net
Service commercial :  commercial@xxxxxxxxxx
Tel : 01.64.02.99.37, Fax: 0 1.72.70.32.66
 


Main Index | Thread Index
Match: Format: Sort by:
Search: