Red Hat This forum is for the discussion of Red Hat Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-29-2004, 04:55 AM
|
#1
|
LQ Newbie
Registered: May 2004
Location: UK
Distribution: RedHat Linux Professional Workstation
Posts: 7
Rep:
|
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?
|
|
|
12-29-2004, 06:25 AM
|
#3
|
LQ Newbie
Registered: May 2004
Location: UK
Distribution: RedHat Linux Professional Workstation
Posts: 7
Original Poster
Rep:
|
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?
|
|
|
12-29-2004, 12:23 PM
|
#4
|
Red Hat
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174
Rep:
|
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.
|
|
|
12-29-2004, 12:27 PM
|
#5
|
Member
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 464
Rep:
|
You have to rebuild the sendmail.cf first.
By memory, I believe ->
"m4 sendmail.mc > sendmail.cf"
|
|
|
12-29-2004, 12:59 PM
|
#6
|
Red Hat
Registered: Sep 2003
Location: Raleigh, NC
Distribution: Red Hat Enterprise Linux v 2.1, v 3, v 4
Posts: 174
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|