Simon Capstick wrote:
...
> 
> I'm using Exim 4.5 on all our MTAs, and there's no simple parameter to 
> redirect the recipient callout (from MX MTA directly to the internal 
> MTA).  I'm not an Exim guru so there may a kludge that I could do. 
> Maybe I should switch to Postfix instead :-)  I'll follow the Amavis 
> docs on how to combine Amavis and Exim.
> 
> Instead of just having Amavis in between the MTAs, as I do now, I'll try 
> to have both Amavis and Exim.
> 
> -->Firewall--->MX MTA---\     +---------------+
>                           |--->| Exim + Amavis |--->Internal MTA
> -->Firewall--->MX MTA---/     +---------------+
> 
> Hopefully I can then allow recipient callouts along the whole chain of 
> MTAs before Amavis does it's thing.  I'll make sure that each MTA 
> accepts any address (local part) in the event of the next MTA in the 
> chain not being contactable, so nothing important bounces during 
> maintenance/down time.
> 
> Simon
> 
I finally found out how to redirect those callout verifications from 
Exim.  For future reference this is how I did it...

I had to create a new router in Exim's config and place it at the top of 
the routers list, before amavis' router:

###################################################################
# It's important that this router is refined if we start any other
# callouts/verifications other than recipient callouts to just our
# domain.
callout:
        debug_print = "Initiating recipient callout to my mail host..."
        driver = manualroute
        verify_only
        transport = recipient_callout
        route_list = * myinternal-mailhost.example.com byname
        host_find_failed = defer
###################################################################

Note: I created my own transport (recipient_callout) but this probably 
wasn't necessary:

###############################
# The transport ...
recipient_callout:
        driver = smtp
        port = 25
###############################

The acl containing the verify command was as follow:

######################################################
drop
     !acl = acl_whitelist_local_deny
     domains = example.com
     # Local recipient so make a callout
     debug_print = "Initiating recipient callout..."
     !verify = recipient/callout=60s,use_sender,defer_ok
#######################################################

Hope this helps any Exim4 newbies like me :-)

Simon

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to