Changing location of maillog

We are logging activities of emails. usually these logs are appended in a file maillog which is store in

\r\n

/var/log/maillog

\r\n

and its monitor by syslog service

\r\n

To change the path we need to update the file syslog.conf

\r\n

we need to change the path as

\r\n

vi /etc/syslog.conf

\r\n

#comment out following line which seems like

\r\n

mail.* -/var/log/maillog

\r\n

#Put line

\r\n

mail.* -/path/to/your/folder/maillog

\r\n

Now we need to restart syslog as

\r\n

/etc/init.d/syslog restart

Categories