Qmail Dovecot Authentication: Difference between revisions

From QmailToaster
Jump to navigation Jump to search
(Created page with "To authenticate against Dovecot instead of vpopmail download and compile https://raw.githubusercontent.com/qmtoaster/source/main/qdovauth.c this file")
 
No edit summary
Line 1: Line 1:
To authenticate against Dovecot instead of vpopmail download and compile [[https://raw.githubusercontent.com/qmtoaster/source/main/qdovauth.c this]] file
To authenticate against Dovecot instead of vpopmail download and compile [[https://raw.githubusercontent.com/qmtoaster/source/main/qdovauth.c this]] file
# wget https://raw.githubusercontent.com/qmtoaster/source/main/qdovauth.c
# gcc -o qdovauth qdovauth.c
# mv qdovauth /home/vpopmail/bin
# chown vpopmail:vchkpw /home/vpopmail/bin/qdovauth
# chmod 755 /home/vpopmail/bin/qdovauth
Add services to Dovecot configuration file
service stats {
    unix_listener stats-reader {
    user = vpopmail
    group = vchkpw
    mode = 0660
    }
    unix_listener stats-writer {
    user = vpopmail
    group = vchkpw
    mode = 0660
    }
}
service auth {
  unix_listener auth-qmail {
  mode = 0600
  user = vpopmail
  group = vchkpw
  }
}
# systemctl restart dovecot
Change Submission & SMTPS run files:
#VCHKPW="/home/vpopmail/bin/vchkpw"
VCHKPW="/home/vpopmail/bin/qdovauth"
# qmailctl stop
# qmailctl start
You should be good to go.

Revision as of 01:06, 12 April 2024

To authenticate against Dovecot instead of vpopmail download and compile [this] file

  1. wget https://raw.githubusercontent.com/qmtoaster/source/main/qdovauth.c
  2. gcc -o qdovauth qdovauth.c
  3. mv qdovauth /home/vpopmail/bin
  4. chown vpopmail:vchkpw /home/vpopmail/bin/qdovauth
  5. chmod 755 /home/vpopmail/bin/qdovauth

Add services to Dovecot configuration file

service stats {

   unix_listener stats-reader {
   user = vpopmail
   group = vchkpw
   mode = 0660
   }
   unix_listener stats-writer {
   user = vpopmail
   group = vchkpw
   mode = 0660
   }

}

service auth {

  unix_listener auth-qmail {
  mode = 0600
  user = vpopmail
  group = vchkpw
 }

}

  1. systemctl restart dovecot

Change Submission & SMTPS run files:

  1. VCHKPW="/home/vpopmail/bin/vchkpw"

VCHKPW="/home/vpopmail/bin/qdovauth"

  1. qmailctl stop
  2. qmailctl start

You should be good to go.