• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

procmail regeln und weiterleiten

Status
Für weitere Antworten geschlossen.

pat270881

Newbie
hallo,

Ich hätte dazu zwei Fragen:

*)Wie kann ich das konfigurieren, dass mails automatisch in ein von mir erstelltes mail-directory weitergeleitet werden und nicht in /var/spool/mail, wie das standardmäßig der fall ist?

*)ich habe ein paar procmail-Regeln definiert und wollte euch fragen, ob sie vielleicht jemand von euch kurz ansehen könnte, ob die so funktionieren könnten?

Code:
#Put mails with a subject like this in the spam-directory, instead of the i 1 or ! is also possible with any a's and g's but the r and a at the end only one time 
0: 
* ^(From|Cc|To).*V[i,1,!]a+g+ra 
/home/patrick/spam 


#Put mails with a word phrase "to remove XXX address" in the body in the spam directory, XXX can stand for string with 0 or more numbers or letters 
1:B 
* to remove [a-z A-Z 0-9]*address 
/home/patrick/spam 


#Put mails with sender badguyXXX@spammers.org in the spam directory, XXX can stand for any number between 1 and 4444 
2: 
* ^(From|Cc|To)badguy[123][0-9][0-9][0-9]@spammers.org
home/patrick/spam 

3: 
* ^(From|Cc|To)badguy[4][0-4][0-4][0-4]@spammers.org
/home/patrick/spam 


#Put mails bigger than 50000 Byte in the spam directory 
4: 
* > 50000 
/home/patrick/spam

Wäre super, wenn jemand zeit finden würde.
 
Status
Für weitere Antworten geschlossen.
Oben