Email-ExchangeRelay
Jump To: Support > KB > NetManager > Email > ExchangeRelay
Sending system reports if NetManager is not your main mailserver
Configuring NetManager to be able to send email externally
Plus to users on an alternative local mail server (e.g. Exchange)
- Determine the email domain name (
school.lea.sch.uk
in this example) - Determine what mail relay to use, if any. This could be any of:
- On-premises mail server (e.g. Exchange)
- ISP SMTP relay
- Authenticated sending via Gmail (see here for details)
- Send direct, no relay
- Set mail relay on NetManager to the IP address of the mail relay (or leave empty to send direct). This can be done through Email > Send/Rcv in webadmin, from option I and then M on the Console Menu or by setting
mail_relay
in the NetManager configuration file. If configured, all non-local email will be sent to this server for onwards delivery. - Set
mail_local_domain
in the NetManager configuration file. This will cause email to be sent fromuser@school.lea.sch.uk
. Do not configure a local domain (using the console menu, webadmin ordomain_external
configuration setting) as this will make the NetManager believe that mail forschool.lea.sch.uk
should be delivered to itself - Once the changes have been made, you must run
build_server
to make the changes live. Do not be tempted to run just thesendmail
build script. - To receive system mails, set an email alias from
root
to a suitable user account@school.lea.sch.uk
- Test sending mail externally from the command line:
netmanager 1# echo "Hello" | mail -s Test my.account@googlemail.com
- Test sending mail to root internally from the command line:
netmanager 1# echo "Hello" | mail -s Test root
mail_relay="10.0.0.100" mail_local_external="school.lea.sch.uk"
Setting up Exchange 2010 to relay SMTP email from NetManager
- Launch Exchange Management Console
- Expand tree in left-hand panel and selectServer Configuration
- Select Hub Transport
- Select the server and then from the Actions (right-hand) pane of the console choose New Receive Connector
- Type in a suitable name, e.g. NetManager. Leave intended use as Custom and click Next >
- On the Local Network settings page, leave the IP address as is. Enter the standard amil domain name of the site in the FQDN box and click Next >
- On the Remote Network settings page, select the default 0.0.0.0-255.255.255.255 range and click the X button above to delete
- For each NetManager, click on Add... and enter its IP address. When you have added all, click Next >
- Review settings and click New
- Once completed, click Finish
- In the bottom half of the Hub Transport panel, right-click on the new receive connector you have just created and choose Properties
- Switch to the Permission Groups tab and select Anonymous Users and Exchange Servers.
- Switch to the Authentication tab and select Externally Secured
- Click OK
- Test