[wplug] help with Exim and virtual domains

Jay wplug at caldron.com
Fri Oct 31 16:12:52 EST 2003


Would someone please help me set up exim to handle virtual domains.  What I
did was to create a directory /etc/exim/domain to handle alias files for
each virtual domain.  Therefore, directory /etc/exim/domain would contain
files with names domain1.com and domain2.com.  These files will contain
aliases for example domain1.com would contain
jmkramer:   jmkramer
jay:        jmkramer
wplug:      jmkramer

Any mail sent to jmkramer at domain1.com should be directed to
jmkramer at caldron.com.  This is indeed the case.
I then set up exim.conf as the example at the end of this email.  Using this
setup, it is possible to send email to jmkramer at domain1.com.  However, if I 
reply to the email sent to jmkramer at domain1.com, the email states that it
was sent 
From:  jmkramer at caldron.com

I want it to state that the email was sent
From:  jmkramer at domain1.com 

I hope this makes sense.  I appreciate any help that I can get.  

Jay

#######################exim.conf-EXAMPLE#######################

qualify_domain = caldron.com


local_domains = localhost:caldron.com:domain1.com:domain2.com


local_domains_include_host = true
local_domains_include_host_literals = true

######################################################################
#                      DIRECTORS CONFIGURATION                       #
#             Specifies how local addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#   A local address is passed to each in turn until it is accepted.  #
######################################################################

# This allows local delivery to be forced, avoiding alias files and
# forwarding.

real_local:
  prefix = real-
  driver = localuser
  transport = local_delivery


# Added by Jay
virtual:
  driver = aliasfile
  pipe_transport = address_pipe
 # domains = 
  no_more
  file = /etc/exim/domains/$domain
  search_type = lsearch*




More information about the wplug mailing list