Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-12-2006, 09:07 AM   #1
LQ Newbie
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
Sending Emails


I have a server, let's call it The MX entry for points to a 3rd party server, let's call it From, I have an application that sends out emails, sometimes to people like All the emails are received pretty much, except ones going out to It seems like the server looks locally for a user called joe (or whatever) rather than checking the MX entry and sending the email to the server.

The mail server I'm using is sendmail. Does anyone know a solution to my problem?

Thank you.
Old 04-12-2006, 09:56 AM   #2
Registered: Jun 2001
Location: Up in the clouds
Distribution: Fedora et al.
Posts: 353

Rep: Reputation: 30
That sounds right, if you're running sendmail you need to set the SMART_HOST variable to tell it what to use for mailing:


and then so it looks like those mails are coming from the appropriate domain and not that specific server, define the following:


After you've defined these in /etc/mail/ make sure the sendmail-cf package is installed and run a "make -C /etc/mail" from within the /etc/mail directory, this rebuilds your file. Restart your sendmail instance and you should be good to go. I'm not sure if this is the official way to accomplish what you're trying to do, but it's how I fixed it, hope it works for you!


Last edited by mikeyt_333; 04-12-2006 at 09:57 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending automated emails Wynd Linux - Software 6 10-25-2005 11:03 PM
Sending Emails Dragons_Way Linux - Software 2 03-09-2005 02:53 AM
qmail not sending emails lsimon4180 Linux - Software 1 10-18-2004 11:35 PM
Planned sending of emails Denisvt Programming 1 05-08-2004 08:34 AM
help with sending html emails pdelucia Linux - General 1 09-13-2003 11:06 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration