LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-05-2017, 03:24 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 220

Rep: Reputation: Disabled
Why no log record in /var/log/mail.log?


postfix was installed on debian8.

Code:
echo "it is a test" |mail -s "to test log"  xxxx@gmail.com
The email can be received in my gmail account.
Why no log record in /var/log/mail.log?

systemctl status rsyslog
● rsyslog.service - LSB: enhanced syslogd
Loaded: loaded (/etc/init.d/rsyslog)
Active: active (exited)
 
Old 10-05-2017, 11:14 AM   #2
linux-sys-adm
LQ Newbie
 
Registered: Oct 2012
Distribution: Debian
Posts: 21

Rep: Reputation: Disabled
Sounds like mail.log was removed? If not and it's empty rename it (mv or even delete) and then try:

Code:
systemctl restart rsyslog
systemctl restart postfix
 
Old 10-06-2017, 09:51 AM   #3
luofeiyu
Member
 
Registered: Aug 2015
Posts: 220

Original Poster
Rep: Reputation: Disabled
Why only one command
Code:
systemctl restart rsyslog
can't do the job?
Why is it necessary to execute two commands
Code:
systemctl restart rsyslog
systemctl restart postfix
??
 
  


Reply


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] iptables troubleshooting icmp and best place to log /var/log/messages or /var/log/iptables JockVSJock Linux - Security 18 02-12-2016 01:31 AM
Postfix logging to both /var/log/mail.log and syslog Zolcsi Linux - Server 2 04-21-2013 04:07 AM
kernel log format in /var/log/kern.log sinu_nayak2001 Linux - Newbie 2 10-07-2009 09:34 AM
Can Samhain log my entries in /var/log/secure and /var/log/mesage to a central server abefroman Linux - Software 2 04-13-2008 05:13 PM
write mail log to /var/log/maillog jimmyjiang Red Hat 4 01-15-2008 07:18 PM

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

All times are GMT -5. The time now is 09:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration