Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 want to install postfix and configure it for virtual domains on centos. Recently, I configured postfix and it works fine with system users files /etc/passwd, /etc/shadow.

but I want to make dovecot and postfix authentication not on system users or mysql databases. I would authenticate users with some files same as /etc/passwd as proftpd authenticate.

is there a chance?

share|improve this question
Please clarify: You don't want Dovecot/Postfix authenticate against system files, but you want use /etc/passwd for authentication? This is a system file. Or do you want to use a file similar to /etc/passwd, possibly the same file you use for FTP authentication? – Sven Dec 27 '11 at 12:27
for more clarify, it means i want use a file for authentication, but don't use /etc/passwd file. or i don't want every body that has a mail on this system can login on the server (i know /sbin/nologin). – Ali Azimi Dec 27 '11 at 12:59
up vote 0 down vote accepted

So then just do it.

Postfix does not do authentication at all. It delegates to the auth mechanism which can be cyrus-sasl or dovecot:

As you already use Dovecot, you should use it for authentication. The solution you want is extensively described in the manual:

share|improve this answer
exactly! thank you;) – Ali Azimi Dec 27 '11 at 23:14

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.