1834458 Members
2586 Online
110067 Solutions
New Discussion

Re: mail log

 
SOLVED
Go to solution
j773303
Super Advisor

mail log

Is it possible to know users were sent mail?
Any log on this for each user?
Hero
8 REPLIES 8
Joaquin Gil de Vergara
Respected Contributor

Re: mail log

try it changing the loglevel in the sendmail.cf file
Teach is the best way to learn
j773303
Super Advisor

Re: mail log

The mail was sent by mail and mailx.
Hero
Massimo Bianchi
Honored Contributor
Solution

Re: mail log

Hi, all is logged in /var/adm/syslog/mail.log

Massimo

twang
Honored Contributor

Re: mail log

# tail /var/adm/syslog/mail.log
Michael Tully
Honored Contributor

Re: mail log

There is not a log for each individual user, all mail entries are logged into /var/adm/syslog/syslog.log

There are a few specially written email packages that you could install if you wanted something further. I am sure sendmail could cater for this, but you are welcome to wade through sendmail mire. Have a look at the offerings from this link.

http://hpux.connect.org.uk/hppd/hpux/Networking/Mail/
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: mail log

Further to this the incoming mail itself will be sent by default to /var/mail/~username
Anyone for a Mutiny ?
Rory R Hammond
Trusted Contributor

Re: mail log

syslogd logs mail messages according to the levels and specifications described in /etc/syslog.conf

You need to look at /etc/syslog.conf
to verify were your mail "stuff" is logged.
on my systems mail.debug is logged in:
/var/adm/syslog/mail.log

I have seen some use /var/adm/syslog/syslog.log
My AIX box used /usr/spool/mqueue/syslog before
I changed it.
On my linux box messages are logged in /var/log/maillog.


It all depends on how you setup /etc/syslog.conf

Rory
There are a 100 ways to do things and 97 of them are right
someone_4
Honored Contributor

Re: mail log

hi

the mtail command also tails the mail.log file for you.

mtail
gives you the last 20 lines

mtail 50

gives you the last 50 lines


Richard