Koozali.org: home of the SME Server

Mail configuration question

Offline ddougan

  • *
  • 151
  • +0/-0
    • http://www.DouganConsulting.com
Mail configuration question
« on: August 07, 2008, 09:25:02 AM »
I have a client whose email and Web are remotely hosted. I recently installed SME Server, in server/gateway mode, connected to his cable modem (Shaw Cable, in Vancouver).

Subsequently, he has developed problems with email. Initially all he needed to do was point his inbound and outbound mail settings to his domain name. Last week, with no changes having been made on the server, outbound mail stopped working. His hosting company claimed they had changed nothing; however, he is now getting relaying issues. His hosting company does not seem to support SSL connections (God knows why not...).

I therefore pointed his SMTP server to the ISP's mail server (on his Outlook configuration). As I expected, this resolved the problem for all outbound email, except that mail to his domain name (i.e. to others in his company), is being bounced by Shaw. The error message is an SMTP 551 error ("relaying not allowed" is the gist of the message). I have raised a trouble ticket with Shaw, but wanted to tap into the collective wisdom here - is there anything that can be done on the SME Server to resolve this, given that plugging the client's PC directly into the cable modem sees email transmitting correctly to all addresses.

Thanks in anticipation.


Des
Des Dougan

Offline mmccarn

  • *
  • 2,629
  • +10/-0
Re: Mail configuration question
« Reply #1 on: August 07, 2008, 01:11:21 PM »
SME 7, by default, has an "SMTP Proxy" enabled that will swallow all outbound SMTP traffic from LAN clients and then handle delivery. 

If your ISP is blocking outbound traffic on port 25, as I know Cox, Comcast and Earthlink do here in the Washington, DC area, installing a SME will result in no email delivery until you either a) Disable the SMTP Proxy or b) configure the SME server to deliver all email through the ISP's mail server.

In order for the SME to relay through the ISP you may need to configure 'outbound SMTP authentication'.  Without this, many ISPs will give you 'unable to relay' messages.

One more "gotcha": If you gave your SME server the "real" domain for your users, then it will swallow all emails locally, so that email from user1@my.local.domain to user2@my.local.domain will never leave your network - they will be handled internally by the SME server.

So:

* If you want your users to relay email directly through the ISP smtp server, you need to disable the SMTP proxy (server-manager::Security::Proxy settings)

* If you want the SME to intercept all outbound emails, then deliver them to the ISP mail server, you need to correctly configure outbound SMTP authentication (server-manager::Configuration::E-mail::SMTP Authentication for Internet provider) and you need to have your domain names configured correctly in order to get email delivery to behave as you desire.

Hopefully these ideas will give you enough info to proceed; if not, let us know!

[edit]
I just re-read your post, and started wondering if your DNS is healthy?  If you changed something in the DNS it might take up to 3 days to "kick in", which could make resulting problems hard to diagnose.

When checking DNS for a SME network, be sure to check both locally (from the SME server) and remotely (from an external DNS server such as 4.2.2.1) to make sure everyone agrees on what should happen to your traffic...
[/edit]
« Last Edit: August 07, 2008, 01:14:34 PM by mmccarn »

Offline ddougan

  • *
  • 151
  • +0/-0
    • http://www.DouganConsulting.com
Re: Mail configuration question
« Reply #2 on: August 12, 2008, 08:55:16 AM »
Thanks for your reply, and apologies for not getting back sooner - I only heard back today from my client.

The server now has the proxy enabled (it was disabled)  and the server is set to deliver email via the ISP's SMTP server, but the client's mail to his own domain is still failing.
Des Dougan