Exim Failed -- New Install (BSD)

tmellon

Well-Known Member
Aug 15, 2001
64
0
306
Sarasota, FL
I've uninstalled openssl port and reinstalled it, cleared the port package db, and reinstalled them.

I'm ran /scripts/eximup --force

But its getting stuck on portupgrades.

This is a brand new install -- FreeBSD v6.

Any suggestions welcome.

sent 67 bytes received 2424586 bytes 51045.33 bytes/sec
total size is 174357929 speedup is 71.91
cd: can't cd to /usr/ports/sysutils/portupgrade
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 181 packages found (-1 +1) (...). done]
Fetching the ports index ... ---> Session started at: Tue, 27 Mar 2007 16:27:44 +0000
/usr/ports/INDEX-6.bz2 891 kB 361 kBps
done
[Updating the portsdb <format:bdb1_btree> in /usr/ports ... - 16758 port entries found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000....... ..... done]
---> Fresh installation of mail/exim started at: Tue, 27 Mar 2007 16:27:55 +0000
---> Installing 'exim-4.65' from a port (mail/exim)
---> Build of mail/exim started at: Tue, 27 Mar 2007 16:27:55 +0000
---> Building '/usr/ports/mail/exim'
** Command failed [exit code 1]: /bin/sh -c "make >>/tmp/portupgrade.65668.0 2>&1"
** Fix the problem and try again.
---> Build of mail/exim ended at: Tue, 27 Mar 2007 16:28:09 +0000 (consumed 00:00:13)
---> Fresh installation of mail/exim ended at: Tue, 27 Mar 2007 16:28:09 +0000 (consumed 00:00:14)
---> Listing the results (+:done / -:ignored / *:skipped / !:failed)
! mail/exim (unknown build error)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
---> Session ended at: Tue, 27 Mar 2007 16:28:09 +0000 (consumed 00:00:25)
Running post install scripts for exim....Done
Waiting for exim to restart..............finished.

root 66381 0.0 0.2 2836 2404 ?? S 4:28PM 0:00.00 antirelayd (perl)

exim has failed, please contact the sysadmin.
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
724
15
243
Doing the commands that restart_exim boils down to on FreeBSD it simply does not start it (yes the exim port is hosed but that a different issue):

# /usr/local/sbin/exim -bd -q30m && /usr/local/sbin/exim -tls-on-connect -bd -oX 465
# ps aux | grep exim
mailnull 856 0.0 0.6 6388 5896 ?? S 11:06AM 0:00.44 eximstats (perl5.8.8)
root 8724 0.0 0.0 348 232 p0 R+ 1:09PM 0:00.00 grep exim
#
peters out everytime after it opens /etc/group and moves on:

8990 read(3, "# $FreeBSD: src/etc/group,v 1.31"..., 16384) = 845
8990 close(3) = 0
8990 syscall_416(0xe, 0xbfbfe850, 0) = 0
8990 fstat(2, {st_dev=makedev(50, 808452128), st_ino=909127476, st_mode=031057, st_nlink=8243, st_uid=859451696, st_gid=
942815794, st_blksize=976304682, st_blocks=1700881418, st_size=8747526963929576559, st_atime=1987/04/02-07:19:37, st_mtim
e=1975/05/23-04:15:16, st_ctime=2000/12/03-06:19:56, st_flags=UF_IMMUTABLE|UF_OPAQUE|SF_ARCHIVED|SF_APPEND|0x65686b00, st
_gen=975845997}) = 0
8990 getpid() = 8990 (ppid 8989)
8990 syscall_416(0x1e, 0xbfbfe850, 0) = 0
8990 syscall_416(0x1, 0xbfbfe850, 0xbfbfe830) = 0
8990 syscall_416(0xd, 0xbfbfe850, 0xbfbfe830) = 0
8990 syscall_416(0x14, 0xbfbfeb68, 0) = 0
8990 umask(0) = 022
8990 geteuid(0) = 0
8990 getuid() = 0 (euid 0)
8990 getgid() = 0 (egid 0)
8990 setgid(0) = 0
8990 setuid(0) = 0
8990 getrlimit(RLIMIT_NOFILE, {rlim_cur=8031151179464470282, rlim_max=8030545085838539378}) = 0
8990 getrlimit(RLIMIT_NPROC, {rlim_cur=4209855618846717039, rlim_max=7955998012792519210}) = 0
8990 getgroups(16, [926558778, 1701710394, 708473719]) = 3
8990 setgroups(0, []
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
724
15
243
I saw this in chksrvd logs:

[Wed Mar 28 13:45:31 2007] Service check ....cpsrvd [+]...exim [-Notification => [email protected] via EMAIL [level => 3]
2007-03-28 13:45:31 1HWe5L-0002Tf-KK Cannot open main log file "/var/log/exim/mainlog": Permission denied: euid=26 egid=6
Restarting exim....
mainlog was 644 root:mailnull

so i removed it and it was recreated as 640 mailnull mail on restart and its all running