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 =,

What have I done wrong?

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

  • 1
    What does "netstat -tlnp" say? Is there any listings for port 25?
    – Bittrance
    Mar 27, 2011 at 0:05
  • No listing, guessing its not starting because of miss configuration.
    – Rudiger
    Mar 27, 2011 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, 2011 at 1:19
  • Nah haven't been able to get it to work yet, think of anything else?
    – Rudiger
    Mar 27, 2011 at 1:30

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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