On Wed, May 12, 2010 at 04:24:36PM +1200, Jim Cheetham wrote: > My exim server listens on localhost and the external interface, and on > ports 25 & 587. > > There are therefore 4 combinations available for connections. It strikes > me that testing for these in an ACL would be useful; for example the > only time I want to accept email "From:" an external address is when it > arrives on the public IP, port 25. > > In pseudo-code, I want to "ACCEPT if Src=remote, Dst=public:25, Auth=no, > From=non-local domain, To=local domain" (followed by "REJECT > From=non-local domain") in order to represent "normal incoming email" > and avoid relaying. > > However, I can't see the ACL conditions that would allow me to test for > the destination IP/port ... how can I do this?
Construct a "condition" line which tests $received_ip_address, $received_port. Regards, -- Dave Evans http://djce.org.uk/ http://djce.org.uk/pgpkey
signature.asc
Description: Digital signature
-- ## 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/
