Email server can receive but not send

Hi, I am a complete beginner and I have worked through a tutorial to setup an email server. I am using ubuntu 8.10 and I have setup an email server using postfix and courier. I have setup my DNS so that mail.codingforrent.com points to both my SMTP and pop3 server (the same machine). I have set up Thunderbird for this account and I can receive email no problem. The problem is when I go to send email I get this error message (from Thunderbird) "The message could not be sent because connecting to SMTP server mail.codingforrent.com failed. The server may be unavailable or is refusing SMTP connections." I can use telnet to access mail.codingforrent.com (on port 25). But, I am not sure why Thunderbird cannot. In addition when I check the logs I do not see any messages of an attempt to send. Does anybody have any ideas of what might be going on?

4 Replies

Is your firewall blocking connections from your home to your linode's port 25? (This is different from telnet'ing from the same machine.)

Does your ISP block port 25? (Many ISP's do. In that case you need to set up Postfix to listen to a different port.)

Your server looks fine to me - I think it is probably your client machine that is causing your problems.

Try disabling any local firewall on the client machine?

Are you telnetting from the client machine, or from the server itself?

P.S. Once you get things working, for security you should consider disabling plaintext auth unless you make a TLS connection:

smtpdtlsauth_only = yes

Authenticated mail submission is typically done on port 587 now, so you should make sure your firewall permits that. A quick test shows that you currently are not allowing connections to 587.

Thanks, the problem was on the client side. Thanks for the help in fixing that. Sorry for the slow response (I am actually on vacation).

Thanks again!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct