LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-04-2010, 12:14 AM   #1
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Apache and smtp


Hi friends,
I have a LAMP server in my workplace, other clients (used by developers) are accessing it to save their projects in the server.
There is no sendmail configured in any of the systems including server, but I recently found that whenever a client is testing the mail sending function means they are sending mails using web pages they have created (e.g, submitting forms), the mails are actually delivering successfully.

If sendmail is not configured then how this is happening? Can apache send mails like that without sendmail support?
This is something new to me, and want your help to understand whats actually happening.

The recieved mail information is given below:

Quote:
Received: by x.x.x.x with SMTP id v27mr2384575wah.227.1267437927456;
Mon, 01 Mar 2010 02:05:27 -0800 (PST)
Return-Path: <apache@localhost.localdomain>
Received: from localhost.localdomain ([x.x.x.x])
by mx.google.com with ESMTP id 6si25603938pzk.15.2010.03.01.02.04.56;
Mon, 01 Mar 2010 02:05:27 -0800 (PST)
Received-SPF: neutral (google.com: x.x.x.x is neither permitted nor denied by best guess record for domain of apache@localhost.localdomain) client-ip=x.x.x.x;
Authentication-Results: mx.google.com; spf=neutral (google.com: x.x.x.x is neither permitted nor denied by best guess record for domain of apache@localhost.localdomain) smtp.mail=apache@localhost.localdomain
Received: from apache by localhost.localdomain with local (Exim 4.69)
(envelope-from <apache@localhost.localdomain>)
id 1NlytS-0002Gr-HX
for dd@dd.com; Mon, 01 Mar 2010 11:44:15 +0530
To: dd@dd.com
Subject: Auto Trade Place Website Visitor.
MIME-Version: 1.0
Content-Type: text/html; charset="ISO-8859-1"
From: abc@rediffmail.com
Content-Transfer-Encoding: 7bit
Message-ID: <kylano.1jrge@192.168.1.83>
Sender: Apache <apache@localhost.localdomain>
Date: Mon, 01 Mar 2010 11:44:14 +0530

<html><body><p>This is a new mail from website visitor.</p><p>Name: Koustav Pal<br></p><p>City: Kolkata</p><p>State: WB<br></p><p>Phone: 0338686<br></p><p>email: abc@rediffmail.com</p><p>comment: hiii<br></p>Thank you. <br></body></html>

Thanks.............

Last edited by Sayan Acharjee; 03-04-2010 at 12:16 AM.
 
Old 03-04-2010, 03:18 AM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Try connecting to port 25 on your server using telnet. The output might help you to learn what process is running there:-
Code:
2.6.18-164.11.1.el5.centos.plus[ian@www ~]$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 www.example.com ESMTP Postfix
^]
telnet> quit
Connection closed.
As you can see, I have Postfix running on that port, not sendmail.

You can also use nmap and netstat to see what ports are open and the processes bound to them.
 
Old 03-04-2010, 03:34 AM   #3
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Original Poster
Rep: Reputation: 64
@blacky_5251, I tried connecting to port 25 using telnet but it froze like this:
Quote:
[root@localhost ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost.localdomain ESMTP Exim 4.69 Thu, 04 Mar 2010 14:58:48 +0530
|
And when I checked netstat output I found this entry:
Quote:
tcp 0 0 localhost.localdomain:55728 localhost.localdomain:smtp ESTABLISHED
So it seems smtp port is open and working, but does it mean the server is working as a SMTP server right now?
What I need to do to disable smtp??
 
Old 03-04-2010, 03:42 AM   #4
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
You have Exim running, so you need to stop it from running, and disable it from starting when your server boots. I don't and haven't used Exim, so I'm not certain what the specific instructions will be to stop it and prevent it from restarting.

If you were running a RHEL based system, I would tell you to look in /etc/init.d for a script that controls Exim (let's says it is called eximd - just for our purposes here). Then you would use these commands to stop it and prevent it from restarting:-
Code:
service eximd stop
chkconfig eximd off
Your commands might be different - depending on your distro

Hope that gets you started on the trail.
 
Old 03-04-2010, 03:51 AM   #5
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Original Poster
Rep: Reputation: 64
I found the service named exim in /etc/inid.d, I din't know about this MTA
So I stopped it and found smtp server is now stopped.
And by the way, I'm using fedora 9
Thanks for your help................have a great day
 
  


Reply



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
smtp proxy filter to external isp smtp leandronf Linux - Server 2 02-01-2010 04:42 AM
PHP SMTP connection to gmail SMTP protocol violation ratcateme Programming 9 02-23-2009 03:58 AM
smtp auth with sendmail through smtp.sbcglobal.yahoo.com woodson2 Fedora 0 10-23-2008 02:55 PM
Binding SMTP service into IP tables, and redirecting SMTP to port 366 bamquest6 Linux - Software 1 09-24-2008 02:48 AM
can I use sendmail for SMTP instead of my ISP's SMTP server? fcdev Linux - Networking 1 02-05-2007 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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