On 05/01/2010 06:06, Ken Price wrote:

> Can we process overquota scenarios in the SMTP session for these basic
> 1-to-1 recipients?  YES!  Oh sweet simplicity, YES!  BUT.  Who among us
> only has this simple setup?  If you do, then you're not my audience and
> just stop reading.  In the real world, don't we also have an alias
> "[email protected]" that points to "[email protected]"?  Maybe we also
> have domain1.NET which is a domain alias of domain1.com.  MAYBE
> "[email protected]" is also a forward to his
> "[email protected]" account also residing on the server.  So,
> again, I ask you, "Do you really think you can gracefully check and
> deny/defer based on the RCPT in the SMTP session?"  When the RCPT is
> "[email protected]" which forwards to "[email protected]" which forwards
> to "[email protected]".  Where the only account with a maildir
> and a corresponding quota is "[email protected]"?  How many
> layers of recursion are necessary?  You have to check this for every
> incoming RCPT, so how many CPU cycles are you wasting?  How complex is this
> ACL Macro?  How inefficient?!

It's much easier than you think. All you have to do is this in each of 
the routers which rewrites the address:

address_data = $local_p...@$domain

Then after you've done a "verify = recipient" in your rcpt acl you'll 
find that $address_data contains the final address.

-- 
Mike Cardwell    : UK based IT Consultant, LAMP developer, Linux admin
Cardwell IT Ltd. : UK Company - http://cardwellit.com/       #06920226
Technical Blog   : Tech Blog  - https://secure.grepular.com/blog/
Spamalyser       : Spam Tool  - http://spamalyser.com/

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to