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 |
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.
|
|
10-17-2004, 08:21 AM
|
#1
|
Member
Registered: Nov 2003
Posts: 36
Rep:
|
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,
|
|
|
10-17-2004, 08:29 AM
|
#2
|
Member
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472
Rep:
|
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
|
|
|
10-17-2004, 09:09 AM
|
#3
|
Member
Registered: Nov 2003
Posts: 36
Original Poster
Rep:
|
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.
|
|
|
10-17-2004, 09:52 AM
|
#4
|
Member
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472
Rep:
|
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
|
|
|
10-17-2004, 10:10 AM
|
#5
|
Member
Registered: Nov 2003
Posts: 36
Original Poster
Rep:
|
checked
yes I checked the file but there is no entry in it which refers to the wrong server.
|
|
|
10-17-2004, 10:17 AM
|
#6
|
Member
Registered: Nov 2003
Posts: 36
Original Poster
Rep:
|
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?
|
|
|
10-19-2004, 12:09 PM
|
#7
|
Member
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472
Rep:
|
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
|
|
|
10-20-2004, 04:18 AM
|
#8
|
Member
Registered: Nov 2003
Posts: 36
Original Poster
Rep:
|
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!!
|
|
|
10-20-2004, 11:38 AM
|
#9
|
Member
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472
Rep:
|
You welcome !!
-/Hitesh
|
|
|
All times are GMT -5. The time now is 01:16 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
|
|