Koozali.org: home of the SME Server

Relaying etc .... with Version 7.x

icemannz

Relaying etc .... with Version 7.x
« on: August 03, 2007, 04:16:22 AM »
Hi all,
I have been using the SME Server ver 6.0 for quite some time.
The reason I use this version is because I can setup various static ip addresses and tell the server that they are allowed to relay email.
Also I can setup email server forwarding to multiple backend email servers, for example
My smtproutes command may have something like:
rawlinesons.com:219.55.194.82
myfinance.com:222.111.111.12
sonicdiver.com:222.113.112.142

Can someone tell me if I can do the same thing using the latest SME Server.
If so, can you please include a quick description of how to:
Add IP Addresses that are allowed to relay,
Add a list of Backend email servers and have their email forwarded on to various email servers.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Relaying etc .... with Version 7.x
« Reply #1 on: August 03, 2007, 04:40:16 AM »
icemannz

Anything you can do on sme6 you can do on sme7 and more.

Quote
Add IP Addresses that are allowed to relay


Add trusted IPs to Local networks panel in server manager


Quote
Add a list of Backend email servers and have their email forwarded on to various email servers.


http://wiki.contribs.org/Email#Internal_Mail_Servers
...

cc_skavenger

Relaying etc .... with Version 7.x
« Reply #2 on: August 03, 2007, 06:55:42 AM »
IMHO, it is easier with SME 7.X.  You can enable public access to SMTP over SSL and POP3 over SSL.  Once the user configures his e-mail client correctly with the new ports,  they are able to access their e-mail from the server from anywhere and you do not need to add any networks to the local networks panel.

icemannz

Relaying etc .... with Version 7.x
« Reply #3 on: August 03, 2007, 07:30:32 AM »
Thanks for your reply, you certainly got me interested.
I have looked at the
        "Add trusted IPs to Local networks panel in server manager"
But this only seems to allow me to add networks and not individual host addresses.
Do you know how I can add a single host's which can relay.
Please note ssmtp is not an option as too many customers to change.

icemannz

Relaying etc .... with Version 7.x
« Reply #4 on: August 05, 2007, 10:44:15 PM »
Can anyone tell me if I can add a list of hosts that are allowed to relay.
Please note: I only want to add a list of hosts and not entire network addresses ?

icemannz

Relaying etc .... with Version 7.x
« Reply #5 on: August 06, 2007, 02:56:03 AM »
Hi all,
I seem to have got this working.
I tried to use the following:
This script addes the $RELAY_IP to the peers list and gives it relay ability.
Code:

RELAY_IP=10.17.0.1
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

That script didn't seem to work for me and I still couldn't relay so I played around with changing it and the following does work.

mkdir -pv /etc/e-smith/templates-custom/var/service/qpsmtpd/config
cp /var/service/qpsmtpd/config/relayclients \
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/
expand-template /var/service qpsmtpd/config/relayclients
signal-event email-update

I don't know much about setting up custom templates so I may not be doing this right.
If someone else reading this knows how to use a custom-template properly instead of just copying the file, could you please post the results here.