LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 0
Sending Emails


Hello,

I have a server, let's call it xyz.com. The MX entry for xyz.com points to a 3rd party server, let's call it xyz-mail.com. From xyz.com, I have an application that sends out emails, sometimes to people like joe@xyz.com. All the emails are received pretty much, except ones going out to @xyz.com. 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 xyz-mail.com 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
mikeyt_333
Member
 
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:

define(`SMART_HOST',`your.smtp.com')

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

MASQUERADE_AS(`your.domain')dnl

After you've defined these in /etc/mail/sendmail.mc make sure the sendmail-cf package is installed and run a "make -C /etc/mail" from within the /etc/mail directory, this rebuilds your sendmail.cf 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!

Mike.

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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