Koozali.org: home of the SME Server

Local Network - Allowing SMTP From Same Outside Subnet

Offline jfarschman

  • *
  • 406
  • +0/-0
Local Network - Allowing SMTP From Same Outside Subnet
« on: May 23, 2006, 02:57:10 PM »
Hello,

  I am working with a school district that has 32 static IP Addresses (/27).  One machine on the oustide network needs to relay through the SME... but it's is incapable of using SMTP AUTH.

  I'm having trouble getting local network entry into place.... and I think I am doing something stupid.

  The network looks like this:

211.234.23.224-255 Network
211.234.23.225       Gateway
211.234.23.226       SME Server
211.234.23.228       Needs Relay
255.255.255.224     Subnet Mask

WHAT I TRIED:
  I tried putting the Needs Relay (.228) server into Local Networks, but it does not take.

  IP ADDR =  211.234.23.228
  NETMASK=  255.255.255.255
  ROUTER  =  211.234.23.225

ERROR
Operation status report - Error: router address is not accessible from local network. Did not  add network.
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com

Offline jfarschman

  • *
  • 406
  • +0/-0
Local Network - Allowing SMTP From Same Outside Subnet
« Reply #1 on: May 26, 2006, 03:04:27 PM »
I think the better way to handle this is within the peers directory for qpsmtpd.  This script addes the $RELAY_IP to the peers list and gives it relay ability.

Code: [Select]

RELAY_IP=211.234.23.228
mkdir -pv /etc/e-smith/templates-custom/var/service/qpsmtpd/peers/$RELAY_IP
cp /etc/e-smith/templates/var/service/qpsmtpd/peers/local/* \
   /etc/e-smith/templates-custom/var/service/qpsmtpd/peers/$RELAY_IP
expand-template /var/service/qpsmtpd/peers/$RELAY_IP
signal-event email-update


However... you do not appear to be able add an address from your outside (WAN) subnet into the Local Networks.  I have opened bug on this, but I've realized that using the "Local Networks" feature in this case was the wrong approach.

http://bugs.contribs.org/show_bug.cgi?id=1506
Jay Farschman
ICQ - 60448985
jay@hitechsavvy.com