[BSD] Log viewer looking for wrong Exim files

Daredevil

Verified User
Joined
Oct 24, 2004
Messages
50
Location
Netherlands
Under BSD(FreeBSD 4.10) the exim log files can be found at /var/log/exim/exim_(filename), but the Log Viewer looks for the files at /var/log/exim/(filename) - and since they aren't there it errors, kinda ugly if you ask me ;).

One can always fix the "problem" by creating a simple symbolic-link., but that just isn't as neat as a simple code-editing.
 
Hello,

I believe all our current version of exim use the regular "mainlog" file, so I assume you're using an older version?

You can change the logfile path in the logs.list file:

cd /usr/local/directadmin/data/templates
cp logs.list custom

edit the custom/logs.list file to suite your needs. Add/remove any files that you need.

John
 
An older version John ? err. you lost me ;).

There is no older version of 4.10 :P, I'm having the same problems on two boxes -

I'll setup a testing system later this day, to see what happens.



Might be me, who knows
 
Running exim 4.43 here, latest version I think. I tried to check but the file server is missing a lot of files such as exim.

Ading the exim_ portion to the template as you have above did fix the problem, but since I am using the latest version......
 
Last edited:
I use freebsd myself and the logs are named correctly, but I am wondering do they get cycled as my mainlog is currently 3.7MB in size.
 
In linux/unix logs get rotated based on settings in the logrotate.d directory.

Perhaps your settings for /etc/logrotate.d/exim aren't what they should be?

Jeff
 
Ok. I deleted the log files completely and restarted exim to recreate the logs and it did the same thing with the preceding exim_ infront of the names.

I am using the latest version of exim as well as the configuration that was provided from the file server.
 
Last edited:
I keep having the same problem on a freshly installed box.

- base FreeBSD 4.10(miniinst, but that shouldn't be the problem)
- ran cvsup for sources/ports
- kernel update(with quotas)
- fetch www.directadmin.com/setup.sh; chmod +x setup.sh; ./setup.sh

Ermm, yeh :)
 
jlasman /etc/logrotate.d doesnt exist but I know fbsd uses newsyslog.conf which has a crontab entry for cycling logs but directadmin hasnt added any entries for it, I dont want to start adding entries to cycle the logs tho as it may break how DA works, could you please tell me what cycle yours cycles (daily?)

thanks.

then I can set it and send the added lines to directadmin developers.
 
Chrysalis said:
/etc/logrotate.d doesnt exist but I know fbsd uses newsyslog.conf which has a crontab entry for cycling logs
Yes, I always forget about the difference between BSD and linux; it's been a while since I've used BSD based unix distributions regularly.
but directadmin hasnt added any entries for it, I dont want to start adding entries to cycle the logs tho as it may break how DA works, could you please tell me what cycle yours cycles (daily?)
It doesn't matter how often you rotate exim logs; but it may make a difference as to what you can see.

/etc/logrotate.conf determins how often logs get rotated; on my RHL installs they rotated every week for a total of four weeks. On our systems we save space by telling the rotate system to compress all logs except the current one, as it does the rotating.

Jeff
 
I don't think so.

But I admit I'm not positive.

We rotate once weekly, which is the DA default.

Jeff
 
Same problems over here as well.

FreeBSD 5.2.1 and EXIM 4.24.

Maybe you can specify the older versions that is uncompatible so that I know if my EXIM is the problem or not?

anyway, this logviewer is a lovely feature!
 
This problem I think is linked to the www traffic logs not been rotated problem.
 
Chrysalis said:
This problem I think is linked to the www traffic logs not been rotated problem.

How so? DA looking for log files with different names, interesting.
 
I am talking about the non rotation of the files, eg. my exim log file names are the correct name but they have never been rotated since the day I installed directadmin, I wonder if they ever get rotated will the new filename be correct.

Of course my www log files also never get rotated, unless I force a rotation by setting the rotation size to small.
 
Back
Top