?
Solved

cant send email from local computer

Posted on 2006-11-16
4
Medium Priority
?
415 Views
Last Modified: 2012-06-27
hi;
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 xxx@myinternetmailserver.com.tr mail is send successfully. but when i try sending it in a local machine like sendmail -t -f username xxxx@myinternetmailserver.com.tr 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
unknown


any ideas ?
0
Comment
Question by:kenanerdey
3 Comments
 

Expert Comment

by:DigitalOswald
ID: 17958566
I'm going to guess you are using sendmail?

Try editing /etc/hosts and add <yourip> myinternetmailserver.com.tr
0
 

Author Comment

by:kenanerdey
ID: 17970772
ok, i solved the problem. i added line :  relayhost = myinternalmailserver.com. and then used the php's mail function.
thanks.
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18298604
PAQed with points refunded (85)

Computer101
EE Admin
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question