LinuxQuestions.org
Visit Jeremy's Blog.
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 12-01-2004, 09:48 PM   #1
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Rep: Reputation: 15
not able to send mail using postfix


Hello everybody,

i'm running postfix on mandrak 10.
basically its a default install.

i'm able to send email but not receive.
i'm not sure where the problem is and could use some help... read 100s of documents and still no go.. i have a feeling it has something to do with smtp.

i tested port 80 telnet xxx.xxx.xxx.xxx. 80 and it displayd my webpage.
i did the same with port 25 and telnet seem to hang for some reason.
any ideas?
i not exp. in linux but i'm assuming smtp is working.

# netstat -t -a | grep LISTEN
tcp 0 0 www.example.ca:http *:* LISTEN
tcp 0 0 www.example.ca:smtp *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN


postfix seems to start without any error messages
# postfix reload
ostfix/postfix-script: refreshing the Postfix mail system
#
what am i doing wrong
1. if there was a problem with smtp would i be able to send mail.
2. not sure but if i was to telnet to port 25 locally, would that effect the outcome wheather my isp blocked the port or not(telnet localhost 25)?

any ideas would greatly appreciated
 
Old 12-02-2004, 10:25 AM   #2
severian23
Member
 
Registered: Jan 2003
Location: Stone Mountain, GA
Distribution: Currently: RHEL/Centos 5.x-6.x servers, Mint Desktop
Posts: 41

Rep: Reputation: 15
Re: not able to send mail using postfix

Quote:
Originally posted by Robin01
Hello everybody,

i'm running postfix on mandrak 10.
basically its a default install.

i'm able to send email but not receive.
i'm not sure where the problem is and could use some help... read 100s of documents and still no go.. i have a feeling it has something to do with smtp.

i tested port 80 telnet xxx.xxx.xxx.xxx. 80 and it displayd my webpage.
i did the same with port 25 and telnet seem to hang for some reason.
any ideas?
i not exp. in linux but i'm assuming smtp is working.

# netstat -t -a | grep LISTEN
tcp 0 0 www.example.ca:http *:* LISTEN
tcp 0 0 www.example.ca:smtp *:* LISTEN
tcp 0 0 localhost:smtp *:* LISTEN


postfix seems to start without any error messages
# postfix reload
ostfix/postfix-script: refreshing the Postfix mail system
#
what am i doing wrong
1. if there was a problem with smtp would i be able to send mail.
2. not sure but if i was to telnet to port 25 locally, would that effect the outcome wheather my isp blocked the port or not(telnet localhost 25)?

any ideas would greatly appreciated
It depends on how you used your telnet and your network configuration. ..exactly how what command did you try to telnet with and what was your response?
Check your main.cf postfix file (/etc/postfix/main.cf) and look at your inet_interfaces parameter, what is it set to?
Do you have your /etc/hosts file set correctly?
 
Old 12-02-2004, 08:18 PM   #3
Robin01
Member
 
Registered: Aug 2003
Posts: 104

Original Poster
Rep: Reputation: 15
thanks for getting back to me.

1. basically i ran telnet locally (tried it 2 ways) from mandrake terminal
telnet localhost 25 and telnet 192.168.2.4 25 and both hung, i couldn't even escap.

2. my etc/hosts has the following:
127.0.0.1 localhost
192.168.2.4 www.example1.ca example1
192.168.2.4 localhost dbmanager
192.168.2.4 localhost testpage
192.168.2.4 www.example2.ca example2

3. in the main.cf inet_interface all.
side note i am hosting a webpage and it does work.

if it is a firewall issue this is what i have in the shorewall/rules

###################################################################################################
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER
# PORT PORT(S) DEST LIMIT
ACCEPT net fw udp 137,138,139 -
ACCEPT net fw tcp 80,443,22,25,109,110,143,137,138,139,23 -

HELP!!!!
 
Old 12-03-2004, 08:30 AM   #4
severian23
Member
 
Registered: Jan 2003
Location: Stone Mountain, GA
Distribution: Currently: RHEL/Centos 5.x-6.x servers, Mint Desktop
Posts: 41

Rep: Reputation: 15
Ok, when you say you ran telnet and they both hung, what exactly happened? Did you hit ENTER after your telnet command and nothing came up at the prompt? Did it say connected or anything before it hung? Usually you will either get refused or it will sit there till it gives up OR it will say connected.
 
Old 12-28-2007, 04:41 PM   #5
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 81
How can I send an email using telnet and my mail server including my name. For example.

Code:
chris@ubuntu:~$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 ubuntu ESMTP Postfix (Ubuntu)
HELO server.com
250 ubuntu
MAIL FROM: Chris F. <username@gmail.com>
555 5.5.4 Unsupported option: F.
MAIL FROM: Chris <username@gmail.com>
555 5.5.4 Unsupported option: <username@gmail.com>
MAIL FROM: Chris username@gmail.com
555 5.5.4 Unsupported option: username@gmail.com
MAIL FROM: "Chris user@gmail.com"    
250 2.1.0 Ok
MAIL FROM: "Chris F. user@gmail.com"
503 5.5.1 Error: nested MAIL command

Last edited by fakie_flip; 12-28-2007 at 04:53 PM.
 
  


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 - cannot send e-mail abapdr Linux - Software 13 08-13-2013 06:47 AM
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 10:12 PM
Postfix able to send but not receive mail :( !! Ikik Linux - General 10 01-28-2004 08:40 PM
Postfix will not send mail antken Linux - Networking 1 10-05-2003 07:28 PM
what does postfix use to send mail? ShawnD Linux - Software 0 08-31-2002 05:21 AM


All times are GMT -5. The time now is 01:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration