Sendmail - Mailq Errors

Discussion in 'Server Operation' started by tech_paul, Feb 18, 2010.

  1. tech_paul

    tech_paul New Member

    Hi,

    I have sendmail configured on a CentOS linux machine using scalix and I am finding alot of the following error messages in the mailq:

    -> Deferred: ntvirus3.mitts.net.: No route to host
    -> Transient parse error -- message queued for future delivery
    -> Deferred: Connection timed out with peakings.com.

    Can someone please explain to me what these errors mean? And how can I resolve them (if any)?

    Thanks in anticipation for your help.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Do you use working DNS servers in /etc/resolv.conf? What's the output of
    Code:
    ping -c4 google.com
    ?

    Any errors in your mail log?
     
  3. tech_paul

    tech_paul New Member

    This result is as follows:

    [root@mail mail]# ping -c4 google.com
    PING google.com (209.85.129.99) 56(84) bytes of data.
    64 bytes from fk-in-f99.1e100.net (209.85.129.99): icmp_seq=1 ttl=55 time=78.2 ms
    64 bytes from fk-in-f99.1e100.net (209.85.129.99): icmp_seq=2 ttl=55 time=78.9 ms
    64 bytes from fk-in-f99.1e100.net (209.85.129.99): icmp_seq=3 ttl=55 time=84.4 ms
    64 bytes from fk-in-f99.1e100.net (209.85.129.99): icmp_seq=4 ttl=55 time=78.4 ms

    --- google.com ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 2999ms
    rtt min/avg/max/mdev = 78.247/79.995/84.410/2.560 ms

    Yes the dns in /etc/resolv.conf are good because I can send emails to other addresses. I have added temporary entries in /etc/hosts but this is not that good since if the IP for the domain changes, it would fail again.

    Do you have any suggestions what can I do please?

    Thanks in advanced.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Does it work with these changes?
     
  5. tech_paul

    tech_paul New Member

    Yes it seems to work (or at least they are not in the mailq) after I've done this change, but I think there is a better solution for this that I don't know about it. As you definitely know this is not a guaranteed solution.

    What do you think please?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Then there seems to be a problem with your nameservers in /etc/resolv.conf.
    Can you add
    Code:
    nameserver 8.8.8.8
    (Google nameserver)
    as the first line in /etc/resolv.conf and see if it works then (without the changes in /etc/hosts)?
     

Share This Page