I have not changed any configuration in any of the tools, specially not in:

  • syslog
  • rsyslog
  • postfix
  • systemd

(If any apply)

In my /var/log there is no /var/log/mail.log, /var/log/postfix.log or /var/log/syslog

What is happening here? What is the log facility used by Ubuntu 14.04.3? Where are the logfiles?


This is what I see on my box:

ws:/# postconf syslog_facility
syslog_facility = mail
ws:/# grep '^mail' /etc/rsyslog.d/*
/etc/rsyslog.d/50-default.conf:mail.*                           -/var/log/mail.log
/etc/rsyslog.d/50-default.conf:mail.err                 /var/log/mail.err
ws:/# grep -v '^#' /etc/rsyslog.d/postfix.conf 
$AddUnixListenSocket /var/spool/postfix/dev/log

Do you see the same?

Edit: /var/log ended up not being writable for syslog, namely drwxr-xr-x root root instead of drwxrwxr-x root syslog, so a chown root:syslog /var/log && chmod 775 /var/log did the trick.

| improve this answer | |
  • Exactly the same. Still, no logfile, not even in /var/spool/postfix/dev/log (the directory does not even exist!) – blueFast Sep 29 '15 at 8:22
  • /var/spool/postfix/dev/log should be a socket: ws:/#ls -l /var/spool/postfix/dev/log srw-rw-rw- 1 root root 0 Aug 18 08:23 /var/spool/postfix/dev/log ws:/# – marcolz Sep 29 '15 at 8:24
  • Can you run: logger -p mail.debug Test And check where that ends up ? – marcolz Sep 29 '15 at 8:26
  • I have tried, both with and without sudo, and there are no logs neither in /var/log nor in /var/spool/postfix/dev/log. Where do your logs end up? How can I know where the logger command is sending the logs? Is there a verbose flag? (can't see it) – blueFast Sep 29 '15 at 8:37
  • And: ls: cannot access /var/spool/postfix/dev/log: No such file or directory – blueFast Sep 29 '15 at 8:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.