While sending mails from the email account following error was getting generated and mail sending was getting failed.
Fix
Remove the entry for the domain from /etc/remotedomains and add the domain in /etc/localdomains
Some Quick Fixes and Resolutions by Linux Enthusiast