Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to replace an existing qmail installation with postfix.

Qmail is currently authenticating outgoing smtp from users clients with a perl script. This script checks user's provided username+password performing a AUTH LOGIN check on another external smtp server.

If the remote server responds with 235 return code, the provided username/password are ok and user is authenticated for qmail as well.

From what I understand it is possibile to use Cyrus or Dovecot SASL libraries on postfix to authenticate users, is it possibile to configure saslauthd or any of those libraries to replicate the perl script behaviour?

Unluckyly I do not have any other kind of access to the external smtp server cointaining users and passwords, I only can test AUTH LOGIN on an smtp connection.


share|improve this question
Postfix can accept SASL plugins, if you're willing to make a perl script that does that, and acts like a SASL implementer, I guess you could.. – NickW Mar 1 '13 at 16:32
yup I was suspecting that... could you point out any example of plugin? Would that be easier with saslauthd or just sasl lib ? Thanks – golemwashere Mar 1 '13 at 16:39
1, which talks about developing a plugin for the cyrus sasl implementation, it might be something worth exploring.. especially the auxprop part. – NickW Mar 1 '13 at 16:45
that's a nice starting point thanks... if there could be any existing implementation in perl , maybe using… would be great – golemwashere Mar 1 '13 at 17:00
You're drifting way out of my skills range, but I wish you luck in the search.. – NickW Mar 1 '13 at 17:01
up vote 0 down vote accepted

I found a perl implementation for saslauthd which is compatible with postfix :


I configured postfix to use salsauthd:

    pwcheck_method: saslauthd
    mech_list: PLAIN LOGIN

and pointed the socket for salsauthd in


this implementation can be easyly customized to authenticate using various perl implementations

share|improve this answer
Glad to hear you got things working! – NickW Mar 5 '13 at 14:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.