I have more than one home partition. I need exim to find all home paths.


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Email » Exim

I have more than one home partition. I need exim to find all home paths.Last Modified: Sep 18, 2012, 1:50 am
By default, exim only finds User accounts under /home.  This saves 2 lookups per path, making exim more efficient.

However, if you have more Users on partitions other than /home, eg: /home and /home2, then the default exim.conf will not work.

The solution is to add extra string expansion code into the /etc/exim.conf to allow the home path for a User to be extracted based on the domain name.

There are 3 lines in the exim.conf that use the hard-coded /home path (they're not all together):

{exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \

directory = /home/$local_part/Maildir/

directory = /home/${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}/imap/${domain}/${local_part}/Maildir


You'll need to find each of these paths, and change them to look like (respectively):

{exists{${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}}lsearch{/etc/passwd}{$value}}}}/.spamassassin/user_prefs}} \

directory = "${extract{5}{:}{${lookup{$local_part}lsearch{/etc/passwd}{$value}}}}/Maildir/"

directory = "${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}}lsearch{/etc/passwd}{$value}}}}/imap/${domain}/${local_part}/Maildir"



Related:
http://www.directadmin.com/forum/showthread.php?t=23609&p=123005#post123005
 
Related Helpfiles
I have more than one home partition. I need all services to use both the old and new partitions.

2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST