Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have set up an server running Ubuntu 10.04 and Postfix 2.7 (postfix installed via apt-get). I have an mx record for the domain set up to point to this server as the only mail server for this domain. I have done lookups on the mx record and the fqdn it points to and they both resolve as expected - they were set up over 24 hours ago.

If I telnet to port 25 of my server, I can send mail from the telnet interface and it gets routed as expected, however, if I send mail from an email client, it disappears into the ether - no bounce message to the sender, and the email does not get delivered as expected.

Here are the (I think) pertinent lines from

myhostname =
myorigin = /etc/mailname
mydestination =
relayhost = 
mynetworks = [::ffff:]/104 [::1]/128
inet_interfaces = all
inet_protocols = all

I guess it it worth noting that the while the hostname for the server is set at, the server is actually set to public ip and the a record is for the mx record for which is the domain for which mail is handled, points to

Any suggestions on how to fix the mail delivery problem, and is there a way to generate bounce messages?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

you server is not accessible from the outside:

$ nc 25
(UNKNOWN) [] 25 (smtp) : Connection timed out

Check your firewall.

Also, check the logs in /var/log/

share|improve this answer
Wow - do I feel stupid. I have my ip accepted on all ports by the firewall, and I had an accept rule for all tcp with a tcp source port of 25, changed it to destination port of 25 and it all works fine. –  Scott Feb 23 '11 at 20:35

Your Answer


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.