Basic mailserver configuration on RHEL10: Difference between revisions
From Fvettore-WIKI
Created page with " timedatectl set-timezone Europe/Rome dnf install mariadb dnf install mariadb-server systemctl enable mariadb --now semanage port -l | grep ssh semanage port -a -t ssh_port_t -p tcp 1999 semanage port -l | grep ssh vi /etc/ssh/sshd_config systemctl restart sshd:q" |
No edit summary |
||
| Line 10: | Line 10: | ||
vi /etc/ssh/sshd_config | vi /etc/ssh/sshd_config | ||
systemctl restart sshd:q | systemctl restart sshd:q | ||
dovecot: | |||
conf.d/10-mail.conf | |||
verificare | |||
conf.d/auth-sql.conf.ext | |||
commentare userdb | |||
decommentare | |||
e modificare | |||
userdb { | |||
driver = static | |||
args = uid=150 gid=150 home=/var/vmail/%d/%n allow_all_users=yes | |||
} | |||
il percorso /etc/dovecot/dovecot-sql.conf.ext | |||
e creare il file /etc/dovecot/dovecot-sql.conf.ext | |||
driver=mysql | |||
default_pass_scheme = PLAIN | |||
connect= host=127.0.0.1 port=3306 dbname=mailserver user=postfix password=quigattacicova | |||
password_query = SELECT password, email as user FROM users where email='%u' AND enabled=1 | |||
in conf.d/10-ssl.conf | |||
mettere certificati e ca | |||
Revision as of 12:59, 6 October 2025
timedatectl set-timezone Europe/Rome dnf install mariadb dnf install mariadb-server systemctl enable mariadb --now
semanage port -l | grep ssh semanage port -a -t ssh_port_t -p tcp 1999 semanage port -l | grep ssh
vi /etc/ssh/sshd_config systemctl restart sshd:q
dovecot:
conf.d/10-mail.conf
verificare conf.d/auth-sql.conf.ext
commentare userdb
decommentare e modificare
userdb {
driver = static args = uid=150 gid=150 home=/var/vmail/%d/%n allow_all_users=yes
}
il percorso /etc/dovecot/dovecot-sql.conf.ext
e creare il file /etc/dovecot/dovecot-sql.conf.ext
driver=mysql default_pass_scheme = PLAIN connect= host=127.0.0.1 port=3306 dbname=mailserver user=postfix password=quigattacicova password_query = SELECT password, email as user FROM users where email='%u' AND enabled=1
in conf.d/10-ssl.conf mettere certificati e ca
