[exim] Problems compiling Exim Cpanel version with Mysql.

Pàgina inicial
Delete this message
Reply to this message
Autor: Terry Benge
Data:  
A: exim-users
Assumpte: [exim] Problems compiling Exim Cpanel version with Mysql.
This is driving me nuts.....

I'm at the point where I can do the 'make install'

Problem is, when I install, the logs give the following error despite the
exim.conf still being the default one and running fine before the install of
the mysql version.

server exim: exim shutdown failed Jun 9 07:41:27 server exim: antirelayd
shutdown succeeded Jun 9 07:41:27 server exim: spamd shutdown succeeded Jun
9 07:41:27 server exim: 2006-06-09 07:41:27 Exim configuration error for
virtual_userdelivery_spam transport: Jun 9 07:41:27 server exim:
quota_directory must not be set without "directory" Jun 9 07:41:27 server
exim: exim startup failed Jun 9 07:41:27 server exim: 2006-06-09 07:41:27
Exim configuration error for virtual_userdelivery_spam transport: Jun 9
07:41:27 server exim: quota_directory must not be set without "directory"
Jun 9 07:41:27 server exim: exim startup failed Jun 9 07:41:27 server exim:
antirelayd startup succeeded Jun 9 07:41:28 server exim: spamd startup
succeeded exim has failed, please contact the sysadmin.

Snip from default exim.conf:
virtual_userdelivery_spam:
driver = appendfile
delivery_date_add
envelope_to_add
file =
"${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value
}}}lsearch{/etc/passwd}{$value}}}}/mail/${domain}/${local_part}/spam"
group = mail
mode = 0660
quota = "${if
exists{${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{
$value}}}lsearch{/etc/passwd}{$value}}}}/etc/${domain}/quota}
{${lookup{$local_part}lsearch*{${extract{5}{:}{${lookup{${lookup{$domain}lse
arch*{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$value}}}}/etc/${domai
n}/quota}{$value}}} {}}"
quota_directory =
"${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value
}}}lsearch{/etc/passwd}{$value}}}}/mail/${domain}/${local_part}"
return_path_add
user = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"

virtual_userdelivery:
driver = appendfile
delivery_date_add
envelope_to_add
file =
"${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value
}}}lsearch{/etc/passwd}{$value}}}}/mail/${domain}/${local_part}/inbox"
group = mail
mode = 0660
quota = "${if
exists{${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{
$value}}}lsearch{/etc/passwd}{$value}}}}/etc/${domain}/quota}
{${lookup{$local_part}lsearch*{${extract{5}{:}{${lookup{${lookup{$domain}lse
arch*{/etc/userdomains}{$value}}}lsearch{/etc/passwd}{$value}}}}/etc/${domai
n}/quota}{$value}}} {}}"
quota_directory =
"${extract{5}{:}{${lookup{${lookup{$domain}lsearch*{/etc/userdomains}{$value
}}}lsearch{/etc/passwd}{$value}}}}/mail/${domain}/${local_part}"
return_path_add
user = "${lookup{$domain}lsearch* {/etc/userdomains}{$value}}"

Clearly this suggests that there is a problem with the quota_directory - but
this error doesn't happen if I use the default version of 4.52-7 without
MySQL enabled.

Even tried reinstalling exim fresh to get the default exim.conf via
/scripts/eximup --force
then doing the make install - still get the same error.

These are the details of my default install that works fine:

root@server [/eximdistro/exim-4.52]# /scripts/eximup
Exim Setup Script Version 20.0
Fetching version information from
http://updates.cpanel.net/eximinstall/version (RELEASE)....Fetching
http://updates.cpanel.net/eximinstall/version
(0)....@8.10.120.130......connected......receiving ...100%......Done
Done
This is the exim 4.52 installer release number 7 for platform centos 3.5
exim is up to date. Use eximup --force to force a reinstall
root@server [/eximdistro/exim-4.52]#

This is the src file i am working with.
exim-4.52-7_cpanel_smtpctl_av_rewrite_mm2_mmmtrap_exiscan_md 5pass.src.rpm

I have mage 3 changes to the makefile that I put in the Local dir:

LOOKUP_MYSQL=yes

LOOKUP_INCLUDE=-I/usr/include/mysql/
LOOKUP_LIBS=-L/usr/lib -L/usr/lib/mysql -lmysqlclient

I then do the Make, and Make Install - all successful without errors. When I
start exim, the above error occurs.

Am I missing something? Any ideas?
Terry

_________________________________________
 
www.ansa-me.com - Improve your membership signups by upto 400%


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 09/06/2006