Correct regexp to block mails that advertise certain websites?
Julian Field
MailScanner at ecs.soton.ac.uk
Fri Jan 11 16:25:10 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
After you put this in /etc/mail/spamassassin/local.cf or
/etc/MailScanner/spam.assassin.prefs.conf (which should be linked to
/etc/mail/spamassassin/mailscanner.cf, are you doing a "service
MailScanner restart"
?
Remco Barendse wrote:
> Hi list!
>
> I would like to block e-mails that always contain a certain url that
> allows to "unsubscribe".
>
> The unsubcribe url from the e-mail is this in plain text :
> <a
> href="http://www.ur...ethanes-technology-international.com/unsubscribe.aspx?id=31797&email=whoever@whatever.com">click
> here to unsubscribe</a> .
>
> I tried to block this using the following regexp :
> body URETH1
> /^http:\/\/.*\.ur...ethanes-technology-international\.com\//
> describe URETH1 urethane rubbish
> score URETH1 100
>
> (deliberately broke the url with some dots as my message doesn't seem
> to make it to the list)
>
> But nothing happens, where do i go wrong?
>
> Where do i go wrong? I would already be happy if i can block any
> e-mail that contains urethanes-technology-international.com i am sure
> that no legitimate e-mail will contain a link to it
>
> Thanks!!
Jules
- --
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.7.0 (Build 1012)
Comment: (pgp-secured)
Charset: ISO-8859-1
wj8DBQFHh5hnEfZZRxQVtlQRAkTbAJ9zVbInyai87pQhmj2iAUzwGHmAuQCeK9oW
41t3ZKMREtbEPwsCjkGfSIQ=
=Day7
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MailScanner
mailing list