Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 672
  • Last Modified:

Mailx is not working

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
craigdba
Asked:
craigdba
  • 10
  • 10
  • 2
  • +2
1 Solution
 
mdhmiCommented:

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
 
ahoffmannCommented:
could you please post result of:
  mailx -V
from both, working and not working server
0
 
liddlerCommented:
Also a log of
mailx -v -v <valid email address>
on both machines
0
Independent Software Vendors: 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!

 
craigdbaAuthor Commented:
mailx version 5.0 on both machines
0
 
craigdbaAuthor Commented:
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
 
ahoffmannCommented:
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
 
craigdbaAuthor Commented:
How do I restart Sendmail?
0
 
liddlerCommented:
/etc/rc2.d/S88sendmail stop
/etc/rc2.d/S88sendmail start
0
 
craigdbaAuthor Commented:
So should the line look like Dj$mailhost.name.com?
0
 
ahoffmannCommented:
no, more like:
Djmailhost.name.com
0
 
craigdbaAuthor Commented:
In my file it is Djmailhost.name.com still get the same error   Deferred: Name server: mailhost: host name lookup failure
0
 
ahoffmannCommented:
have you defined mailhost.name.com in your DNS or /etc/hosts?
0
 
craigdbaAuthor Commented:
Yes I have it in /etc/hosts 111.111.111.111 mailhost.name.com mailhost
0
 
ahoffmannCommented:
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
 
ahoffmannCommented:
Netminder, I'd leave it open if craigdba  returns ...
0
 
craigdbaAuthor Commented:
I tried but still nothing

0
 
ahoffmannCommented:
ok, starting at the beginning ..
please check what you get for:
    dig mx your-destination-domain
0
 
craigdbaAuthor Commented:
The command dig does not seem to exist

Cheers
0
 
ahoffmannCommented:
start nslookup and give following command:
  ls -t mx <yourdomain.tld>
0
 
craigdbaAuthor Commented:
Can't list domain domainname: Unspecified error
0
 
ahoffmannCommented:
please post /etc/resolv.conf
0
 
craigdbaAuthor Commented:
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
 
ahoffmannCommented:
domain your.domain
nameserver IP
0
 
moduloCommented:
PAQed - no points refunded (of 125)

modulo
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 10
  • 10
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now