Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-20-2013, 12:03 PM   #1
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?

Old 04-20-2013, 02:46 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora 34
Posts: 3,860

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
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:

*.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
LQ Newbie
Registered: Apr 2013
Posts: 2

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:05 AM.

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