Verify Recipient before smart_route

NetBlaster

Member
Jun 12, 2004
23
0
151
I've searched the forums for two days with no luck.

I'm using smart_route to forward email to an exchange server. The domain gets a ton of Dictonary attachs and I've emplemented this script http://www.configserver.com/free/eximdeny.html but it doesn't knock a dent in the volume.

Is there a way to create a alias file for this domain to have Exim verify recipients against before sending it to the exchange server?

Router Config:

smart_route:
driver = manualroute
route_list = domain.com xxx.xxx.xxx.xxx
transport = remote_smtp_smart

Transport Config:

remote_smtp_smart:
driver = smtp
multi_domain = false
port = xxxx


Thanks,

Ron...
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,441
31
473
Go on, have a guess
Yes, you can do forward lookups:

Router:
static_route:
driver = manualroute
transport = remote_smtp_smart
route_data = ${lookup{$domain}lsearch{/etc/staticroutes}}
Transport:
remote_smtp_smart:
driver = smtp
hosts = ${lookup{$domain}lsearch{/etc/staticroutes}}
hosts_override
Then add into /etc/staticroutes:

domain.com: 11.22.33.44
 

NetBlaster

Member
Jun 12, 2004
23
0
151
This works great but can I create a explicate list of email addresses that will only be accepted?

Like:

File name /etc/remotemails

with:

[email protected]
[email protected]
...


That way only these email addresses are accepted.

I know this probable isn't a good rule of thumb or idea but it's only for one domain and I control it.


Thanks,

Ron...
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,441
31
473
Go on, have a guess
You could probably modify the exim code above to do that, but the purpose of the forward lookups is to do that on the destination server.
 

goodmove

Well-Known Member
May 12, 2003
643
4
168
Chirpy, could you briefly explain what your code of forward lookups does on the destination server?

And is this only applicable to Exchange servers?