Exim 4.61 Released


The exim.sh script doesn't work anymore? If I try to run this on one of my Debian boxes I get:

Code:
./exim.sh
dpkg - warning: ignoring request to remove exim4 which isn't installed.
dpkg - warning: ignoring request to remove exim4-base which isn't installed.
dpkg - warning: ignoring request to remove exim4-config which isn't installed.
dpkg - warning: ignoring request to remove exim4-daemon-light which isn't installed.
dpkg - warning: ignoring request to remove exim4-config-2 which isn't installed.
dpkg - warning: ignoring request to remove exim4-daemon-heavy which isn't installed.
dpkg - warning: ignoring request to remove rmail which isn't installed.
dpkg - warning: ignoring request to remove sendmail-bin which isn't installed.
dpkg - warning: ignoring request to remove sendmail which isn't installed.
dpkg - warning: ignoring request to remove mail-transport-agent which isn't installed.
dpkg - warning: ignoring request to remove postfix which isn't installed.
dpkg - warning: ignoring request to remove exim4 which isn't installed.
dpkg - warning: ignoring request to remove exim4-base which isn't installed.
dpkg - warning: ignoring request to remove exim4-config which isn't installed.
dpkg - warning: ignoring request to remove exim4-daemon-light which isn't installed.
dpkg - warning: ignoring request to remove exim4-config-2 which isn't installed.
dpkg - warning: ignoring request to remove exim4-daemon-heavy which isn't installed.
dpkg - warning: ignoring request to remove rmail which isn't installed.
dpkg - warning: ignoring request to remove sendmail-bin which isn't installed.
dpkg - warning: ignoring request to remove sendmail which isn't installed.
dpkg - warning: ignoring request to remove mail-transport-agent which isn't installed.
dpkg - warning: ignoring request to remove postfix which isn't installed.
dpkg: error processing da_exim-4.63.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 da_exim-4.63.deb
(Reading database ... 25365 files and directories currently installed.)
Preparing to replace vm-pop3d 1.1.7f.DA (using da_vm-pop3d-1.1.7f.deb) ...
Unpacking replacement vm-pop3d ...
Setting up vm-pop3d (1.1.7f.DA) ...
 System startup links for /etc/init.d/vm-pop3d already exist.

Substitution replacement not terminated at -e line 1.
make: `wrapper' is up to date.
Testing for perl (/usr/bin/perl)...
Configuring scripts...
./install.sh -m 751 -O 1001 -g 2 . /etc/virtual/majordomo
./install.sh -m 755 -O 1001 -g 2 . /etc/virtual/majordomo/bin
Copying tools to /etc/virtual/majordomo/bin
Copying Majordomo files to /etc/virtual/majordomo
Copying archiving and other tools to /etc/virtual/majordomo/Tools
./install.sh -m 755 -O 1001 -g 2 . /etc/virtual/majordomo/Tools
Using installed majordomo.cf
Installing manual pages in /etc/virtual/majordomo/man

To finish the installation, 'su' to root and type:

            make install-wrapper

If not installing the wrapper, type

            cd /etc/virtual/majordomo; ./wrapper config-test

(no 'su' necessary) to verify the installation.
./install.sh -o root -g 2 \
        -m 4755 wrapper /etc/virtual/majordomo/wrapper

To verify that all the permissions and etc are correct,
run the command

             cd /etc/virtual/majordomo; ./wrapper config-test
 System startup links for /etc/init.d/da-popb4smtp already exist.
 System startup links for /etc/init.d/vm-pop3d already exist.
./exim.sh: line 42: /etc/init.d/vm-pop3d: Permission denied
--10:48:50--  http://files.directadmin.com/services/all/webmail-2.7.10-2.tar.gz
           => `/usr/local/directadmin/scripts/packages/webmail-2.7.10-2.tar.gz'
Resolving files.directadmin.com... 199.237.54.170
Connecting to files.directadmin.com[199.237.54.170]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 507,031 [application/x-tar]

100%[============================================================================>] 507,031      223.90K/s

10:48:53 (223.30 KB/s) - `/usr/local/directadmin/scripts/packages/webmail-2.7.10-2.tar.gz' saved [507031/507031]

cp: `/var/www/html/squirrelmail/data' and `/var/www/html/squirrelmail-1.4.9a/data' are the same file
 

John,

What happened to just running the exim.sh file? Is this not going to be supported for FreeBSD users anymore?

I have tried fetching the exim 4.67 distribution manually making the modifications to exim.sh but all I get is this:

# ./exim.sh
No matching processes were found
da_exim-4.67-1.tgz 100% of 1674 kB 55 kBps 00m00s
./+INSTALL: Permission denied
pkg_add: install script returned error status

It looks like the +INSTALL is trying to execute in /var/tmp which is forbidden by most systems. Is there a way to override this in the distribution? I have tried to change the location that the pkg_add attempts to use but have had no success.

BigWil
 
I've also been out of luck in figuring that one out. If /var/tmp is set to noexec, it wont work. A full source compile would be needed in it's place: http://help.directadmin.com/item.php?id=125

For any FreeBSD pkg_add development people who by chance would be reading this, instead of running:
/var/tmp/something.sh
changing it to:
/bin/sh /var/tmp/something.sh
would resolve this issue, as /bin/sh is what's running, and only reading in the sh file, thus it works.
I just don't know how to change pkg_add, thus can't fix it.

John
 
Update (google is wonderful) I found this:
If ${TMPDIR} and /var/tmp are mounted noexec, you must set PKG_TMPDIR to
a suitable area, as pkg_add has no way to check for noexec status except
by failing to run installation scripts.
so if you want to try editing the exim.sh, and putting:
PKG_TMPDIR=/root/temp
right before the pkg_add command on the same line, let me know if that works (create /root/temp of course)

John
 
I figured out a way of doing it. No brainer... never mind.

cd /usr/local/directadmin/scripts/
mkdir /usr/tmp
setenv PKG_TMPDIR /usr/tmp
./exim.sh
rm -R /usr/tmp
unsetenv PKG_TMPDIR

Worked like a charm.

BigWil
 
I'm going to update the exim.sh script and proftpd.sh script with something similar, thanks Will.

John
 
Looks like this will work well on FreeBSD 5-6.x with any package distribution that has the +INSTALL script in it and where /tmp and /var/tmp are noexec,nosuid. So if you have more than exim and proftpd then it might be advisable to make that fix there too. Just be sure to remove /usr/tmp afterwards or I think this could come back to bite us.

BigWil
 
Back
Top