Solved

cant send email from local computer

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

810 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