[Pkg-exim4-users] Domain on private IP

Rob Borland rborland2 at healthnet.zw
Tue Oct 2 14:30:01 UTC 2007


 > On Mon, Oct 01, 2007 at 08:44:17AM +0200, Rob Borland wrote:
>> I want to deliver only valid addresses to mail.healthnet.zw.

 > Explain that.

If mail.healthnet.org.zw receives a message for userx at healthnet.zw it should
check whether userx is a valid username on healthnet.zw and deliver it to
mail.healthnet.zw only if userx is a valid username; if it's not a valid
username mail.healthnet.org.zw should return the message to sender with a "user
unknown" error.

>> On mail.healthnet.org.zw I have router:
>>
>> virtual_domains:
>>    debug_print = "R: virtual_domains for $local_part@$domain"
>>    driver = redirect
>>    domains = dsearch;/etc/exim4/virtual
>>    data = ${lookup{$local_part}lsearch{/etc/exim4/virtual/$domain}}
>>    no_more
>>
>> In /etc/exim4/virtual/healthnet.zw I have:
>>
>> user1:                user1 at mail.healthnet.zw
>> user2:                user2 at mail.healthnet.zw
>> # etc.
>> *:            :fail: User unkown
>>
>> In /etc/exim4/hubbed_hosts I have:
>>
>> mail.healthnet.zw:    192.168.10.2
>>
>> Is this the best solution?

 > I think that you only need the hubbed_hosts entry. But i might
 > not have understood your issue.

I think that if I only have the hubbed_hosts entry then everything addressed to
healthnet.zw is delivered to mail.healthnet.zw, including messages to usernames
which don't exist on healthnet.zw.  Host mail.healthnet.zw then returns the
invalid ones via mail.healthnet.org.zw.  It's more efficient for
mail.healthnet.org.zw to reject them itself using the lookup perfromed by the
virtual_domain router above without even delivering them to healthnet.zw.

Regards,
Rob



More information about the Pkg-exim4-users mailing list