Peter's Blog 30.7.2004

2004-07-30

Exim recipe to forward users in local domain to another smtp server

Problem: an email server has a couple of local user accounts defined but the remaining users are handled by another server. How to route email to them?

Edit exim.conf. The last rule of the routing configuration should have the term

    cannot_route_message = Unknown user

in it to bin messages that cannot be delivered. Comment that line out and add the following clause as the last routing term:

  #
  # pcw: route users in the local domain but not on this server to gateway
  #
  send_to_gateway:
    driver = manualroute
    domains = +local_domains
    transport = remote_smtp
    route_list = * gateway.mycompany.com
    cannot_route_message = Unknown user
posted at 13:13:52    #    comment []    trackback []
July 2004
MoTuWeThFrSaSu
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
262728293031 
Jun
2004
 Aug
2004

A blog documenting Peter's dabblings with Python, Gentoo Linux and any other cool toys he comes across.

XML-Image Letterimage

© 2004, Peter Wilkinson

Bisi and me