LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-28-2008, 01:57 AM   #1
maceee
Member
 
Registered: Nov 2008
Posts: 93

Rep: Reputation: 18
Postfix can't telnet 25


I have a little problem with postfix .

I can do telnet to localhost but not from outside. 25 port seems to be closed

Here my configuration from mail.cf:

myhostname = mail.domain.gr
mydomain = domain.gr
myorigin = $mydomain
inet_interfaces = all
local_recipient_maps = proxy:unixasswd.byname $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks = 10.70.36.0/24, 127.0.0.0/8
relay_domains = $mydestination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination

and i have not edit master.cf.

I have check that at 25port runs only postfix with it's daemon only, i have uninstall sendmail.

Surely my ISP doesn't block 25 and surely i have open 25 port to my router.

Also no firewall

Can someone pls help?
 
Old 11-28-2008, 02:01 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you need to explain your network better, it's a big jump from telnetting on lo to blaming an ISP... where's the rest of the LAN? The router configs?
 
Old 11-28-2008, 03:39 AM   #3
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
thank ou for your reply.

as i told i have open port 25 at router.

Surely problem is somewhere at postfix configuration but i really do no know what is missing.

Thank you
 
Old 11-28-2008, 04:28 AM   #4
EhabAhmed
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
first type
$ netstat -tupnl

http://linux.die.net/man/8/netstat

and send me the content at hosts file

if you use the dns whats the configuration for the record mail.domain.gr
and are your sure that the router forwards the packets to your server.
to be sure use tcpdump.

and you need to explain your network more as acid_kewpie told you

Last edited by EhabAhmed; 11-28-2008 at 04:37 AM.
 
Old 11-28-2008, 06:20 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
how about you let *US* decide what is wrong... that's why you're asking surely??
 
Old 11-28-2008, 08:57 AM   #6
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
here from netstat :
tcp 0 0 127.0.0.1:25 0.0.0.0:* LIST

I am MCSE , so i new a little about networking but have no idea from postfix.
I am sure that there is absolutely no problem with port at router or firewall etc.

Mistake has to be somewhere at postfix configuration

thank you
 
Old 11-28-2008, 09:16 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I think you've cut that line off. "LIST" should say "LISTEN" and there should be more after it listing the process that's attached to that port. the config says that is should listen on all interfaces, so if you've restarted the postfix daemon then that should say 0.0.0.0:25 to my knowledge, but it should also say that it is indeed postfix listening.
 
Old 11-28-2008, 09:21 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
That "127.0.0.1:25" means you're only listening on localhost. That needs to say "0.0.0.0:25". Look at the postfix docs for inet_interfaces.
 
Old 12-01-2008, 02:47 AM   #9
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
thank you for the reply.

i have inet_interfaces=all but it keeps listening only at localhost.

Is there any other paremeter?

thank you
 
Old 12-01-2008, 02:50 AM   #10
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
I left uncomment only inet_interfaces=all and now i get this :

tcp 0 0 0.0.0.0:25 0.0.0.0:* LIST

but i still can;t telnet to 25...only to localhost..
 
Old 12-01-2008, 02:58 AM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That's good. Probably a firewall issue. What does "iptables -L -v" show?
 
Old 12-01-2008, 03:44 AM   #12
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
i have close the firewall..
I finally could log in from outside to my smtp with telnet but when i type ehlo domain name it stucks from outside but from inside network when i type ehlo i get response..

it seems like something to block outside connections maybe??

thank you
 
Old 12-01-2008, 03:49 AM   #13
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you trying to connect from 10.70.36.0/24?
 
Old 12-01-2008, 04:11 AM   #14
maceee
Member
 
Registered: Nov 2008
Posts: 93

Original Poster
Rep: Reputation: 18
no..from outside my network...
I did a test user in postfix..i could finally sent message but when they try to reply to me they get 'relay access denied' messsage...

thank you all for your help..

i really appreciate that..
 
Old 12-01-2008, 04:17 AM   #15
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What is you mydestination setting?

Perhaps post the full output of "postconf -n"
 
  


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
postfix allowing mails to send from telnet rakmvk Linux - Server 2 11-10-2008 08:18 AM
postfix started but can't telnet. waelaltaqi Linux - Software 10 02-27-2007 06:08 PM
Cannot telnet postfix on port 25 alivewithtechnology Linux - General 6 08-22-2006 03:23 PM
cannot telnet postfix smtp 25 on external ip slam Linux - Software 4 04-20-2006 03:32 PM
postfix or telnet problem?? hivtop Red Hat 0 04-20-2005 06:47 AM

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

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