RE: [Exim] Creating a message for delivery based off of an a…

Góra strony
Delete this message
Reply to this message
Autor: Eli
Data:  
Dla: exim-users
Temat: RE: [Exim] Creating a message for delivery based off of an action in an ACL
>DENY is the correct thing to do or Discard... but bounce...

I think you misread what I was trying to say (or I just didn't explain it
properly!). I don't want to bounce anything for obvious reasons that you
stated. I want to deny the message and send an email to MY users (the
recipients; obviously not faked, since my mail server received the message!)
telling them that they were SENT a virus.

It's just an example anyways, I probably don't want to bother sending emails
whenever a virus comes in (since that could be a whole bunch if a spammer
goes nuts on my mail server). A possibly more practical use is if I
implemented my own quota system (storing values in a db, not using
Exim/system quotas) and wanted to generate a message.

>You can easily do this and the other things you asking for below with a
>system filter


Hrm, I remember checking up on filter syntax, and it seemed to be much more
limited than what I could do in ACLs (but maybe I should check again...).
It still would be nice to be able to do this at ACL time since I already
have certain checks in there, and duplicating them in a system filter
wouldn't be as fun (having to ensure that if any changes are made, I change
all occurrances, the overhead of doing the same check twice, etc... - not to
mention exiscan stuff doesn't work in filters).

>condition = ${run ...


I'm not sure how condition = would work if I issued an SQL INSERT command -
would it consider it true, or false? Besides, I want the outcome to have
*no* bearing on what is going to be done. I just want my command (really an
SQL query, so run doesn't work for me) executed and it's output ignored
completely.

I'm gonna see if I can create a "do = <anything>" command to do what I'm
referring to. If it works, I'll send you all a link to the patch.

>>[This E-mail scanned for viruses]
>Thats nice... How many of them were there?


Yeah, I'm sorry you all have to deal with that on every message I send.
Stupid IMail software my company insists on using (which is why I'm working
on getting Exim all set up - I can't stand Windows mail server software...
It *ALL* sucks. The sooner we switch to Exim, the better). I'll see if I
can go in and remove that without anyone noticing :P


Eli.

-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On Behalf
Of Kevin Reed
Sent: Wednesday, January 14, 2004 11:29 PM
To: exim-users@???
Subject: Re: [Exim] Creating a message for delivery based off of an action
in an ACL

Eli said:
> I'm wondering if there's any way to have Exim generate a message and
> deliver it based off of something in an ACL.
>
> For example (I have exiscan patched in), if I scan for a virus and find
> one, I currently just have it set to deny the message. However, it
> would be nice to be able to also have a message generated and delivered
> to the recipients notifying them that a message was denied because it
> contained a virus (specifying who the message was from in case they wish
> to contact them or whatever).


DENY is the correct thing to do or Discard... but bounce...

DON'T!

You can easily do this and the other things you asking for below with a
system filter, but since you don't know who the real sender of the
virus/spam whatever is, you are just generating a bounce message back to
innocent people which is why most will tell you DON'T!

Do you really want to get messages telling you that you sent so and so a
virus when you in fact never sent them anything? There are a number of
virus/spams out there that do that all the time.

...

>... This would be useful for example, in routers when delivering a
> message and someone wants to implement their own type of quota support
> and needs to insert data to MySQL, or for other types of data tracking
> (logging every message sent through and their spam score for example -
> to see if certain users send spam, etc...).


condition = ${run ...


condition = ${run{/getquota.pl $local_part}{$rc_value}}
data = :fail: Sorry your account $local_part is over quota


> [This E-mail scanned for viruses]


Thats nice... How many of them were there?


--
Kevin W. Reed - TNET Services, Inc.
Unoffical Exim MTA Info Forums - http://exim.got-there.com/forums

--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##

---
[This E-mail scanned for viruses]



---
[This E-mail scanned for viruses]