Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: exim: dev
[Bug 838] Could perl be used for routers and ACLs.
 

Index | Next | Previous | View Flat


reply-2009 at mgn

May 30, 2009, 10:35 AM


Views: 601
Permalink
[Bug 838] Could perl be used for routers and ACLs.

------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=838




--- Comment #2 from Martin Nicholas <reply-2009[at]mgn.org.uk> 2009-05-30 18:35:41 ---
I'm thinking of replacing the ACLs and router string with perl scripts and
hooks to the Exim library:

deny message = Restricted characters in address
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]

In Perl:

my %local_domains = ('exim.org' => 1, 'bugs.exim.org' => 1);

sub acl_check_rcpt {
if ($Exim::local_part =~ m/^(\.|\.*[@%!/|])/o and
exists $local_domains{$Exim::domain}) {
Exim::acl_deny('Restricted characters in address'); return}
}

This example looks bulkier in Perl than exim ACL code, but add in some
conditional string expansions and ACLs can become horribly difficult to
understand and write, or is that just me? ;-)


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email

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

Subject User Time
[Bug 838] Could perl be used for routers and ACLs. reply-2009 at mgn May 30, 2009, 10:35 AM
    [Bug 838] Could perl be used for routers and ACLs. exim-users at lists Jun 1, 2009, 1:52 AM
    [Bug 838] Could perl be used for routers and ACLs. reply-2009 at mgn Jun 1, 2009, 3:51 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.