LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2004, 07:17 PM   #1
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Rep: Reputation: 15
port 25 issue wiht postfix-email


Hello everybody,

I'm having problems receiving email to my email server. I'm able to send mail to my yahoo account but from yahoo i'm not able to receive email...

since i'm able to send email i'm assuming smtp port 25 is open...

so any ideas to why i cann't receive email..

i should also added, when i telnet x.x.x.x 80 it seems to be accessing the webpage.. but when i try telnet x.x.x.x 25 no connection is found.
is this mean that the port 25 isn't open...on the other hand, it is sending the emial..

any ideas....

if port isn't open, how can i emable the port...
using mandrak 9.2
postfix as my emial server...
 
Old 01-09-2004, 08:38 PM   #2
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
just because you're able to send mail doesn't mean that you can recieve. Think of it this way. When you send a message out, you connect to the other computer and (for lack of a better word) push the data to it. There would be no reason for you to have an open port. They never connect to you during a send, you connect out.

I'm not completely used to Mandrake, but I'll assume its close to redhat. First you said that you can't telnet to port 25, which means that postfix isn't running. You'll need to start it.
Code:
[root@Tux root]# /etc/rc.d/init.d/postfix start
That should start it. There's more to configuring it tho. You'll need to setup an MX record on a dns server to point to the machine, and configure postfix to accept only mails for that specific domain and not relay. OPEN RELAYS ARE BAD!!!

If you need more help don't be afraid to ask.

Last edited by Khabi; 01-09-2004 at 08:39 PM.
 
Old 01-09-2004, 09:19 PM   #3
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Original Poster
Rep: Reputation: 15
thanks for the reply..

i should have added this in the original posting but i did make sure that postfix was running by issuing the following command.. postfix reload...

when i did the telneting i did it from my win2k machine going into my linux box...

is there any other way to confirm if smtp is running or not on port 25..
 
Old 01-09-2004, 09:27 PM   #4
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
you can run netstat -apn | grep 25
you'll see a line like this.

[root@backup root]# netstat -apn | grep 25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1551/master
 
Old 01-10-2004, 09:03 AM   #5
Linux_in_NH
Member
 
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105

Rep: Reputation: 15
Have you tried reviewing your log files to see what they say? On Mandrake, they should be in /var/log/mail. Look at the info and errors files in particular.

Also, ensure that postfix is running by executing 'ps -aef|grep postfix' and see what processes are there
(should be at least half a dozen or so)
 
Old 01-11-2004, 06:39 PM   #6
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Original Poster
Rep: Reputation: 15
problem still remains..
able to send email but not receive emial
tried telneting to my linux box from my windows 2000 box and its not connectiong.
linux box(192.168.2.4)
from windows 2000 machine --> telnet 192.168.2.4 80 works

from windows 2000 machine --> telnet 192.168.2.4 25 ---> displays the message not able to connect /lost connection


netstate –apn | grep 25
tcp 0 0 127.0.0.1:25 0.0.0.0 listen 1460/master
unix 12 [ ] dgram 2824 2802/syslogd /dev/log
unix 2 [ ] dgram 78879 25281/pickup
unix 3 [] stream connected 50525 1460/master

ps aef | grep postfix
root 1460 1 0 Jan07 ? 00:00:00 /usr/lib/postfix/master
postfix 27294 1460 0 16:40 ….
Postfix 28229 1460 …....

lost for ideas...
 
Old 01-11-2004, 07:45 PM   #7
Linux_in_NH
Member
 
Registered: Jan 2004
Location: NH
Distribution: Mandrake, Geentoo, Ubuntu
Posts: 105

Rep: Reputation: 15
Based on the netstat information that you provided, postfix is currently only listening on the localhost address (127.0.0.1).

Look through the main.cf file for the line:

inet_interfaces = ????

and ensure that it says either

inet_interfaces = all

or

inet_interfaces = $myhostname


After changing, you will need to stop, then start (not reload) postfix and all should be fine.
 
  


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
Postfix Email Question jthompson9999 Linux - Newbie 3 02-03-2005 07:11 PM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 05:43 AM
relying to email using postfix zeagle Linux - Newbie 1 09-14-2004 06:47 PM
Is Postfix an Email Server? Gib Sandwich Linux - Software 6 08-24-2004 03:23 AM
Postfix - Read Email ejennings_98 Linux - Software 4 11-08-2003 04:32 PM


All times are GMT -5. The time now is 04:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration