You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.6 KiB

Your VM can send mail through mailhost.vmsrv.redbrick.dcu.ie. You can use any MTA to do this, documentation for exim is just provided cause I like exim.

Debian/Ubuntu

The easiest way to configure on this is to use dpkg

# apt-get install exim4-daemon-light
# dpkg-reconfigure exim4-config

Image:Rbvm-exim1.png

Image:Rbvm-exim2.png

Set the name to 'whatever you named your vm'.vm.redbrick.dcu.ie

Image:Rbvm-exim3.png

It should only listen on localhost

Image:Rbvm-exim4.png

Mail should not be accepted for any destinations

Image:Rbvm-exim5.png

No need to change the visble domain name

Image:Rbvm-exim6.png

Route all mail to mailhost.vmsrv.redbrick.dcu.ie

DNS queries can be left at the default, and the configuration does not need to be split to small files

Other Systems

  • Install Exim from somewhere.
  • Go through the config file and fill out primary_hostname as name.vm.redbrick.dcu.ie
  • Unless you know what you're doing don't touch the acl section.
  • Delete the Routers & Transports section
  • Put this in it's place:
######################################################################
#                      ROUTERS CONFIGURATION                         #
#               Specifies how addresses are handled                  #
######################################################################

begin routers

send_to_gateway:
  driver = manualroute
  domains = !+local_domains
  transport = remote_smtp
  route_list = "* mailhost.vmsrv.redbrick.dcu.ie "

#
# Just send all mail to a proper mailhost. Don't do any local delivery shite.
#
######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################
#                       ORDER DOES NOT MATTER                        #
#     Only one appropriate transport is called for each delivery.    #
######################################################################
# A transport is used only when referenced from a router that successfully
# handles an address.
begin transports
# This transport is used for delivering messages over SMTP connections.
remote_smtp:
  driver = smtp

NOTOC Category: RedBrick VM Project