Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music
All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => Mail issue , problem , configuration => Topic started by: golfreeze on มีนาคม 29, 2011, 06:55:12 pm
-
วันนี้ จะทำการอัฟเกรดตัว exim4.69 ไป version ใหม่ล่าสุดครับผม
ก่อนทำ กรุณา backup config exim.conf เก่าไว้ด้วยนะครับ
#cp /etc/exim.conf /etc/exim.conf_20110329_ori
เสร็จแล้วเริ่มเลย
#cd /usr/local/directadmin/custombuild
#./build set custombuild 1.2
#./build update_script
#./build update
#./build set exim yes
มันจะทำการ download exim4.73 ให้อัตโนมัติครับ
#./build exim
build ไปสักพักเจอ error บางนี้ เหมือน sasl ยังไม่ได้ลง
### Begin Error pattern ###
cyrus_sasl.c:34:23: sasl/sasl.h: No such file or directory
cyrus_sasl.c: In function `mysasl_config':
cyrus_sasl.c:88: error: `SASL_OK' undeclared (first use in this function)
cyrus_sasl.c:88: error: (Each undeclared identifier is reported only once
cyrus_sasl.c:88: error: for each function it appears in.)
cyrus_sasl.c:90: error: `SASL_FAIL' undeclared (first use in this function)
cyrus_sasl.c: In function `auth_cyrus_sasl_init':
cyrus_sasl.c:105: error: `sasl_conn_t' undeclared (first use in this function)
cyrus_sasl.c:105: error: `conn' undeclared (first use in this function)
cyrus_sasl.c:106: error: syntax error before "cbs"
cyrus_sasl.c:29:1: unterminated #else
*** Error code 1
1 error
*** Error code 2
cyrus_sasl.c:34:23: sasl/sasl.h: No such file or directory
cyrus_sasl.c: In function `mysasl_config':
cyrus_sasl.c:88: error: `SASL_OK' undeclared (first use in this function)
cyrus_sasl.c:88: error: (Each undeclared identifier is reported only once
cyrus_sasl.c:88: error: for each function it appears in.)
cyrus_sasl.c:90: error: `SASL_FAIL' undeclared (first use in this function)
cyrus_sasl.c: In function `auth_cyrus_sasl_init':
cyrus_sasl.c:105: error: `sasl_conn_t' undeclared (first use in this function)
cyrus_sasl.c:105: error: `conn' undeclared (first use in this function)
cyrus_sasl.c:106: error: syntax error before "cbs"
cyrus_sasl.c:29:1: unterminated #else
*** Error code 1
1 error
*** Error code 2
2 errors
*** Error code 2
1 error
-e \n*** The make has failed, do you want to try to make again? (y,n): n
### End Error pattern ####
ครับ แก้โดยทำการลงเพิ่ม
#cd /usr/ports/security/cyrus-sasl2
#make install clean
แล้วทำการ build exim อีกรอบก็เป็นอันเสร็จครับผม
#cd /usr/local/directadmin/custombuild
#./build exim
ต่อจากนั้นก็เริ่มการ test ส่งเมลไปข้างนอก กับ รับเมลดูครับผม
;)
golfreeze[at]packetlove[dot]com
-
##Update clamav on directadmin
cd /usr/local/directadmin/custombuild
./build update
./build clean
./build clamav d
http://help.directadmin.com/item.php?id=370
-
##upgrade exim on centos
cd /usr/local/directadmin/custombuild
./build update
./build set eximconf yes
./build set eximconf_release 4.87
./build set spamassassin yes
./build update
./build exim_conf
-
### ลงแบบ compile ก็แบบนี้เลยครับ
How To Update exim using a source rpm (src.rpm)
In this how-to, we'll describe how to compile a new version of th exim src.rpm file in order to update exim.
We'll use exim 4.87 for an x86_64
system for the example, so if you need a new/older version, just replace all instances of that version with the version you want (assuming we have it on our server).
wget http://files.directadmin.com/services/da_exim-4.87-1.src.rpm
rpmbuild --rebuild --force da_exim-4.87-1.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/x86_64/da_exim-4.87-1.src.rpm
/etc/init.d/exim restart
-
The simplest method is to use custombuild:
cd /usr/local/directadmin/custombuild
./build update
./build set exim yes
./build exim
-
If you want more control, instead of using custmbuild,you can do a manual compile.
We'll use exim 4.80.1 for this example. Change all occurances of 4.80.1 to the version you want to use.
wget http://files.directadmin.com/services/custombuild/exim-4.80.1.tar.gz
tar xvzf exim-4.80.1.tar.gz
cd exim-4.80.1/Local
wget http://files.directadmin.com/services/custombuild/Makefile
perl -pi -e 's/^EXTRALIBS/#EXTRALIBS/' Makefile
perl -pi -e 's/HAVE_ICONV=yes/HAVE_ICONV=no/' Makefile
cd ..
make
make install
This will give you a new /usr/sbin/exim-4.76-1 binary which won't be what you want.. you'll need to rename it to /usr/sbin/exim:
cp -f /usr/sbin/exim-4.80.1-1 /usr/sbin/exim
chmod 4755 /usr/sbin/exim
Remember to restart exim after you're finished.