I receive emails when i send them using the pub.client:smtp to a email address within the domain. But when i try sending emails to addresses outside the domain, they fail to reach the destination.
I am using AIX RS6000 box and was wondering if you folks had experienced similar problem or know where the problem could be.
The reason must be that you have not specified a valid ‘to’ email address in the smtp service. Please also ensure that this ‘to’ email address exists within the domain email server that you have specified.
I do have the to address in the smtp…but it works only for internal emails (local to the domain) and not for external email addresses like @hotmail.com and @yahoo.com
Also can you elaborate on
Please also ensure that this ‘to’ email address exists within the domain email server that you have specified.
check with your mail administrator. If your mail server is not configured for anonymous relay, then it may not allow mails to be sent to other domains over SMTP port without any authentication.
What I meant by
"
Please also ensure that this ‘to’ email address exists within the domain email server that you have specified.
"
is that if you have given a ‘mailhost’ address as ‘abc.com’, then your ‘to’ email address should be ‘gamad@abc.com’ which exists within the mailhost ‘abc.com’. You cannot give a ‘to’ address as ‘gamad@xyz.com’, which does not exists in ‘abc.com’ mail host, but exists in ‘xyz.com’ mail host.
The hostname/IP address which you specify in the mailHost parameter of the smtp service should be YOUR internal mail host. It is NOT the mail host of the address that you are trying to send to. Also like what I mentioned in my previous post, please ensure that the ‘from’ email address is specified and is a valid address in your INTERNAL mail server.