Author Topic: upgrade exim4.69 to exim4.73 in directadmin base on freebsd  (Read 9394 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
upgrade exim4.69 to exim4.73 in directadmin base on freebsd
« 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
« Last Edit: มีนาคม 29, 2011, 06:59:29 PM by golfreeze »

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: upgrade exim4.69 to exim4.73 in directadmin base on freebsd
« Reply #1 on: ตุลาคม 11, 2013, 04:02:54 PM »
##Update clamav on directadmin

cd /usr/local/directadmin/custombuild
./build update
./build clean
./build clamav d

http://help.directadmin.com/item.php?id=370
« Last Edit: ตุลาคม 11, 2013, 06:14:39 PM by golfreeze »

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: upgrade exim4.69 to exim4.73 in directadmin base on freebsd
« Reply #2 on: สิงหาคม 08, 2016, 08:20:43 PM »
##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

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: upgrade exim4.69 to exim4.73 in directadmin base on freebsd
« Reply #3 on: สิงหาคม 08, 2016, 08:21:26 PM »
### ลงแบบ 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

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: upgrade exim4.69 to exim4.73 in directadmin base on freebsd
« Reply #4 on: สิงหาคม 08, 2016, 08:58:29 PM »
The simplest method is to use custombuild:
cd /usr/local/directadmin/custombuild
./build update
./build set exim yes
./build exim

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2140
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
Re: upgrade exim4.69 to exim4.73 in directadmin base on freebsd
« Reply #5 on: สิงหาคม 08, 2016, 09:54:09 PM »

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.