Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've recently setup postfix on my server, I'm receiving mail from localhost but not from the outside nor can I send, doing a port scan says that there is nothing listening on port 25 and I've checked and its not a firewall issue.

I think its a problem with my config in main.cf. I've followed the walkthrough at enter link description here but still think I've got something wrong. Here are the settings I've changed:

myhostname = local-server.local
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 10.0.1.0/8, 127.0.0.0/8

What have I done wrong?

Edit: netstat -tlnp brings up: tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 15970/master

share|improve this question
1  
What does "netstat -tlnp" say? Is there any listings for port 25? –  Bittrance Mar 27 '11 at 0:05
    
No listing, guessing its not starting because of miss configuration. –  Rudiger Mar 27 '11 at 0:20
    
Sorry stuffed up, localhost is listening on port 25. Gives me an idea so I'll have a look. –  Rudiger Mar 27 '11 at 1:19
    
Nah haven't been able to get it to work yet, think of anything else? –  Rudiger Mar 27 '11 at 1:30

1 Answer 1

up vote 0 down vote accepted

K, this was rather stupid, added this line

inet_interfaces = all

But forgot to remove / comment out this line:

#inet_interfaces = localhost

Commenting out fixed it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.