Solved

cant send email from local computer

Posted on 2006-11-16
4
362 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now