Changing location of maillog

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


and its monitor by syslog service

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

we need to change the path as

vi /etc/syslog.conf

#comment out following line which seems like

mail.* -/var/log/maillog

#Put line

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

Now we need to restart syslog as

/etc/init.d/syslog restart