Computing.Net > Forums > Linux > Send mail to external server

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Send mail to external server

Reply to Message Icon

Name: dstonek
Date: November 17, 2005 at 11:31:03 Pacific
OS: Fedora3
CPU/Ram: don't remember
Comment:

My domain name (MyDomain.com) registrar sends all MyDomain.com requests to my hosting company(hosting.com). URL's ending in MyDomain.com are sent to my linux server using my IP. Emails from everyone are sent to hosting company mail server mail.hosting.com where I manage my email accounts via control panel. My client mail is set for in and outgoing to mail.hosting.com
At this time I prefer not to use my own mail server to manage my (our) own emails
The problem is that mails sent from my web pages www.MyDomain.com using php forms, mail() or phpmailer, all with sendmail to [b]someone@MyDomain.com[/b] are considerated as local, so they are not sent because there are not accounts set here.
I want that emails sent from web pages www.MyDomain.com to someone@MyDomain.com do not stay local but forwarded to mail.hosting.com where I've set my email accounts.
I've been trying a couple of settings creating mailertable, restarting sendmail, but the same in log file: "someone: user unknown".
# File: /etc/mail/mailertable
MyDomain.com mail.hosting.com
Thank you



Sponsored Link
Ads by Google

Response Number 1
Name: Seth Miller
Date: November 22, 2005 at 04:16:58 Pacific
Reply:

Well if your MX records for MyDomain.com are pointing to your hosting providers nameservers then they are not staying local. Make sure when you changed the DNS records to point your site to your local server that you did not accidently change the MX records as well.



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Send mail to external server

stop sending mail to root www.computing.net/answers/linux/stop-sending-mail-to-root/12866.html

iptables prevent sending mail www.computing.net/answers/linux/iptables-prevent-sending-mail/18846.html

postfix not sending external mails www.computing.net/answers/linux/postfix-not-sending-external-mails/24613.html