logging postfix

Discussion Room for the Synology MailStation Package

logging postfix

Postby cajmere » Mon Dec 19, 2011 8:08 pm

Hi,

How can i get logs from postfix?

Nothing is being logged from postfix and it's very annoying if there is a problem i can't see what the problem is without the logs.

I've put this at the end of /usr/syno/etc/syslog-ng.conf , but it doesn't seems to work, because the logfiles are staying empty. What i am doing wrong?

Tia


destination mail { file("/var/log/mail.log"); };
destination maillog { file("/var/log/maillog"); };
destination mailinfo { file("/var/log/mail.info"); };
destination mailwarn { file("/var/log/mail.warn"); };
destination mailerr { file("/var/log/mail.err"); };


filter f_mail { facility(mail); };


log { source(s_local); filter(f_cat); destination(d_all); flags(flow_control); };
log { source(src); filter(f_mail); destination(mail); };
log { source(src); filter(f_mail); destination(maillog); };
log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); };
log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };
log { source(src); filter(f_mail); filter(f_err); destination(mailerr); };
cajmere
I'm New!
I'm New!
 
Posts: 6
Joined: Sun Jun 19, 2011 9:37 pm

Re: logging postfix

Postby sjeph8je » Fri Dec 30, 2011 8:50 pm

Hi,

Don´t know which version DSM you are using, but with version 3.2 you can install a syslog server package via the DSM. if you follow this link you are able to log all system message to the syslog server. This will also display items not shown in the default system log (/var/log/messages) including mail debugging.

If you have another 3.x version and syslog-ng is default available, you must start it yourself as is discussed in this link.

Hope this helps
Synology DS-209 | DSM 4.1-2668 | 2 x WD20EARS (RAID1) (Time Backup | PhpMyAdmin | PhpLdapAdmin | PhpPgAdmin | Mailstation 2 | Svn | Directory server | Syslog server)
  • USB Conceptronic CHD3SU | WD20EARS (Ext-4)
Synology DS-209 | DSM 4.2-3202 | 2 x WD5000AAKS (RAID0) (syslog server)
  • USB Conceptronic CHD3NET | WD5000AAVS (Ext-4)
Corruption wears infinite disguises.
User avatar
sjeph8je
Knowledgeable
Knowledgeable
 
Posts: 324
Joined: Fri Jan 29, 2010 10:06 pm
Location: Netherlands


Return to MailStation

Who is online

Users browsing this forum: No registered users and 1 guest