[Pkg-exim4-users] .forward File Location

Peter Sparkes peter at didm.co.uk
Wed Dec 2 17:18:34 UTC 2009


Hi,

I am using multiple virtual domains
/etc/exim4/virtual/domain1/
/etc/exim4/virtual/domain2/
etc
with local_domains set to domainlist local_domains = 
@:localhost:dsearch;/etc/exim4/virtual
in  /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs
with users' Maildir's in
/home/domain1/user1/Maildir/
/home/domain1/user2/Maildir/
etc

In my passwd file users home directories are in the form
/home/user1
/home/user2
etc

The exim4 .forward files I have used to date are in the users' home 
directories as set by the passwd file and it works OK. However, I now 
need to use a different .forward file for a user depending on the 
domain, eg a different forward file for user1 at domain1 and user1 at domain2

Please, how do I set the location in which exim4 looks for the forward 
file to
/home/domain1/user1/Maildir/
/home/domain2/user1/Maildir/
etc
so allowing a single user to have a different forward file depending on 
the email's domain

Thanks

Peter




More information about the Pkg-exim4-users mailing list