Tuesday, September 9, 2008 - 14:36
Today Jonathan asked me about configuring his system to pretend to be an email server. The goals of this task were:
- Software under development would be able to use the local mail utilities, or use localhost as an smtp without any modifications
- Email sent via these programs would all be delivered to a static location instead of the destination address, to be read at another time
- No email would be relayed out to spam anyone else.
smtp unix - - - - - smtp relay unix - - - - - smtp local unix - n n - - localThe idea was simple, map 'smtp' and 'relay' to 'local'
smtp unix - - - - - local relay unix - - - - - local local unix - n n - - localThe results were exactly as desired. No email is delivered to the outside world, and all email is placed in /var/spool/postfix/active. According to Jonathan, his applications run seamlessly, completely unaware of this.