Enable MySQL user accounts
This commit is contained in:
		
							
								
								
									
										8
									
								
								templates/Fedora/35/etc/dovecot/dovecot-sql.conf.ext
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								templates/Fedora/35/etc/dovecot/dovecot-sql.conf.ext
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| {% if dovecot_mysql_server is defined and dovecot_mysql_database is defined and dovecot_mysql_username is defined and dovecot_mysql_password is defined %} | ||||
| driver = mysql | ||||
| connect = host={{ dovecot_mysql_server }} dbname={{ dovecot_mysql_database }} user={{ dovecot_mysql_username }} password={{ dovecot_mysql_password }} | ||||
| default_pass_scheme = SHA512-CRYPT | ||||
| password_query = SELECT email AS user, password FROM virtual_users WHERE email='%u'; | ||||
| user_query = SELECT email AS user FROM virtual_users WHERE email='%u'; | ||||
| iterate_query = SELECT email AS user FROM users; | ||||
| {% endif %$} | ||||
							
								
								
									
										6
									
								
								templates/Fedora/35/etc/dovecot/local.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								templates/Fedora/35/etc/dovecot/local.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| !include conf.d/auth-sql.conf.ext | ||||
| mail_location = maildir:/var/spool/mail/%d/%n | ||||
| mail_privileged_group = mail | ||||
| first_valid_uid = 0 | ||||
| mail_uid = mail | ||||
| mail_gid = mail | ||||
		Reference in New Issue
	
	Block a user