Hi All,
I am using james-2.3.0 server integrated with jsieve. I have written a sieve
script which rejects a mail if the subject contains
"*make*money*fast*,*university*dipl*mas*".
When I send a mail from user1 to user2, user2 first recieves the mail and
then reject mail is send to the user. I am then getting reject mails every
few seconds and it goes on until I comment the reject statement and restart
the james server.
Can anybody provide me solution how can this infinite mailing be stopped.
here's my sieve script which I am using.
#
# Example Sieve Filter
# Declare any optional features or extension used by the script
#
require["fileinto","redirect","reject","discard"];
#
# Handle messages from known mailing lists
# Move messages from IETF filter discussion list to filter folder
#
#
# Try and catch unsolicited email. If a message is not to me,
# or it contains a subject known to be spam, file it away.
#
#if anyof (not address :all :contains
# ["To", "Cc", "Bcc"] "[EMAIL PROTECTED]",
# header :matches "subject"
# ["*make*money*fast*", "*university*dipl*mas*"])
# {
# # If message header does not contain my address,
# # it's from a list.
# fileinto "spam1"; # move to "spam" folder
# }
#if header :contains ["To"] ["[EMAIL PROTECTED]"]
#{
# discard;
#redirect "[EMAIL PROTECTED]";
#stop;
#reject "We just wont to block you for testing purposes:";
# keep in "In" folder
#}
#if header :matches "Subject" ["*money*","*Viagra*"]{
#reject "Don't send Spam Mails.";
# stop;
#}
if header :contains "Subject" ["*make*money*fast*","*university*dipl*mas*"]
{
reject "This is a test mail to see how Rejects work.";
}
Thanks,
Ketan.B,Parekh
--
View this message in context:
http://www.nabble.com/infinite-loop-mails-sent-on-reject-by-sieve-script-tf3584592.html#a10016536
Sent from the James - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]