LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix running but not responding (https://www.linuxquestions.org/questions/linux-server-73/postfix-running-but-not-responding-645799/)

CoolCow 05-30-2008 05:47 AM

Postfix running but not responding
 
I'm new to this forum, so first off: Hi to all!

I've managed to install Apache + PHP + mysql + postfix on a Redhat Enterprise server.

Everything works except for postfix. The tutorial i used for postfix is this one.

The problem:
When i try "telnet localhost smtp" i get this:
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

As you can see telnet connects, but the server doesn't awnser with a 220 message (e.g. 220 servername ESMTP Postfix)

Ignoring that i tried to "ehlo host" and that doesn't do anything eighter. As a matter of fact the server doesn't respond to anything i type, not even "quit"...

So what's wrong here?

ilikejam 05-30-2008 06:25 AM

Hi.

Do you get the same with 'telnet localhost 25'?
What do you get from 'netstat -pantu | grep 25' as root?

Dave

CoolCow 05-30-2008 06:56 AM

Yes, i get the same output on port 25.

The netstat:
Code:

netstat -pantu | grep 25
tcp        0      0 127.0.0.1:25                0.0.0.0:*                  LIST                          EN      17357/master
tcp      16      0 127.0.0.1:25                127.0.0.1:37163            CLOS                          E_WAIT  -
tcp      21      0 127.0.0.1:25                127.0.0.1:59485            CLOS                          E_WAIT  -
tcp      63      0 127.0.0.1:25                127.0.0.1:59486            CLOS                          E_WAIT  -
tcp      63      0 127.0.0.1:25                127.0.0.1:59487            CLOS                          E_WAIT  -
tcp      33      0 127.0.0.1:25                127.0.0.1:43917            CLOS                          E_WAIT  -
tcp      29      0 127.0.0.1:25                127.0.0.1:55951            CLOS                          E_WAIT  -
tcp      63      0 127.0.0.1:25                127.0.0.1:55952            CLOS                          E_WAIT  -
tcp      98      0 127.0.0.1:25                127.0.0.1:43748            CLOS                          E_WAIT  -
tcp      107      0 127.0.0.1:25                127.0.0.1:34547            CLOS                          E_WAIT  -

Edit:
I forgot to tell that sending mails works.
I've installed the postfixadmin script and sent a mail through that and it was delivered.

Dudydoo 05-30-2008 07:52 AM

I've had this before with postfix, but I'm now racking my brains to remember what it was :-)

I'm sure it's probably a configuration problem. I'll reply again when/if I remember.

Meanwhile, check /var/log/mail.log for any errors on postfix startup.

CoolCow 05-30-2008 08:33 AM

Logfiles, why do i always forget about them :scratch:

logfile said:
fatal: open database /etc/postfix/aliases.db: No such file or directory

Logic error since aliases.db is located in /etc/aliases.db...

Like you said, configuration problem...

Dudydoo 05-30-2008 09:01 AM

Code:

# /usr/sbin/postalias /etc/posfix/aliases


All times are GMT -5. The time now is 05:36 PM.