Operating System - HP-UX
1830939 Members
1578 Online
110017 Solutions
New Discussion

Re: sending emails from unix thru exchange

 
Jeff Hagstrom
Regular Advisor

sending emails from unix thru exchange

How do I monitor the activity of emails going out of unix to my exchange server? IS there logs or something to look at that gives status, what's going out, is successful or not?
6 REPLIES 6
Ivan Krastev
Honored Contributor

Re: sending emails from unix thru exchange

From Unix side see /var/adm/syslog/syslog.log and /var/adm/syslog/mail.log


regards,
ivan
Rick Garland
Honored Contributor

Re: sending emails from unix thru exchange

On the UNIX side you can look at the /var/adm/syslog/mail.log (or wherever your mail log is located) and what the status is of mail on the UNIX system. Don't forget the 'mailq' command. It will tell you, for example, that your mail was sent to the Exchange system. Once you have that you will need to monitor from the Exchange susyem to see what happens to it from there.

Peter Leddy_1
Esteemed Contributor

Re: sending emails from unix thru exchange

Have a look at the /var/adm/syslog/mail.log
Keith Johnson
Valued Contributor

Re: sending emails from unix thru exchange

/var/adm/syslog/mail.log is the Sendmail log file. It will show the status of each mail sent. To control the logging detail, set the O LogLevel=x option within the /etc/mail/sendmail.cf file.
No matter where you go...there you are.
Matti_Kurkela
Honored Contributor

Re: sending emails from unix thru exchange

When sending email, the sendmail process tries to send it immediately to the destination (or the designated smarthost, if so configured). If this does not succeed, the message goes into mail queue (/var/spool/mqueue).

The sendmail daemon will then periodically (usually 2 times per hour) try to re-send the message. If this does not succeed within a time limit (default 4 hours), sendmail will send a warning email to the sender's local mailbox. It will still keep trying to send the message.

If the message is still in the queue after a second time limit (default 5 days), the message is considered failed, and the sender gets another message from the sendmail daemon, which describes what has happened.

To view the current state of the mail queue, use the "mailq" command.

The logfile that records all email-related events is /var/adm/syslog/mail.log.
MK
Rasheed Tamton
Honored Contributor

Re: sending emails from unix thru exchange

Hi,

As in the above just look the /var/adm/syslog/mail.log. Normally there will be a two (or three) line entry for each mail you sent from the box. The keyword to look is stat=


/etc/syslog.conf should have the mail debug entry as below:
mail.debug /var/adm/syslog/mail.log

mailq -v is also useful to see the pending queues.

Regards,
Rasheed Tamton.