* JEHERUL <jehe...@gmail.com>:
> Dear all
> 
> By default the log created by postfix and dovecot goes to /var/log/maillog.
> I want to take the log separately.
> 
> How can I do that? I googled but nothing found like that.

:)

Multiple options:

* use a syslogd which can do filtering (syslog-ng) based on regexp
* or do it this way:

main.cf:
syslog_facility = local4

and in syslog.conf:
local4.*                        -/var/log/mail.log
mail.*                          -/var/log/pop3d-imapd.log

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de
            

Reply via email to