LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-11-2008, 03:47 PM   #1
jimmyjiang
Member
 
Registered: Jun 2006
Posts: 132

Rep: Reputation: 15
write mail log to /var/log/maillog


hi,
I accidently delelte /var/log/maillog, after I recreate it, but postfix wouldn't write any mail log into it anymore, I restart postfix, no help, anyone know why?
thanks!
jimmy
 
Old 01-11-2008, 09:50 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Who owns the /var/log/maillog file? Permissions?

Here's my settings for maillog when doing ls -laZ

Code:
-rw-------  root root system_u:object_r:var_log_t      maillog
 
Old 01-14-2008, 08:50 AM   #3
jimmyjiang
Member
 
Registered: Jun 2006
Posts: 132

Original Poster
Rep: Reputation: 15
[root@localhost ~]# ls -las /var/log/maillog
72 -rw-r--r-- 1 root root 63330 Jan 14 09:44 /var/log/maillog

but the problem is I deleted the origial maillog file, this one is I recreated myself. looks like postfix not really this file exits, so it didn't write any maillog in it. anyway to fix it?
 
Old 01-15-2008, 04:29 PM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
restart syslog:
Code:
kill -HUP `cat /var/run/syslog.pid`
or, whichever way your distro does it.
 
Old 01-15-2008, 06:18 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Assuming that restarting the syslog or reboot does not work, and you have SElinux enabled, then you need to change the context of the file. That's why I did ls -laZ.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why is maillog on my server getting created in /var/log/maillog.3 ? weblink_dipti Linux - Software 2 06-16-2007 04:47 AM
STARTTLS errors in /var/log/maillog joe.biz Linux - Software 1 10-26-2005 04:18 PM
File /var/log/maillog too big. Zepiroth Linux - Software 0 05-10-2004 06:12 AM
/var/log/maillog file size vaughn Linux - Software 6 12-15-2003 05:12 PM
wierd spamassassin entries in /var/log/maillog Pcghost Linux - Software 1 07-15-2003 10:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration