LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   not able to send mail using postfix (https://www.linuxquestions.org/questions/linux-software-2/not-able-to-send-mail-using-postfix-261537/)

Robin01 12-01-2004 08:48 PM

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

severian23 12-02-2004 09:25 AM

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?

Robin01 12-02-2004 07:18 PM

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!!!!

severian23 12-03-2004 07:30 AM

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.

fakie_flip 12-28-2007 03:41 PM

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



All times are GMT -5. The time now is 08:01 AM.