Setting up a proper smtp server with dovecot and mysql virtual mailboxes

Dec 26th, 2011 | By | Category: Linux / Freebsd

Well this was a multi-day nightmare that has finally come to an end(meaning I can finally sit down and play with my xmas presents)

First of all I want to give a shout out to this tutorial:

This is the most recent and the best guide I could find and I kept going back to it but funny enough even that couldn’t take me to the promise land.  In the end my biggest hurdle was properly authenticating smtp connections.  I was greeted with the following error message:

warning: SASL: Connect to auth/dovecot failed: No such file or directory
Dec 26 13:11:53 vps postfix/smtpd[3495]: fatal: no SASL authentication mechanisms

It took days to get to just receiving this error message but clearly it’s stating that it can’t find the properly files needing to authenticate sasl.  In the end what fixed it was putting this

queue_directory = /var/spool/postfix
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth


in my postfix .  Check to make srue you aren’t duplicating similar entries before you just paste that in willy nilly.  The thing to note here is that the smtpd_sasl_path can either be an absolute path or it is relative to the queue directory.  the problem was that I didn’t have that queue directory in there so I changed it about and viola I just sent my first email through my very own mail server.. Huzzah!


Tags: , , , , ,

Leave a Comment