LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-29-2004, 04:55 AM   #1
ipcn
LQ Newbie
 
Registered: May 2004
Location: UK
Distribution: RedHat Linux Professional Workstation
Posts: 7

Rep: Reputation: 0
Sendmail doesnt actually send mail


Okay,

I have struggled with sendmail for long enough now, it's time I got some help

When I try to send mail using a PHP script on the default RH EL 3 Setup, the mail just gets stuck in the queue (sendmail -bp), with "Deferred, host name lookup failed".

Why? Can anyone shed some light on this?
 
Old 12-29-2004, 06:16 AM   #2
qazzaq
LQ Newbie
 
Registered: Dec 2004
Distribution: fedora core 2
Posts: 19

Rep: Reputation: 0
I found this very useful when I had the same problem: http://www.fraw.org.uk/cltc/document...tc-doc-04.html
 
Old 12-29-2004, 06:25 AM   #3
ipcn
LQ Newbie
 
Registered: May 2004
Location: UK
Distribution: RedHat Linux Professional Workstation
Posts: 7

Original Poster
Rep: Reputation: 0
I'm not 100% sure on the way that works.

It givesw loads of default IP addresses, but i'm not sure what I should put instead...

Also, will this allow me to send mail OUT of the system?
 
Old 12-29-2004, 12:23 PM   #4
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Rep: Reputation: 30
Have you changed your default sendmail configuration? If not you may want to check out the following line in the /etc/mail/sendmail.mc file:

dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

and comment it out with:

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Then restart sendmail:

service sendmail restart

Please let me know if this works.
 
Old 12-29-2004, 12:27 PM   #5
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464

Rep: Reputation: 52
You have to rebuild the sendmail.cf first.

By memory, I believe ->
"m4 sendmail.mc > sendmail.cf"
 
Old 12-29-2004, 12:59 PM   #6
jhibbets
Red Hat
 
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174

Rep: Reputation: 30
Yes, I forgot that part. the .mc file says the following at the beginning:

dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # make -C /etc/mail

So after you update the sendmail.mc file, run the following:
make -C /etc/mail

Also, make sure you have the following packages installed:
sendmail
sendmail-cf

check with
# rpm -qa | grep sendmail
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail - will not send mail ekrumm Linux - Software 1 08-15-2005 12:23 PM
Using sendmail to send mail from your ISP nrmx Linux - Software 2 12-16-2004 01:43 PM
Can't send mail with Sendmail familyman Linux - Software 3 09-15-2004 11:30 AM
sendmail doesnt send mails spank Linux - Newbie 12 01-07-2004 03:31 PM
sendmail can send mail but not receive exper Linux - Software 0 12-02-2003 05:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration