Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, in our Linux server,DNS is not configured. Hence mailx is not working... When I tried to send the mails, it is not sending the mails to the recipient address.. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    May 2012
    Posts
    110

    mailx not working on Linux,Help needed...Please..?


    Hi,

    in our Linux server,DNS is not configured.

    Hence mailx is not working...

    When I tried to send the mails, it is not sending the mails to the recipient address..

    what can be done ?

    Any solution please...



    $ sendmail -q -v
    WARNING: local host name (japan) is not qualified; see cf/README: WHO AM I?

    Running /var/spool/mqueue/p61FPoll003674 (sequence 1 of 1)
    japan: Name server timeout
    <root@japan>... Transient parse error -- message queued for future delivery
    japan: Name server timeout
    japan: Name server timeout
    <root@japan>... Transient parse error -- message queued for future delivery



    1.) How to delete the mail queue ?

    2.) What is FQDN ?


    Regards,
    Aparna.

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    913
    Generally, in RHEL you have to specificy the DNS manually if you're not using DHCP. If your gateway is a router or configured for it, that is an acceptable IP to use for DNS. Or, you can use whatever DNS your environment is using. If you don't have DNS in your environment, you can always point to a free dns such as 8.8.8.8, which is Google's public DNS.

    You can use the system-config-network utility to make these changes. I'm not sure if the changes will survive a reboot or not if you're using DHCP.
    Also, make sure your /etc/hosts.conf file is set to allow DNS lookups. Mine says:
    multi on
    order hosts,bind

    An FQDN is a full-qualified-domain-name. Such as server1.mydomain.com

  3. #3
    Just Joined!
    Join Date
    Sep 2012
    Location
    India
    Posts
    29
    Hi,

    in our Linux server,DNS is not configured.Hence mailx is not working...
    mailx works for local users even if dns is not configured, for that you should have sendmail configured properly

    mail username@localhost or username@ipaddress

    If DNS is configured then you can send mail for users on remote machine using domain name ,, also you can use ipaddress for it

    Any solution please...
    if sending mail on local host
    mailx will work

    if remote host
    configure DNS

    1.) How to delete the mail queue ?
    Go to location /var/spool/mqueue and delete or you can tools

    2.) What is FQDN ?
    fully qaulified domain name

    Best Wishes
    Nikhil Shinde

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •