Mail service is not working on Unix server

Mail service is not working on Unix server.

mailx command is used to send mail alerts in Unix Operating System.

uuencode command is used to send attachments in the mail.
We are supposed to receive email Alerts once each Monitoring script executed from crontab.

If we are not receiving any monitoring alerts from orclsrvr server then troubleshoot as mentioned below.

 

Troubleshooting:

1) Verify the below mailx command

Syntax

uuencode file file| mailx -s “Testing Mail service” <Mail ID>

$uuencode lspv.out lspv.out| mailx -s “Testing Mail service” dba_grp@ajara.tech

After running above command run echo $? command as below.

$echo $?

If it returns 0 success, 1 means fail

check mail box also.

2) Verify the syslog file

Syslog contains something like this . This o/p is from AIX server.

Sep 19 12:52:40 orclsrvr mail:info sendmail[1507766]: v8JHqccG1507766: from=oracle, size=10111,
class=0, nrcpts=1msgid=<201709191752.v8JHqccG1507766@orclsrvr>, relay=root@localhost
Sep 19 12:53:20 orclsrvr mail:info sendmail[4587990]: v8JHqccG1507766: to=dba_grp@ajara.tech,
ctladdr=root (0/0), delay=00:00:42, xdelay=00:00:40, mailer=relay, pri=130111, relay=relaymail.mailsrvr,
dsn=4.0.0, stat=Deferred: Name server: relaymail.mailsrvr: host name lookup failure
Sep 19 12:53:23 orclsrvr auth|security:notice su: from root to root at /dev/pts/2

Note : Get the relay server name from the syslog file.

3) ping the relay

root on orclsrvr:/>ping RELAYMAIL.mailsrvr

4) Telnet the relay (if telnet is not blocked)

 

Note: Send the o/p of the above commands to server/outlook/”Lotus notes” /mail team to resolve the issue.

 

See also: