Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Trent on December 10, 2003, 03:25:12 PM
-
I've installed the Mailfront rules contrib and it's working fine. However, I wanted to create a rule that prevented any mail being accepted when that mail didn't have anything in the sender field. So, I blindly entered this into the mailfront rules panel in server manager. However, now I can't remove the rule.
Clicking on the remove link in the panel just brings up the 'remove rule' page but there's no confirmation button. The links for all the other rules work fine. I can remove and install to my heart's content. It's just that this one is impossible to remove.
Can anyone advise me where the system is storing the master list of the rules I create in this panel so I can at least manually edit the file and delete the offending rule?
-
I should mention that I've removed the mailfront rules contrib and restarted qmail. The /var/qmail/control/mailrules.default file updates accordingly with all the previously defined mailrules missing. That's fine. I then reinstall the mailfront rules contrib and lo and behold, the old rules are back. Wherever the mail rules are being stored isn't being cleared when the mailfront rules contrib is removed.
Any ideas? It's really getting to desperation point here.
-
Trent,
the mailfront rules are stored in the SME configuration database which you need to edit/update (carefully) for this.
/sbin/e-smith/config show MailrulesReject will show you the existing rules.
Hope that helps.
Regards,
Michael Doerner
[%sig%]
-
Thanks. However, I'm unsure what the syntax (or method) to drop the offending rule is. Here's the contents of the MailrulesReject:
MailrulesReject=*@*.excite.com:*@*:EXCITE REJECT,*@*.rocketmail.com:*@*:ROCKETMAIL REJECT,*@*.tekmailer.com:*@*:tekmailer REJECT,*@*.youask4it2.*@*:*@*:youask4it2-2 REJECT,*@ATT.COM:*@*:ATT REJECT,*@YAHOO.COM.CN:*@*:YAHOO.CN REJECT,*@aol.com:*@*:AOL REJECT,*@myonlinespecials.com:*@*:SPAM REJECT,*@netzero.net:*@*:NETZERO REJECT,*@superdealz.com:*@*:SUPERDEALS reject,*@quickdeals.biz:*@*:QUICKDEALS REJECT,*@swordfishmedia.biz:*@*:SWORDFISH REJECT,*@swordfishmedia.net:*@*:SWORDFISH REJECT,Aadmirable@NETSCAPE.COM:*@*:aadmirable reject,Garcia-BaconAngela8t@hotmail.com:*@*:GARCIA REJECT,comp-whiz@optusnet.com.au:*@*:compwhiz REJECT,youask4it2@*:*@*:youask4it2 reject,*@hotmail.com:*@*:HOTMAIL REJECT,:*@*:No sender REJECT
The last one is the problem child.
-
Did anyone find a fix for this silly mistake that was made??
-
just searched Darrell's site and found this:
Posted: Fri Dec 13, 2002 7:01 pm Post subject:
--------------------------------------------------------------------------------
mdo wrote:
When I try to remove one of those rules from the server manager it comes up with a panel "Remove mailrule" (nothing more?) but when I click later on Mailfront Mailrules, the rule is still there, no chance to remove at the moment?
I might have broken something accidentially?
Simply directly edit the config db (/home/e-smith/configuration). Look for MailrulesAccept and MailrulesReject. Or simply reset blank:
Quote:
# /sbin/e-smith/config set MailrulesAccept ""
# /sbin/e-smith/config set MailrulesReject ""
# /sbin/e-smith/expand-template /var/qmail/control/mailrules.default
Regards,
_________________
Darrell May
http://myEZserver.com
-
Manually edited /home/e-smith/configuration (After making a backup of the file) and removed the BAD rule *@* from the rules list. IT WORKED!!
HTH