Operating System - HP-UX
1824636 Members
4785 Online
109672 Solutions
New Discussion юеВ

Sendmail adding extra domain to recipient address

 
Mark Bly
Regular Advisor

Sendmail adding extra domain to recipient address

Hi,

System: HP-UX 11i
We have configured sendmail to send to a test smtp relay so that we can see if our emails are being sent correctly.
We have noticed that if we send to an address with a local domain extension, it adds the domain again to the end of the address.
e.g
recipient: mark.bly@somedomain.co.uk
becomes: mark.bly@somedomain.co.uk.somedomain.co.uk

We have used both elm and mailx to send the Emails with the same results.
Sending mail from another Unix server to the same test relay does not have this issue.
Unfortunately we can not find any differences in the sendmail.cf file.

Has anyone seen this before or have an idea where we can look?

Thanks in advance
Remember to think before you react................but always make sure there is still time to react
3 REPLIES 3
Avinash20
Honored Contributor

Re: Sendmail adding extra domain to recipient address

cat /etc/hosts| grep somedomain.co.uk

cat sendmail.cf | grep somedomain.co.uk
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Mark Bly
Regular Advisor

Re: Sendmail adding extra domain to recipient address

Hi,

Obviously the cat /etc/hosts will pick up the domain name as it is our local domain.
We actually use DNS but the hosts file still contains a few test entries.

The only entries in sendmail.cf are for the relay and the DM entry.
e.g

DS server.somedomain.co.uk
DM somedomain.co.uk

Where server is the relay server.

This is identical to the server that sends Email correctly.

Where else could the recipient address be picking up the extra domain entry?
Remember to think before you react................but always make sure there is still time to react
Mark Bly
Regular Advisor

Re: Sendmail adding extra domain to recipient address

It turned out to be a DNS issue.

An nslookup of domain.co.uk was coming back with domain.co.uk.domain.co.uk.

After changing the DNS entry it worked fine.

Remember to think before you react................but always make sure there is still time to react