Hi Jaymer,

Yes, the custom prog feature is what you are looking for.

Your script should run like this:

/root/scripts/myscript.sh %%remoteip%% %%mailfrom%%  %%mailto%%

in your script:

REMOTEIP=$1
MAILFROM=$2
MAILTO=$3

now, you can do what you want. You can check the to if it is your known spammed email address. If yes add $REMOTEIP to iptables and exit with 1
If not, exit with 0. if an error occurs exit with 2.

In this case 1 means spam, 0 means not spam.
CUSTOM_RET_MIN=1
CUSTOM_RET_MAX=1
CUSTOM_RET_ERR=2

Note that, qsheff provides some parsed internal variables to custom prog. Below is list of them:

# %%mailfrom%% as email address: source address.
# %%mailto%% as email address: target address.
# %%remoteip%% as IP address: remote SMTP server.
# %%msgfile%% as filename: full path of stored incoming mail.
# %%tempdir%% as directory path: full of the tempdir includes parts of mail (attachments, body, header etc.)

regards,

Baris Simsek, http://www.enderunix.org/simsek/
Endersys Ltd., http://www.endersys.com/


Jaymer wrote:
Baris...
could you please give some examples of how the custom
prog feature would be used?  what's a good use for it?

i had an idea but with no guess as how to implement it
- perhaps it could be for 'custom prog'.

i have certain email aliases that constantly get
spammed.  sure, those get filtered out by WBLIST and i
do not get the mail, but I also get their spam when
they include my real address as well.  so i'll get 5
msgs filtered by WBLIST and still one will come
through to the main address.
One thing i wanted to do was whenever an email comes
to a known, spammed alias, i'd like to take that IP
address and enter it into my iptables file with a deny
directive, so that the next email comes and does not
ever get through... even to qsheff.

could i use 'custom prog' to run a shell script [on
the current spam header] and extract the offending ip
address and then 'cat' that onto the end of my
tcp.smtp file?

thx
jaymer...


--- Baris Simsek <[EMAIL PROTECTED]> wrote:

Hello,

Features may come with bugs ;)

Before new feature, have you tried to use it with
custom prog feature. I don't know about DSPAM but it may work with custom prog feature as like bogofilter.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to