LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-18-2018, 09:35 AM   #1
Double_AA
LQ Newbie
 
Registered: May 2018
Posts: 1

Rep: Reputation: Disabled
Issue sending email to certain internal domains using Mailx on REHL version 7


Internally we have several domains hosted by our exchange server. MailX is configure to relay email through our Exchange server. When sending mail via the Mailx program I can send to 2 of the domains but the other 2 the mail does not go through. I reviewed the Mailx logs and it appears that when sending to the other domains it is referencing incorrect Ip address meaning they for whatever reason it is not looking to the mail server. Any thoughts?
 
Old 05-18-2018, 10:50 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The MX record for the domain may be incorrect.

Run "dig -t MX <maildomain> to see what it tells you.

Run dig on the MX record if the dig above doesn't give its IP in the Additional Section.

Verify you can access the IP the MX is resolving.

You MIGHT be able to fake it out by adding the MX name to your hosts file with the IP you want if the IP is different.

e.g.
MX:
300 IN A smtp.mailexample.com.
Additional:
smtp.mailexample.com 3600 IN A 192.168.12.1
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with transmission script sending email Jmcclain82 Linux - Software 3 02-26-2016 06:10 AM
Sending mail with mailx version 12.1 stf92 Linux - General 1 07-19-2010 03:38 PM
multiple domains - postfix sending email with wrong address dlugasx Linux - Server 0 11-09-2009 03:20 AM
Sending HTML email via mailx grao75 Linux - Networking 1 11-08-2005 09:48 AM
issue sending email with non-root account xunzi Linux - Newbie 2 07-02-2004 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:58 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