i have a mail server in our local network. this mail server is behind nat and can just send e-mail to internet from port 25. in a computer which can goes to internet, when i try to send email from outlook via this account to email@example.com mail is send successfully. but when i try sending it in a local machine like sendmail -t -f username firstname.lastname@example.org an error is sent to my mailbox like:
<myinternetmailserver.com.tr>: Host or domain name not found. Name service
error for name=myinternetmailserver.com.tr type=AAAA: Host found but no data record
of requested type
when i try sending with php script in the local machine it gives :
Warning: Can not find any valid ip address for hostname "myinternetmailserver.com.tr ", on class SMTP::_sendtohost() in /srv/www/..../smtp.php on line 973
any ideas ?