From: Larry G. <Li...@IS...> - 2003-10-29 06:45:50
|
Hi Jamie, I was testing the "Header and Body Tests". I noticed a problem saving a regex. I have the following rule: Received =~ /from.* \(unknown \[\d+\.\d+\.\d+\.\d+\]\)/i When saving, I received the following error: #----- Failed to save tests : '/from.* \(unknown \[\d+\.\d+\.\d+\.\d+\]\)/i' is not a valid regular expression (must be like /expression/) #----- Now when I manually enter the rule in the local.cf and review the rule in the module, it looks like: Regular Expression Default Value /from.* \(unknown My guess is that the escapes are causing a problem. Additionally, it appears that you are only checking for the presence of spamc in a procmail recipe. Is that true? If spamc/spamd is utilized, spamd must be restarted or reloaded (2.60) to load the new rules into memory. This would mean that administrators have the ability to create and modify the rules through this module but would not have the ability to implement them if running spamc/spamd. SA 2.55 and earlier needs to have spamd restarted and 2.60 can either be restarted or it can reload it's configuratio via SIGHUP. A pid file may exist only if spamd is invoked with the '-r' switch. The spamd doc lists a note that: "If spamd receives a SIGHUP, it internally reloads itself, which means that it will change its pid and might not restart at all if its environment changed (ie. if it can't change back into its own directory). If you plan to use SIGHUP, you should always start spamd with the -r switch to know its current pid." I would think that the best option is to restart if spamd was not invoked with the '-r' switch. Regards, Larry |