Find the answer to your Linux question:
Results 1 to 5 of 5
I'm trying to get sendmail working so I can test out mail functions in PHP. I've got it installed and running and it is receiving the mail requests... However it's ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    2

    sendmail won't send


    I'm trying to get sendmail working so I can test out mail functions in PHP. I've got it installed and running and it is receiving the mail requests... However it's not sending anything. Here's a log from the mail log:

    Code:
    May 16 17:05:37 [sendmail] gethostbyaddr(192.168.0.125) failed: 1
    I'm pretty sure that's holding it up, especially since the following is a running process:

    Code:
    26718 ?        S      0:00 sendmail: ./l4HNqkXr025759 gmail-smtp-in.l.google.com.: user open
    Never gets sent, never arrives in my GMail inbox...

  2. #2
    Linux User DOllaBillz217's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    263
    This means that the firewall could not find the listed address.
    If that machine is in your domain then you need to make sure that
    you have the appropriate DNS records for it. Try nslookup to see
    if you could get the address resolved.
    $Billz

    How much wood would a wood chuck chuck if a wood chuck could chuck wood? None they eat plants!

    Dell Optiplex GX260, LTSP Diskless Workstation, Fedora Core 6

  3. #3
    Just Joined!
    Join Date
    May 2007
    Posts
    2
    How exactly do I do that?

  4. #4
    Linux User DOllaBillz217's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    263
    You use nslookup. nslookup <ip address> returns the resolved name. You need a host file that points that hostname to that IP address. You basically just need to set up your DNS correctly. Do a man on nslookup for additional options or use <Linux> - Google Search to help you out. There are better how-tos explaining this than myself explaining it. I tend to loose people when trying to explain something in detail
    $Billz

    How much wood would a wood chuck chuck if a wood chuck could chuck wood? None they eat plants!

    Dell Optiplex GX260, LTSP Diskless Workstation, Fedora Core 6

  5. #5
    Linux Newbie theNbomr's Avatar
    Join Date
    May 2007
    Location
    BC Canada
    Posts
    155
    You might be successful by simply putting an entry for the host '192.168.0.125' in the sendmail host's /etc/hosts file. That may be sufficient to satisfy the reverse lookup.

    --- rod.
    Stuff happens. Then stays happened.

Posting Permissions

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