[exim] [Exim] Relay all emails to one server

Top Page
Delete this message
Reply to this message
Author: James Nunnerley
Date:  
To: exim-users
Subject: [exim] [Exim] Relay all emails to one server
Hi All,



Sorry, I'm being really thick here.



I've attached a sample conf file I've found while searching around, but all
I want to do for now is forward all emails to another local server -
eventually exim with spamassasin will act as gateway mail server infront of
the exchange box, but one step at a time, I want to get all the emails the
linux server is producing (monitoring etc) sent through to the exchange box.



Can anyone give me some pointers?



Thanks

Nunners

# start of /etc/exim/exim.conf

######################################################################
#                       EXIM CONFIGURATION                           #
######################################################################
domainlist local_domains = /etc/exim/exim.domains.txt


hostlist relay_from_hosts = /etc/exim/exim.ips.txt

acl_smtp_rcpt   =       acl_check_rcpt


######################################################################
#                       ACL CONFIGURATION                            #
######################################################################
begin acl


acl_check_rcpt:

  accept  domains       = +local_domains
          endpass
          verify        = recipient


  accept  hosts         = +relay_from_hosts


  deny    message       = relay not permitted


######################################################################
#                      ROUTERS CONFIGURATION                         #
######################################################################
begin routers


dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user

######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
begin transports


remote_smtp:
driver = smtp

local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0660

######################################################################
#                      RETRY CONFIGURATION                           #
######################################################################
begin retry


# Address or Domain    Error       Retries
# -----------------    -----       -------


*                      *           F,2h,15m; G,16h,1h,1.5; F,4d,6h
# end of /etc/exim/exim.conf