PDA

View Full Version : Old Exim


exposed
07-25-2003, 05:39 AM
Why do you use the old exim 3.36?? it misses many new features like tls and things like that...

Can i upgrade to 4 myself or do you expect many problems?

DirectAdmin Support
07-25-2003, 01:58 PM
Hello,

Funny you ask. I'm in the process of implementing exim 4 right at this very momment :)

I'll put up the src.rpm (will be declared beta) so you can rebuild it and try it out. Should support tls connections. I'll put up the link in 2 minutes.

John

DirectAdmin Support
07-25-2003, 02:16 PM
Hello,

http://files.directadmin.com/services/da_exim-4.20-1.src.rpm

ok, what'll you'll need to do it uninstall the current version of exim 3:

rpm -e --nodeps da_exim (or "rpm -e --nodeps exim" for older installs)

Then you need to build the source rpm:

rpm --rebuild da_exim-4.20-1.src.rpm
or
rpmbuild --rebuild da_exim-4.20-1.src.rpm (for newer os's)

Then,

cd /usr/src/redhat/RPMS/i386
rpm -ivh da_exim-4.20-1.i386.rpm

It will install /etc/exim.conf, exim.cert, exim.key, exim.pl, system_filter.exim

I havn't really had a chance to test it yet as I *just* got it going, but if anyone wants to give it a go, here's your chance :)

Once completed, it will come standard will all DirectAdmin installs.

We'll also let people know how to upgrade their current version (should be the same process as above, minus the rpm building)

John

exposed
07-25-2003, 05:11 PM
It overwrites the exim file in /etc/sysconfig/exim

change:

DAEMON="no"
QUEUE="15m"

to

DAEMON="yes"
QUEUE="15m"

and then services exim restart

DirectAdmin Support
07-25-2003, 05:33 PM
Well I mentioned that it was beta and I havn't tested it yet :)
It's just the very first attempt at getting it going, and I figured you'd rather start from something than nothing (you said you would do it yourself), so I gave you what I already had. I've never even *used* exim 4 yet.. but by looking at the error message and the config file, the exim 3 to 4 conversion script decided that it was going to add "user=" to the domain_filter router, when our exim 3 config doesn't have any user associated with it. Thus, remove the "user" line, and see if that works...

John

exposed
07-25-2003, 05:36 PM
Im missing the newaliases file so i cannot build the aliases file...any idea where it is? for the rest it seems that it works oke

DirectAdmin Support
07-25-2003, 05:47 PM
Sorry, I couldn't say. There is no reference to "newaliases" anywhere in the exim.spec file... I'll have to see what's up.

exposed
07-25-2003, 05:52 PM
2003-07-26 01:41:15 19gCBV-0001Gs-5A == admin@linuxexposed.com R=domain_filter defer (-1): failed to open /etc/virtual/linuxexposed.com/filter: Permission denied (euid=500 egid=500)

it uses the userid/groupid from the email users in stead of the mail user.

ANy idea how i can fix this

DirectAdmin Support
07-25-2003, 05:56 PM
Yes, like I said above, you can probably just remove the "user" line from the "domain_filters" directive... I'm not too sure why the exim conversion script decided to add it.. but it did :) If removing the line doesn't work, try setting it to "user=mail" ...

John

loopforever
07-25-2003, 06:03 PM
/etc/virtual/linuxexposed.com/filter should probably be owned by mail/mail.

User/Group 500 ("(euid=500 egid=500)") sounds like a virtual user, hence the permission problem. Can you attach your exim.conf file? Maybe we can take a look at it?

exposed
07-25-2003, 06:08 PM
Originally posted by DirectAdmin Support
Yes, like I said above, you can probably just remove the "user" line from the "domain_filters" directive... I'm not too sure why the exim conversion script decided to add it.. but it did :) If removing the line doesn't work, try setting it to "user=mail" ...

John

You cannot remove the user directive because its complains without it!!

user=mail solved the problem.......good:)

DirectAdmin Support
07-26-2003, 10:29 AM
I think I have some info for the newaliases file... firstly, its just a symbolic link to exim:

ln -sv /usr/sbin/exim /usr/bin/newaliases

secondly, exim doesn't need you to run after each change. It reads the alias file automatically and knows when changes have occured.

I'll add the command to the exim.spec file in the src.rpm later.. (note that I have not update the src.rpm file listed above yet.. it still contains all the errors on this forum, so if you *must* have exim 4, be ready to do some reading :))

John

DirectAdmin Support
08-12-2003, 11:45 AM
Important note for anyone using exim 4 beta (everyone with exim 4)

reinstall the rpm:
http://files.directadmin.com/services/da_exim-4.20-1.src.rpm

The changes are just in the /etc/exim.conf file, so you could avoid getting the new rpm and just change the 2 things that need changing here:

http://www.directadmin.com/forum/showthread.php?s=&threadid=373

John