Solved

cant send email from local computer

Posted on 2006-11-16
4
395 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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