IBM Support

IBM AIX: Data collection procedure for common sendmail issues

How To


Summary

This document provides steps to collect and upload data for common sendmail issues like mail not getting delivered to destination, sender address is incorrect and more.

Objective

Steps

1) Collect data from the non-working system by using the following steps:

--Remove old snap

# snap -r

If prompted, enter y for yes to remove old snap.

--Create directory

# mkdir -p /tmp/ibmsupt/testcase
# cd /tmp/ibmsupt/testcase
# script `hostname`.script.out(Run all commands in this shell)
# cp /etc/syslog.conf /etc/syslog.conf.bak
# echo "*.debug /tmp/ibmsupt/testcase/syslog-debug" >> /etc/syslog.conf
# touch /tmp/ibmsupt/testcase/syslog-debug
# refresh -s syslogd
# sendmail -d0.8 < /dev/null > d0.8
# ls -l /usr/sbin/sendmail
# ls -l /usr/bin/mail
# ls -ld /etc/mail
# ls -l /etc/mail
# ls -ld /var/spool/mail/
# ls -ld /var/spool/mqueue
# ls -ld /var/spool/clientmqueue (If running AIX 7200-04 or higher)
# cp -rp /etc/mail /tmp/ibmsupt/testcase/

--Start iptrace


# startsrc -s iptrace -a "-L 300000000 -p 25,53 -b /tmp/ibmsupt/testcase/`hostname`.iptrace.bin"
# lssrc -s iptrace

Should be active

--Reproduce the problem by running the failing mail command in verbose mode The command can be something similar to:

# date| mail -vvv -s test <destination email id>

--Stop iptrace and exit script

# stopsrc -s iptrace
# exit

--Complete the snap, which automatically gets the data that was put in the /tmp/ibmsupt/testcase directory.

# snap -aZc
# cd /tmp/ibmsupt
# mv snap.pax.Z <Case#>.non-working.snap.pax.Z

2) If you have a working system with similar mail configuration, collect the same set of data from the working system as well using the same commands as above, capturing the successful mail sent. Rename the generated snap file as <Case#>.working.snap.pax.Z

3) Upload both the snap files to our test case server at the following location:

https://www.ecurep.ibm.com/app/upload_sf

Additional Information

SUPPORT

Use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract.  

1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue.

2. Capture any logs or data relevant to the situation.

3. Contact IBM to open a case:

   -For electronic support, see the IBM Support Community:
     https://www.ibm.com/mysupport
   -If you require telephone support, see the web page:
      https://www.ibm.com/planetwide/

4. Provide a clear, concise description of the issue.

 - For more information, see: Working with IBM AIX Support: Describing the problem.

5. If the system is accessible, collect a system snap, and upload all of the details and data for your case.

 - For more information, see: Working with IBM AIX Support: Collecting snap data

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"Component":"","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
17 November 2023

UID

ibm16444749