LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-20-2013, 12:03 PM   #1
Zolcsi
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Postfix logging to both /var/log/mail.log and syslog


Hi everybody,

I have a working mail server on Ubuntu 12.10 server. It is based on Dovecot, postfix, amavis, spamassassin, clamd.
My problem is that I see the mail logs in /var/log/mail.log and in the syslog as well. I am not sure if this is normal or not. The mail logs are flooding my syslog, so I would like to see those messages only in /var/log/mail.log and not in the syslog. Is this possible somehow?

Thanks!
 
Old 04-20-2013, 02:46 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
You decide where each log goes in /etc/rsyslog.conf or /etc/syslog.conf depending on which logger you are running.

I have the line:

Code:
*.info;mail.none;authpriv.none;cron.none        /var/log/messages
to log important stuff other than mail, auth and cron to messages.
 
1 members found this post helpful.
Old 04-21-2013, 03:07 AM   #3
Zolcsi
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks smallpond, that should do it!
 
  


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
[SOLVED] No /var/log/messages , syslog , kern.log -but cat /var/spool/octopussy/octo_fifo masuch Linux - Newbie 4 06-13-2012 08:05 PM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 04:13 PM
write mail log to /var/log/maillog jimmyjiang Red Hat 4 01-15-2008 06:18 PM
Logging is not happening on my /var/log/boot.log Copain Linux - Security 2 09-28-2007 05:34 PM
pppd logging to /var/log/ppp.log problem mrtwice Linux - Software 1 01-10-2004 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:56 PM.

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