Solved

Mailx is not working

Posted on 2004-03-25
27
640 Views
Last Modified: 2013-12-27
I have mailx on several Unix servers, another one has been set this server uses DNS, I have added the Mail server address to the local host file as I have done on all other machines, but when i send a mail nothing is sent

What is going wrong the only diffrence to all other unix servers is that this one is using DNS do i need to add the entry to other files?

Cheers in advance
0
Comment
Question by:craigdba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 10
  • 2
  • +2
27 Comments
 
LVL 1

Expert Comment

by:mdhmi
ID: 10678680

Huhh?  Your going to need to provide a little more information than that !.  What version of the OS are you running, what version of sendmail are you running?  What happens when you try to send a message?  What is logged in /var/adm/messages and /var/log/syslog?  Are you trying to send mail to clients on a local subnet only or is this internet traffic?  We are definitely going to need more information if you expect any type of solution.

Cheers,

Mark
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10696644
could you please post result of:
  mailx -V
from both, working and not working server
0
 
LVL 18

Expert Comment

by:liddler
ID: 10697465
Also a log of
mailx -v -v <valid email address>
on both machines
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:craigdba
ID: 10712582
mailx version 5.0 on both machines
0
 

Author Comment

by:craigdba
ID: 10712611
WARNING: local host name (tt-nms) is not qualified; fix $j in config file
crichards@tullib.com... Deferred: Name server: mailhost: host name lookup failure

This is what i get on the machine that is not working, on the working one is just says found server contacted sending message all ok
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10712842
aha, you need to fix your sendmail.cf, search for the line starting with
Dj
(it's probably commented out), you need to add a FQDN, like
Djhostname.domain.tld

then stop and start sendmail again
0
 

Author Comment

by:craigdba
ID: 10712874
How do I restart Sendmail?
0
 
LVL 18

Expert Comment

by:liddler
ID: 10712916
/etc/rc2.d/S88sendmail stop
/etc/rc2.d/S88sendmail start
0
 

Author Comment

by:craigdba
ID: 10713001
So should the line look like Dj$mailhost.name.com?
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10713011
no, more like:
Djmailhost.name.com
0
 

Author Comment

by:craigdba
ID: 10713050
In my file it is Djmailhost.name.com still get the same error   Deferred: Name server: mailhost: host name lookup failure
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 10713142
have you defined mailhost.name.com in your DNS or /etc/hosts?
0
 

Author Comment

by:craigdba
ID: 10713170
Yes I have it in /etc/hosts 111.111.111.111 mailhost.name.com mailhost
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11300782
AFAIK sendmail relies on DNS only (except if it could be configured to use /etc/hosts)
my sugestion was "DNS or /etc/hosts" but DNS seems not been tested, not my fault ...
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11341956
Netminder, I'd leave it open if craigdba  returns ...
0
 

Author Comment

by:craigdba
ID: 11341998
I tried but still nothing

0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11342362
ok, starting at the beginning ..
please check what you get for:
    dig mx your-destination-domain
0
 

Author Comment

by:craigdba
ID: 11359713
The command dig does not seem to exist

Cheers
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11359779
start nslookup and give following command:
  ls -t mx <yourdomain.tld>
0
 

Author Comment

by:craigdba
ID: 11359882
Can't list domain domainname: Unspecified error
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11361084
please post /etc/resolv.conf
0
 

Author Comment

by:craigdba
ID: 11361180
what needs to be in here, can you give an example please

Currenlty i have

domain domainname (not fqdn)
nameserver IPADDRESS of domain server
mailhost IPADDRESS of mail server
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 11362393
domain your.domain
nameserver IP
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11863328
PAQed - no points refunded (of 125)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

749 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