Corriger les problèmes de droits avec sendmail

Erreurs :

dangerous permissions=42777 on queue directory /var/spool/mqueue-client/
can not chdir(/var/spool/mqueue-client/): Permission denied
hash map "access": unsafe map file /etc/mail/access.db: Permission denied
can not chdir(/var/spool/mqueue-client/): No such file or directory

Solution :

chown -R smmta:smmsp /var/spool/mqueue
chown -R smmsp:smmsp /var/spool/mqueue-client
dpkg-reconfigure mailutils sendmail-base sendmail-bin sensible-mda

Envoyer les mails bloqués dans la mailqueue : sendmail -q

Voir la mailqueue : mailq

Tester en ligne de commande : echo -e "Subject:Test\nMessage test" | sendmail -v "votre.addresse@email.com" echo -e => Active les caractères "\n", "\r", ...

/var/run/sendmail