johnny57
16/09/2016, 15h10
Un truc de dingue, je n'ai rien fait de plus et après un redémarrage du serveur les envois fonctionnent...
root@ns335976:/home# ps aux | grep 'sasl'
root 29048 0.0 0.0 13224 980 pts/0 S+ 09:58 0:00 grep sasl
To enable saslauthd, edit /etc/default/saslauthd and set START=yes ... (warning).
cat /etc/default/saslauthd | grep 'START'
root@ns311465:~# cat /etc/default/saslauthd | grep 'START'
START=yes
root@ns311465:~# ps aux | grep 'sasl' root 1286 0.0 0.0 151888 5792 ? Ss Sep02 0:00 /usr/sbin/saslauthd -a pam -c -r -m /var/spool/postfix/var/run/saslauthd -n 5 root 1808 0.0 0.0 151888 5856 ? S Sep02 0:00 /usr/sbin/saslauthd -a pam -c -r -m /var/spool/postfix/var/run/saslauthd -n 5 root 1809 0.0 0.0 151888 5920 ? S Sep02 0:00 /usr/sbin/saslauthd -a pam -c -r -m /var/spool/postfix/var/run/saslauthd -n 5 root 1810 0.0 0.0 151888 6112 ? S Sep02 0:00 /usr/sbin/saslauthd -a pam -c -r -m /var/spool/postfix/var/run/saslauthd -n 5 root 1811 0.0 0.0 151888 6176 ? S Sep02 0:00 /usr/sbin/saslauthd -a pam -c -r -m /var/spool/postfix/var/run/saslauthd -n 5 root 20046 0.0 0.0 11132 932 pts/0 S+ 09:24 0:00 grep sasl root@ns311465:~#
man saslauthd
root@ns311465:~# cat /etc/pam.d/smtp auth required pam_mysql.so user=mail passwd=secretpassword host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=secretpassword crypt=1 salt=a4 debug=0 verbose=0 account sufficient pam_mysql.so user=mail passwd=secretpassword host=127.0.0.1 db=mail table=users usercolumn=email passwdcolumn=secretpassword crypt=1 salt=a4 debug=0 verbose=0
/etc/init.d/saslauthd status
● saslauthd.service - LSB: saslauthd startup script
Loaded: loaded (/etc/init.d/saslauthd)
Active: active (exited) since jeu. 2016-09-15 15:01:38 CEST; 18h ago
sept. 15 15:01:38 saslauthd[2102]: To enable saslauthd, edit /etc/default/saslauthd and set START=yes ... (warning).
sept. 15 15:01:38 systemd[1]: Started LSB: saslauthd startup script.
netstat -naptul
tcp 0 0 127.0.0.1:12345 0.0.0.0:* LISTEN 1131/opendkim
smtpd_milters = inet:localhost:12345
Edit :
Je viens de de voir autre chose :
Comment postifx parvient-il à accepter les connexions pop et ne parvient pas à authentifier les connexions smtp.
SASL LOGIN authentication failed: generic failure
warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
# whois buzionweb.fr nserver: sdns2.ovh.net nserver: ns335976.ip-37-187-153.eu
# telnet ns335976.ip-37-187-153.eu 53 Trying 37.187.153.80... telnet: Unable to connect to remote host: Connection refused
Certains des destinataires ou tous les destinataires n'ont pas reçu votre message.
Objet : test
Date : 15/09/2016 18:10
Impossible de contacter le(s) destinataire(s) suivant(s) :
contact@buzionweb.fr le 15/09/2016 18:11
Erreur serveur : '450 4.1.2: Recipient address rejected: Domain not found'
Mais je ne comprends pas pourquoi mysql a autant de besoin alors que le serveur n'a rien à charge ou presque pour l'instant. Les deux sites transférés ne font presque aucun trafic pour l'instant, ils sont trop jeunes. Piwik est bien installé sur ce serveur déjà, mais je ne pense pas qu'il soit si gourmand. De toutes façons, il n'y avait pas ce soucis avant installation d'opendkim, ça vient plus que probablement de là.
Pensez vous qu'il soit judicieux de réinstaller le serveur avec ce problème d'opendkim installé
alors qu'il l'était déjà et vu les conséquences que ça a apporté ?
[mysqld] open_files_limit = 5000
J'ai donc testé à l'instant en changeant ce paramètre de mysql pour le mettre sur "tout" et là les bases sont visibles dans webmin au rechargement de la page mais disparaissent au rechargement suivant de la page. Les sites eux ne fonctionnent toujours pas, même erreur.
open_files_limit 1185
max_connections 151
table_open_cache 512
les commandes en SSH :
ulimit -n : 65536
show variables like "open_files_limit";
# ulimit -n
# df -h
# df -hi
160830 9:06:45 [ERROR] /usr/sbin/mysqld: Can't open file: './buzi/piwik_site.frm' (errno: 24)
An error occurred SQLSTATE[HY000]: General error: 23 Out of resources when opening file '/tmp/#sql_692_0.MYI' (Errcode: 24)
105 apt-get install opendkim 106 mkdir -p /etc/opendkim/ 107 mv /etc/opendkim.conf /etc/opendkim/ 108 ln -s /etc/opendkim/opendkim.conf /etc/opendkim.conf 109 openssl genrsa -out /etc/opendkim/opendkim.key 1024 110 openssl rsa -in /etc/opendkim/opendkim.key -pubout -out /etc/opendkim/opendkim.pub.key 111 chmod "u=rw,o=,g=" /etc/opendkim/opendkim.key 112 chown opendkim:opendkim /etc/opendkim/opendkim.key 113 nano /etc/opendkim.conf 114 nano /etc/default/opendkim 115 cd opendkim 116 dir 117 mkdir -pv /etc/opendkim/buzionweb.fr 118 chown -Rv opendkim:opendkim /etc/opendkim 119 chmod go-rwx /etc/opendkim/* 120 cd buzionweb.net 121 cd buzionweb.fr 122 opendkim-genkey -r -h rsa-sha256 -d buzionweb.fr -s mail -b 4096 123 cd .. 124 dir 125 nano /etc/opendkim.conf 126 opendkim-genkey -r -h rsa-sha256 -d skyminds.net -s mail -b 4096 127 cd .. 128 cd default 129 nano opendkim 130 cd /etc/opendkim 131 nano KeyTable 132 nano SigningTable 133 nano TrustedHosts 134 nano /etc/postfix/main.cf 135 apt-get install opendkim opendkim-tools 136 opendkim-genkey -t -s dkim -d buzionweb.fr 137 cd buzionweb.fr 138 dir 139 ls 140 cd.. 141 cd .. 142 cd .. 143 mkdir -pv /etc/opendkim/buzionweb.fr 144 chown -Rv opendkim:opendkim /etc/opendkim 145 chmod go-rwx /etc/opendkim/* 146 cd /etc/opendkim/buzionweb.fr 147 opendkim-genkey -r -h rsa-sha256 -d skyminds.net -s mail -b 4096 148 opendkim-genkey -r -h rsa-sha256 -d buzionweb.fr -s mail -b 4096 149 dir 150 nano mail.txt 151 mv -v mail.private mail 152 chown opendkim:opendkim * 153 chmod u=rw,go-rwx * 154 nano mail.txt 155 /etc/init.d/bind9 restart 156 nano /etc/opendkim/KeyTable 157 nano /etc/opendkim/SigningTable 158 nano /etc/opendkim/TrustedHosts 159 chown opendkim:opendkim /etc/opendkim/KeyTable 160 chown opendkim:opendkim /etc/opendkim/SigningTable 161 chown opendkim:opendkim /etc/opendkim/TrustedHosts 162 nano /etc/postfix/main.cf 163 /etc/init.d/bind9 restart 164 /etc/init.d/opendkim restart 165 /etc/init.d/postfix restart 166 ps aux | grep dkim 167 netstat -tanp | grep dkim 168 /etc/init.d/bind9 restart 169 /etc/init.d/bind9 statut 170 /etc/init.d/bind9 status 171 iptables -L -n -V 172 iptables -L 173 restart 174 reboot 175 iptables -L -n -V 176 iptables -L 177 /etc/webmin/stop 178 nano /etc/webmin/miniserv.conf 179 nano /etc/services 180 nano /etc/webmin/miniserv.conf 181 nano /etc/webmin/miniserv.conf 182 /etc/webmin/stART 183 /etc/webmin/start 184 reboot 185 /etc/init.d.bind9 status 186 /etc/init.d/bind9 status 187 netstat -tanpu 188 cd etc 189 cd /etc 190 cd bind 191 dir
Creating MySQL database racineuser .. .. Base de données MySQL a échoué! : SQL create database `racineuser` manqué : Out of resources when opening file './racineuser/db.opt' (Errcode: 24) at /usr/share/webmin/web-lib-funcs.pl line 1427.