View Full Version : Installing Exim from Ports
Noldar
04-05-2004, 10:26 PM
Has anyone installed Exim from the ports collection? I'd like to install Exim with Exiscan enabled, but I can't figure out the options I need to make all the paths match what is used by the da_exim package.
Any help is appreciated.
Richard
DirectAdmin Support
04-06-2004, 12:56 AM
Hello,
I'll attach the Makefile required to be copied/edited to the Local directory that we use. You can modify it as needed.
John
Noldar
04-06-2004, 06:31 PM
I think I finally got it with help from the Makefile that John posted.
I've attached an EDITME.txt file that you will need for one of the steps. You should make sure your ports collection is up to date. Here's what I did.
/usr/local/etc/rc.d/exim stop
cd /usr/ports/mail/exim
make extract
make patch
cp EDITME.txt to work/exim-4.30/src/EDITME
mkdir /usr/local/etc/exim
touch /usr/local/etc/exim/configure
make build
make install
cp /usr/sbin/exim /usr/sbin/exim.old
cp /usr/sbin/exim-4.30-2 /usr/sbin/exim
rm /usr/local/etc/rc.d/exim.sh
/usr/local/etc/rc.d/exim start
This was on a FreeBSD 4.9 box. Your mileage may vary :D
Once I get Exiscan working I'll post a complete How-To.
Richard
aleborg
05-04-2004, 01:33 AM
I have tried to install the exim port but failed. Had to reinstall old DA exim. I didnt use any of the files in this thread.
Noldar, can you explain a bit more how to make this work, where to put Makefile.txt (right in the port?), change anything in it? What does EDITME.txt do? Anything more to have in mind when doing this?
Noldar
05-04-2004, 03:57 PM
All you need is the EDITME.txt file which gets copied over the EDITME file in the work directory. It gets used to build the makefile with the proper options. If you follow the steps I used above it should work.
If you get any errors just post them here.
Richard
aleborg
05-05-2004, 02:16 AM
Okey, because if I get any trouble I will need fast help, otherwise customers will start complaining :)
Ill try this later this evening. If something goes wrong how do I get old Exim back? Just running exim.sh in the scripts directory?
Noldar
05-05-2004, 05:37 AM
I haven't tried this myself, but this should probably work to restore the default DA exim.
cd /usr/ports/mail/exim
make deinstall
cd /usr/local/directadmin/scripts
./exim.sh
Richard
aleborg
05-05-2004, 04:19 PM
I had problems with that EDITME file but i figured out that i needed to change the path
TLS_LIBS=-L/usr/local/openssl/lib -lssl -lcrypto
to
TLS_LIBS=-L/usr/local/lib -lssl -lcrypto
Where I have it installed. I did this change on two more lines.
Im still worried about
TLS_INCLUDE=-I/usr/local/openssl/include/ -I/usr/kerberos/include
What does it mean with -I/usr/kerberos/include because I have no such path.
make build works without any complaints but Im still not sure if everthings OK.
aleborg
05-05-2004, 04:35 PM
I tried install it anyway. It works as far as to receive mail. To send doesnt work. I tried in SquirrelMail and gets Server replied: 550 authentication required in return... Any clues?
edit/ Seems its just with SquirrelMail the problem occours, with UebiMiau it works fine. If I move back old exim binary it works with SquirrelMail again.
Noldar
05-05-2004, 06:55 PM
I'm not sure about the TLS libs and include lines. Now that I look I don't have any files under /usr/local/openssl either. I assume it found the needed files from the general lib and include path that is defined. I didn't receive any errors when I compiled.
With your Squirrelmail problem, what do you see in your exim log when you try to send mail?
Richard
aleborg
05-06-2004, 02:05 AM
Rejectlog says:
2004-05-06 10:05:07 H=localhost (server.kontrollpanelen.se) [::1] F=<web25@server.kontrollpanelen.se> rejected RCPT <gein@knivby.nu>: authentication required
and mainlog says:
2004-05-06 10:05:07 H=localhost (server.kontrollpanelen.se) [::1] F=<web25@server.kontrollpanelen.se> rejected RCPT <gein@knivby.nu>: authentication required
2004-05-06 10:05:07 unexpected disconnection while reading SMTP command from localhost (server.kontrollpanelen.se) [::1]
aleborg
05-06-2004, 03:20 AM
Problem seems to be this:
With new Exim the logs says the mail comes from [::1] (?) which is not included in relay_hosts.
With old Exim the mail comes from [127.0.0.1] which it should!
Why is it that with new exim the mail is adressed from [::1]?
edit// I have solved this problem by changing $smtp_auth_mech = 'none'; to $smtp_auth_mech = 'login';
and now it works fine. Is this a good solutions or do you think I have to dig deeper into this and fix it?
edit 2 // Have you got exiscan working?
aleborg
05-06-2004, 03:16 PM
Getting clamav to work together with exim wasnt that hard ;)
i2iweb
05-12-2004, 03:11 PM
I think I'll give this a try and see what happens.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.