vandal
Verified User
Hello,
At some point during the day something is changing my /var/log/exim/mainlog and mainlog.1 so that's it owned by root and then exim breaks giving me:
from /var/log/exim/paniclog
Once I change it back to mail.mail (chown -R mail.mail) it works again but the log file permissions are still being changed everyday. It just started yesterday for the first time and it happened again today, both around the same times.
When it's broken the log files look like this:
as you can see mainlog is owned by root but I have no idea why...thinking it could be logrotate doing something bad...but why start yesterday?
It also seems exim is running sometimes as root or sometimes as the mail user...is this normal behavior?
Another odd thing is in my /etc/group I have a postfix user beside my mail user:
Also have a postfix user in /etc/passwd this is all on a RHEL 3 box.
Anyone have any ideas?
At some point during the day something is changing my /var/log/exim/mainlog and mainlog.1 so that's it owned by root and then exim breaks giving me:
from /var/log/exim/paniclog
Code:
2008-09-18 14:08:02 1KgOrC-000148-Ew Cannot open main log file "/var/log/exim/mainlog": Permission denied: euid=8 egid=12
Once I change it back to mail.mail (chown -R mail.mail) it works again but the log file permissions are still being changed everyday. It just started yesterday for the first time and it happened again today, both around the same times.
When it's broken the log files look like this:
Code:
[root@zeus (/var/log/exim)] # ls -al
drwxr-xr-x 2 mail mail 4096 Sep 18 14:00 .
drwx--x--x 12 root root 4096 Sep 18 14:00 ..
-rw-r--r-- 1 root root 0 Sep 18 14:00 mainlog
-rw-r--r-- 1 root root 516172 Sep 18 12:58 mainlog.1
-rw-r--r-- 1 mail mail 0 Sep 18 11:12 mainlog.2
-rw-r--r-- 1 mail mail 1131356 Sep 18 11:12 mainlog.3
-rw-r--r-- 1 mail mail 1401438 Sep 18 10:04 mainlog.4
.....etc
as you can see mainlog is owned by root but I have no idea why...thinking it could be logrotate doing something bad...but why start yesterday?
It also seems exim is running sometimes as root or sometimes as the mail user...is this normal behavior?
Code:
[root@zeus (/etc)] # ps aux | grep exim
mail 17011 0.0 0.1 6700 2060 ? S 15:44 0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
root 17768 0.0 0.0 6652 1908 ? S 15:45 0:00 /usr/sbin/exim -q
root 17772 0.0 0.1 10204 3404 ? S 15:45 0:00 /usr/sbin/exim -q
mail 17773 0.0 0.1 10204 3444 ? S 15:45 0:00 /usr/sbin/exim -q
mail 17910 0.1 0.0 6672 1900 ? S 15:45 0:00 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
root 17911 1.0 0.0 6656 1908 ? S 15:45 0:00 /usr/sbin/exim -q
Another odd thing is in my /etc/group I have a postfix user beside my mail user:
Code:
mail:x:12:mail,postfix
Also have a postfix user in /etc/passwd this is all on a RHEL 3 box.
Code:
postfix:x:89:89::/var/spool/postfix:/sbin/nologin
Anyone have any ideas?