message_size_limit and return message

This is a discussion on message_size_limit and return message within the alt.comp.mail.exim forums, part of the Mail Servers and Related category; I am looking for input/documentation for exim4 regarding performing the following: 1. Setting message_size_limit on a per-domain basis ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.exim

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-27-2004
Justin Koivisto
 
Posts: n/a
Default message_size_limit and return message

I am looking for input/documentation for exim4 regarding performing the
following:

1. Setting message_size_limit on a per-domain basis

2. Setting the message text that is sent back to the sender of messages
larger than message_size_limit - per domain of course.

Any help is appreciated!

--
Justin Koivisto - spam@koivi.com
http://www.koivi.com
Reply With Quote
  #2 (permalink)  
Old 09-28-2004
Justin Koivisto
 
Posts: n/a
Default Re: message_size_limit and return message

Justin Koivisto wrote:
> I am looking for input/documentation for exim4 regarding performing the
> following:
>
> 1. Setting message_size_limit on a per-domain basis
>
> 2. Setting the message text that is sent back to the sender of messages
> larger than message_size_limit - per domain of course.


OK, I think I have most of it figured out. I can now set the custom
message for messages larger than KOIVI_MSG_LIMIT by doing something like
this in the acl_check_data definition:

deny message = This is the koivi.com custom file too big message.
condition = ${if > {$message_size}{KOIVI_MSG_LIMIT}{yes}{no}}

OK, so this works for system-wide, so all domains use the same limit.

Therefore, I figured if I simply added a domain check to it, it would
work for that domain only. I tried using:

condition = ${if eq {$domain}{"koivi.com"}{yes}{no}}
condition = ${if > {$message_size}{KOIVI_MSG_LIMIT}{yes}{no}}

That didn't work, the message went through, so I tried this one:

condition = ${if and {{>{$message_size}{KOIVI_MSG_LIMIT}}
{eq{$domain}{"koivi.com"}}} {true}}

The same happened. Can anyone spot the problem here? Is the syntax
incorrect? Is the $domain variable not set until after the ACL stuff?

TIA

--
Justin Koivisto - spam@koivi.com
http://www.koivi.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:54 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0