Re: [Exim] Notify message if eMail is frozen

Top Page
Delete this message
Reply to this message
Author: Jens Strohschnitter
Date:  
To: exim-users
Subject: Re: [Exim] Notify message if eMail is frozen
> > if $message_size above 500K
> > then
> > freeze "A little bit to big"
> > ... ### and now to message to the sender ### ...
> > endif
>
> if $message_size above 500K
> then
> mail .....
> freeze "...."
> endif
>
> Note: you must put the "mail" command before the "freeze", because
> filtering stops with "freeze".
>
>


Hm,

sorry, but this take no effect. I have add the commandline in my system_filter, but when a message was frozen, there will be no mail
sent to the senders address, like in all other filter-commands in my
system_filter (like rejecting exe-files and so on).

Here some commands from my system_filter:

.
.
.

if $message_body matches "(?:Content-(?:Type:(?>\\\\s*)[\\\\w-]+/[\\\\w-]+|Disposition:(?>\\\\s*)attachment);(?>\\\\s*)(?:file)?name=|begin(?>\\\\s+)[0-7]{3,4}(?>\\\\s+))(\\\\S+\\\\.(?:vb[se]|ws[fh]|jse?|exe|com|cmd|shs|hta|bat|scr|lnk|pif|mpe|mpeg|mpg|mp3|avi|wav))[\\\\s;]"
then
  fail text "\n\n\
             Ihre E-Mail $header_subject an $recipients\n\
             enthielt folgenden Anhang: $1\n\n\
             Anhaenge dieser Art werden von unserem Mailserver\n\
             zurueckgewiesen und dem Empfaenger nicht zugestellt.\n\n\
             Fuer weitere Fragen wenden Sie Sich bitte an unseren\n\
             Service und Support unter den Rufnummern\n\n\
             (069) 5003 - 333\n\
             (0221)1638 - 111"
  seen finish
endif
## -----------------------------------------------------------------------


## -----------------------------------------------------------------------
# Freeze Mails > 500K to send them after 20.00 o'clock
#
#

if $received_protocol is not "scanned-ok" and $message_size above 500K then
 mail text "\n\n\
            Your message was to big ... so we have frozen"
 freeze "Message war groesser 500K und wurde eingefroren"
endif
.
.
.


First, the mail will be frozen with no notify to sender. After
release with exim -M ID the following error will be looged in
panic-log:


2003-08-12 09:29:09 19mTa9-00078K-00 Attempt local delivery with non-local transport for >JohnDo@???: transport my_smtp


In my exim.conf the transport for my_smtp looks like:

my_smtp:
driver = smtp
allow_localhost
hosts_override
hosts = localhost


I am using Exim 3.13 and 3.35.

Hope someone knowes what a Exim-Neebie has to do to make
it work :-)





--
Regards,

     Jens Strohschnitter


-------------------------------------
*!!!LINUX LINUX LINUX LINUX LINUX!!!*

* http://www.jens-strohschnitter.de *
-------------------------------------
Set the controls for
         the heart of the sun
-------------------------------------