> 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
On Tue, Oct 02, 2007 at 04:30:01PM +0200, Rob Borland wrote:> > 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.Ok. The way you have done this is one solution. Another would be to give your exim some way to access the internal server''s user list of to have it doing recipient callouts. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190