Hey,
I forgot to put the meat in my answer. The man page above explains it all.
Just set up a selector for mail.*, and send to its own file, like /var/adm/maillog.
Hope this is of some help.
Main Topics
Browse All TopicsHi,
I wanna seprate the sendmail logs from syslog. By default sendmail logs goes to syslog.
Note: pls test before giving me answer
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Arvind,
Here are the steps how to change the sendmail logs.
1. make a copy of your /etc/syslog.conf
2. edit /etc/syslog.conf and change the following line.
mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)
to
mail.debug ifdef(`LOGHOST', /var/log/maillog, @loghost)
3. touch /var/log/maillog
4. stop syslogd with "/etc/init.d/syslog stop" command
5. start syslogd with "/etc/init.d/syslog start" command
send a mail and you should be able to see the log entries in /var/log/maillog file.
Try it our and this Definitely works.
Kidambi
PLease clarify your question.
1) Do you want to record all of sendmail's log records in a file other than the default file, which is /var/log/syslog??
or,
2) Do you want to know how to extract sendmail's log records from the /var/log/syslog file?
If what you want to do is #1, then the comment posted by Kidambi is what you need to do.
If what you want to do is #2, then extract the messages using grep, or Perl.
I don't know if this is what you're looking for. If not, just post another comment.
--frankf
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:
- PAQ, no points refunded
Please leave any comments here within the next 7 days
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
tfewster
Cleanup Volunteer
Hi arvind, thanks for reviewing this question.
You didn't post your solution or point out the problems with the comments given, so my view was that billwcc and k.kidambi had given you the information you needed.
However, it is up to the Moderators to decide on how this question should be closed, so I'm sure they'll take your comments into account.
For your other open questions, you could post a (0 point) question in Community Support to ask them to delete the question or save it & refund your points. If you do so, please post the link to the question AND post a message in the original question explaining what you are doing ;-)
Regards,
tfewster
Cleanup Volunteer
Business Accounts
Answer for Membership
by: billwccPosted on 2002-08-01 at 10:24:07ID: 7194208
man syslog.conf.