Jump to: navigation, search
MithiWiki Home > ConnectXf Home > ConnectXf Administration > Configuration > Mail sent to invalid/non-existent email id, is not getting bounced
Troubleshooting Icon.png
Troubleshooting
Product ConnectXf
Version All
Applies to Administrators
Level Advanced



Mail sent to non-existent email id, is not getting bounced.

Symptoms

User has sent an email to an invalid recipient.

It is expected if you send an email to an invalid/non-existent email-id you should receive a bounce back message in your mailbox.

In this case, though user sends a mail to an invalid recipient, user does not receive a bounce back message in his/her mailbox.

Diagnosis

At the time of a user ccreation in LDAP directory, all the personal information of the user is stored in the CD node of the directory and its copy with mail properties is kept in MS node.

So, you need to check if the user is present on the server, MS node, and CD node.

1: Check if the user is present on the server using following command

/mithi/mcs/bin/getuserproperties.sh --domain DOMAIN_NAME --user USER_NAME --output mail

2: Check if the user entry is present in the CD node and MS node.

  • To check the user entry in the ldap CD node, use following command
ldapsearch -LLL -s sub -x -D "cn=manager,dc=connectserver" -w "$PGPASSWORD" -b "o=cd,dc=connectserver" "(mail=USER_EMAIL_ID)" mail | egrep ^mail:
  • To check the user entry in the ldap MS node, use following command
ldapsearch -LLL -s sub -x -D "cn=manager,dc=connectserver" -w "$PGPASSWORD" -b "o=ms,dc=connectserver" "(mail=USER_EMAIL_ID)" mail | egrep ^mail:
  • If the user entry is present in the CD node, indicates the user is not deleted from the server.
  • If the user is deleted from the CD node and still present in the MS node, you need to delete the user entry from MS node.

Cause

Possibly due to unresponsive Tomcat service, deleting user from server deletes its entry from CD node and not from MS node.

Since this user still exists in the MS node, is treated as a valid user. When you send an email to this user you will not receive a bounce back message.

Solution

You can use below commands to delete the user entry from MS Node.

1: Get the dn of user from MS node.


 ldapsearch -LLL -s sub -x -D "cn=manager,dc=connectserver" -w "$PGPASSWORD" -b "o=ms,dc=connectserver" "(mail=USER_EMAIL_ID)" | grep ^dn: | cut -d ' ' -f 2- > /tmp/user_delete.txt

2: Delete the entry:

 ldapdelete -x -v -D "cn=manager,dc=connectserver" -w "$PGPASSWORD" -f /tmp/user_delete.txt