cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail queries

 
SOLVED
Go to solution
iman_1
Advisor

Sendmail queries

Hulo,

I have a previous system admin set the sendmail log collection in on of the directories.

How can I disable or reactivate the log collection ?

How did he do this ?

In this file there are some good number of messages collected with [ ID XXXXX mail.warning ] Does this depict any errors ?

Where can I see any sendmail errors if any ( not collected in this mail file) ?

Ciao

5 REPLIES
Mel Burslan
Honored Contributor
Solution

Re: Sendmail queries

Look into your syslog.conf file. You will see something like:

# cat /etc/syslog.conf
# @(#)B.11.11_LR
#
# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *


the line that starts with word mail tells you where your mail log is, if configured.

HTH
________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor

Re: Sendmail queries

Shalom,

It is all controlled in syslog.conf

That is where the changes were made.

Hopefully the admin left a backup file, otherwise pick a default file off another system. I can even send you one if you have no alternatives.

after changes are complete restart the syslog daemon.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ganesan R
Honored Contributor

Re: Sendmail queries

Hi Iman,

The default location of sendmail log is /var/adm/syslog/mail.log unless otherwise you have changed it in /etc/syslog.conf

For sendmail log collection, you can schedule a simple script in cron to backup a current file everyday and keep defined number of days. Check root user crontab to find if such kind of script is scheduled.
Best wishes,

Ganesh.
iman_1
Advisor

Re: Sendmail queries

thankyou all
iman_1
Advisor

Re: Sendmail queries

ciao