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.
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.