Koozali.org: home of the SME Server

Outgoing mail relay denied from within the local network

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Outgoing mail relay denied from within the local network
« on: March 14, 2009, 12:56:26 PM »
I have a strange problem with outgoing mail on my system in that in some cases the system refuses to accept mail to send with the reason relaying denied.

From my workstation, I use Thunderbird mail without problems. However, I recently aquired one of those smart phones with Wifi capability and even though it can access the mail with IMAP and browse the web etc. the server is refusing to accept mail for sending (the qpsmtpd log says relay denied), even though the unit is on the network with a local IP. It does not make a difference if SMTP access is with or without security. I have a similar problem with a web application I am developing that I was trying to test locally on my workstation (were Thunderbird is working) and the mail sending was also refused with the relay denied error.

What can be the issue here?

Marco 
« Last Edit: March 14, 2009, 12:58:56 PM by Marco Hess »
Adelaide - Australia

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Outgoing mail relay denied from within the local network
« Reply #1 on: March 14, 2009, 02:42:38 PM »
Is your smartphone configured to use the LAN IP for outbound SMTP, or the WAN IP?

For laptops and mobile phones, I do this:

1) Enable smtp authentication from the LAN as described at http://wiki.contribs.org/Email#How_do_I_enable_smtp_authentication_for_users_on_the_internal_network

2) setup DNS so that I can get to my SME server with the same name from both inside and outside the network

3) Configure mobile devices to use smtp authentication over ssl on port 465, using the DNS name for the SME server

This sometimes gives me trouble due to my SME server's self-signed certificate...


Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: Outgoing mail relay denied from within the local network (solved)
« Reply #2 on: March 15, 2009, 04:22:30 AM »
Thanks for that. I thought I pretty much did that, but could not get it to work. Then last night (after I posted the previous message), I totally deleted the profile from the phone and recreated it from scratch and now it suddenly works. So maybe the phone remembered some settings from a previous configuration that could not get modified through the menu's in the phone.

Marco
Adelaide - Australia