LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2004, 08:21 AM   #1
fledermaus
Member
 
Registered: Nov 2003
Posts: 36

Rep: Reputation: 15
Angry sendmail M4 config problem


hi there,

I really hope someone can help me out here, it would help me a lot!! I have a red hat linux 9 server up and running since long time and it is doing fine. But the problem is this:

if I try to use php-scripts to send out an email, the program still uses the old relay server of my provider. So I need to change the servername in the sendmail.mc file. Then, using M4, I need to recompile the mc file to sendmail.cf. And there is the problem... :-(

When trying to do that, M4 gives an error that it cannot find those file (no such file or directory). When I go and check the configuration of M4, it says the following (using webmin):

The Sendmail M4 configuration base directory /etc/mail/ was not found on your system, or is not the correct directory. Maybe it has not been installed (common for packaged installs of Sendmail), or the module config is incorrect.

Using apt-get I reinstalled the whole M4 module over and over again and it says it is installed correctly. But it aint working...

My question: where and how can I change the relay-server that sendmail uses and/or how can I make that M4 thing work properly?

I really thank you for your time helping me out here,

kind regards,
 
Old 10-17-2004, 08:29 AM   #2
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
Hi,

What is sendmail services status?

run this command.

# service sendmail status

Also, try reinstalling sendmail rpm and check. to install sendmail rpm visit the following link

http://www.rpmfind.net//linux/RPM/re...9.90.i386.html

why don't you try with "qmail". it's a fatser MTA. I am using qmail and it's ruing nicely.

visit the : http://lifewithqmail.org

Hope this helps.

-/Hitesh
 
Old 10-17-2004, 09:09 AM   #3
fledermaus
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
qmail

running the command gives me following answer:

sendmail (pid 5564 5555) is running...

So, actually, I use the sendmail function with my forum (phpbb) and that is working fine. In the forum, I can use the mass mail function to send email and that works.

Actually, I think that somewhere in the apache module the wrong server is specified but I cant figure out where I can change it (if it is in apache). Why do I think apache is involved? Well, this is the error in the sendmail status:

qfi9F8r2GU013117 Fri, 15 Oct 2004 10:53:02 Apache <apache@myserver.com> my@mailaddress.com 1 kB
Deferred: Connection timed out with wrong.smtp.server

I renamed the fields myserver.com and also the mailaddress and wrong smtp server.
 
Old 10-17-2004, 09:52 AM   #4
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
humm..

have u check under /etc/httpd/conf/http.conf file. if u have setup "ServerName" and email address under http.conf file, then try restart httpd service and check. you will need apache to resolve html pages.

# service httpd restart

hope this helps.

-/Hitesh
 
Old 10-17-2004, 10:10 AM   #5
fledermaus
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
checked

yes I checked the file but there is no entry in it which refers to the wrong server.
 
Old 10-17-2004, 10:17 AM   #6
fledermaus
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
qmail

actually I want to find out where that wrong.smtp.server is. I do however consider qmail as being an option, but how does it works? Does it replace the sendmail thing or is it just something else running next to sendmail?
 
Old 10-19-2004, 12:09 PM   #7
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
The reason you are seeing this message( wrong SMTP server) is because the ISP is not accepting your account information. Most ISP’s, or Mail Servers, will not allow relaying, this is a setting within the Mail Server itself. If you do not have an account with the Mail Server for sending mail then you will get this message. If you get this message on a client computer then you will need to contact your ISP and ask them to add your account to the trusted domain for SMTP mail. If this is not possible, you maybe using the wrong SMTP server within your account.

Yes, you can use qmail as MTA. it's realy fast then sendmail. just visit this link where you will all info about qmail.

http://lifewithqmail.org/lwq.txt

1.2. What is qmail?
-------------------

qmail is an Internet Mail Transfer Agent (MTA) for UNIX-like operating
systems. It's a drop-in replacement for the Sendmail system provided
with UNIX operating systems. qmail uses the Simple Mail Transfer
Protocol (SMTP) to exchange messages with MTA's on other systems.

Note: The name is "qmail", not "Qmail".

1.3. Why use qmail?
-------------------

Your operating system included an MTA, probably Sendmail, so if you're
reading this document you're probably looking for something better.
Some of the advantages of qmail over vendor-provided MTA's include:

-/Hitesh
 
Old 10-20-2004, 04:18 AM   #8
fledermaus
Member
 
Registered: Nov 2003
Posts: 36

Original Poster
Rep: Reputation: 15
qmail

ok, I will try to install qmail instead of sendmail. But no time today. However, I will keep you informed and thanks for the information!!
 
Old 10-20-2004, 11:38 AM   #9
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
You welcome !!

-/Hitesh
 
  


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 config error: mail loops back to me (MX problem?) /jhannus Slackware 6 06-21-2011 05:44 AM
Sendmail - Config for IP Block's & Config Issues Thom_Redhat Linux - Software 1 04-07-2006 01:29 PM
Sendmail config ericthyred Linux - Software 7 04-15-2004 06:51 AM
sendmail config problem JakeS Linux - Software 1 10-01-2003 11:29 AM
sendmail config - please help! te_conway Linux - Newbie 6 01-19-2002 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:16 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