1

I'm developing some HTML email templates and have a internal test tool that can send out test emails to my own email address for QA purposes.

Unfortunately this tool's settings page allows the mail server and port to be set but there are no username and password fields and would appear to rely on the mail server being an open relay.

I don't have access to such a server so I need to set one up maybe in a VM running locally. What's the quickest and easiest way to get this working? I've never installed or configured a mail server before although I'm used to using Linux from the command line and configuring/compiling from source or installing packages etc.

UPDATE:

I got this working using Postfix running on a Debian VM in VirtualBox with the following changes made to my /etc/postfix/main.cf file:

smtpd_recipient_restrictions =  permit_mynetworks, reject_unauth_destination
mydomain = my.immutable.domain.com
relay_domains = my.email.domain.com

..where my.immutable.domain.com is the domain name of the sending address used by the test client app (which is not possible to edit) and my.email.domain.com is the domain name of my personal email address to which the emails get sent.

Xoundboy
  • 593
  • 1
  • 9
  • 20

1 Answers1

1

No, a server that allows relaying without a username and password is not necessarily an open relay. You can use sender IP address restrictions to keep the relaying capabilities under control.

You'll get any number of recommendations for MTAs to install; I like Postfix, myself, which is available pre-packaged in every Linux distro I've seen, and it's pretty straightforward to set it up to relay or not, as you like (see the mynetworks configuration parameter).

womble
  • 95,029
  • 29
  • 173
  • 228
  • Thanks very much - you pointed me in the right direction and I got it working after a fair amount of farting around. – Xoundboy Jun 26 '12 at 12:44