spamdyke doesn't currently scan the contents of messages, although I'm
planning to add some support for scanning and logging header lines in a
few versions. In any case, simply blocking messages based on words like
"Viagra" won't work. The spammers figured out how to circumvent that
strategy a long, long time ago.
You best bet for filtering message content is to install SpamAssassin.
Its message parser is very smart and it includes many pre-built rules
for exactly this kind of spam. It works well in combination with
spamdyke. See also this FAQ:
http://www.spamdyke.org/documentation/FAQ.html#SUGGESTION3
To block users from sending messages outside of their domains, the
configuration will be complex. It should work, however. WARNING: I
haven't tested this, so be careful!
Create two folders for spamdyke configuration directories:
mkdir -p /etc/spamdyke/restrict-domains.d
mkdir -p /etc/spamdyke/allow-domains.d
Add the following lines to your spamdyke configuration file:
config-dir=/etc/spamdyke/restrict-domains.d
config-dir=/etc/spamdyke/allow-domains.d
config-dir-search=all-sender
Create a folder structure to prevent your users from sending mail:
mkdir -p /etc/spamdyke/restrict-domains.d/_sender_/br/com
In that folder (/etc/spamdyke/restrict-domains.d/_sender_/br/com),
create a file named "riosulense" to block all mail from your users:
filter-level=reject-all
Create a folder structure to allow your users to send mail to
specific domains:
mkdir -p
/etc/spamdyke/allow-domains.d/_sender_/br/com/riosulense/_recipient_/br/com
In that folder
(/etc/spamdyke/allow-domains.d/_sender_/br/com/riosulense/_recipient_/br/com),
create a file named "riosulense" to allow mail:
filter-level=normal
That _should_ work. See the documentation for full details:
http://www.spamdyke.org/documentation/README.html#CONFIGURATION_DIR
Good luck!
-- Sam Clippinger
Rafael Andrade wrote:
> How i can block emails, searching some Regex on ur body?
>
> Example: Searching Viagra, or Mercadolibre, Cialis, Xxx, Sex, whatever
> some words on email send or receive.
>
>
> and how i can block users to dont send mails to out of ur domain.
>
> Example: [EMAIL PROTECTED] only can send mails to others
> [EMAIL PROTECTED], never other.
>
>
> Thanks for all
>
>
>
>
>
> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users