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
I have found the answer to my own question: Amend the router 600_exim4-config_userforward by inserting router_home_directory = /home/$domain/$local_part/Maildir immediately after check_local_user and make sure that the owner of home/domain1/user1/Maildir/.forward is user1 Peter> 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 > > > _______________________________________________ > Pkg-exim4-users mailing list > Pkg-exim4-users at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users >