Bonjour,
Dans un cron pour faire de la sauvegarde incrementale toutes les nuits sur ma station j'utilise MAILTO=monAdresseEmail@monFournisseur.
Tout fonctionne bien sauf que les messages n'arrivent jamais dans ma boite aux lettres mais plutot sous la forme d'un fichier 'dead.letter', dans mon home.
J'ai donc cherche autour de sendmail, car cela imdiquerait qu'il y a un probleme lors de l'envoie du mail pendant l'execution du cron.
J'ai consulte hier pas mal de tutos, forums pour configurer sendmail (
juste un ex car il y en a pleins), mais apres plusieurs heures je seche (et je craque) !!!
Je n'arrive pas a demarrer sendmail (a la base c'est genant ...):
# systemctl start sendmail.service
Job for sendmail.service failed. See "systemctl status sendmail.service" and "journalctl -xe" for details.
# systemctl status sendmail.service
● sendmail.service - Sendmail Mail Transport Agent
Loaded: loaded (/usr/lib/systemd/system/sendmail.service; disabled; vendor preset: disabled)
Active: failed (Result: resources) since Thu 2015-11-05 11:04:05 CET; 31s ago
Process: 17572 ExecStart=/usr/sbin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG (code=exited, status=0/SUCCESS)
Process: 17563 ExecStartPre=/etc/mail/make aliases (code=exited, status=0/SUCCESS)
Process: 17552 ExecStartPre=/etc/mail/make (code=exited, status=0/SUCCESS)
Nov 05 11:04:05 nomDeMaStation make[17552]: /etc/mail/make: line 22: makemap: command not found
Nov 05 11:04:05 nomDeMaStation make[17552]: /etc/mail/make: line 22: makemap: command not found
Nov 05 11:04:05 nomDeMaStation make[17552]: /etc/mail/make: line 22: makemap: command not found
Nov 05 11:04:05 nomDeMaStation make[17552]: /etc/mail/make: line 22: makemap: command not found
Nov 05 11:04:05 nomDeMaStation make[17552]: /etc/mail/make: line 22: makemap: command not found
Nov 05 11:04:05 nomDeMaStation sendmail[17572]: -bd is not supported by sSMTP
Nov 05 11:04:05 nomDeMaStation systemd[1]: PID file /run/sendmail.pid not readable (yet?) after start.
Nov 05 11:04:05 nomDeMaStation systemd[1]: Failed to start Sendmail Mail Transport Agent.
Nov 05 11:04:05 nomDeMaStation systemd[1]: Unit sendmail.service entered failed state.
Nov 05 11:04:05 nomDeMaStation systemd[1]: sendmail.service failed.
# journalctl -xe
Nov 05 11:04:05 nomDeMaStation audit[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init
Nov 05 11:04:05 nomDeMaStation polkitd[908]: Unregistered Authentication Agent for unix-process:17546:6147806 (system bus na
Nov 05 11:04:17 nomDeMaStation audit[1]: <audit-1131> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init
Nov 05 11:14:39 nomDeMaStation systemd[1]: Starting dnf makecache...
-- Subject: Unit dnf-makecache.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dnf-makecache.service has begun starting up.
Nov 05 11:14:39 nomDeMaStation dnf[17934]: cachedir: /var/cache/dnf
Nov 05 11:14:39 nomDeMaStation dnf[17934]: Loaded plugins: config-manager, reposync, builddep, langpacks, migrate, Query, ne
Nov 05 11:14:39 nomDeMaStation dnf[17934]: langpacks: No languages are enabled
Nov 05 11:14:39 nomDeMaStation dnf[17934]: initialized Langpacks plugin
Nov 05 11:14:39 nomDeMaStation dnf[17934]: DNF version: 1.1.3
Nov 05 11:14:39 nomDeMaStation dnf[17934]: Making cache files for all metadata files.
Nov 05 11:14:39 nomDeMaStation dnf[17934]: Metadata cache refreshed recently.
Nov 05 11:14:39 nomDeMaStation systemd[1]: Started dnf makecache.
-- Subject: Unit dnf-makecache.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dnf-makecache.service has finished starting up.
--
-- The start-up result is done.
Nov 05 11:14:39 nomDeMaStationaudit[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init
Nov 05 11:14:39 nomDeMaStation audit[1]: <audit-1131> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init
Nov 05 11:15:51 nomDeMaStation chronyd[888]: Source 212.83.179.156 replaced with 95.81.173.8
Nov 05 11:24:01 nomDeMaStationdbus[865]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprin
Nov 05 11:24:01 nomDeMaStation systemd[1]: Starting Fingerprint Authentication Daemon...
-- Subject: Unit fprintd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fprintd.service has begun starting up.
Nov 05 11:24:01 nomDeMaStation dbus[865]: [system] Successfully activated service 'net.reactivated.Fprint'
Nov 05 11:24:01 nomDeMaStation systemd[1]: Started Fingerprint Authentication Daemon.
-- Subject: Unit fprintd.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fprintd.service has finished starting up.
--
-- The start-up result is done.
Nov 05 11:24:01 nomDeMaStation audit[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init
Nov 05 11:24:07 nomDeMaStation unix_chkpwd[18015]: password check failed for user (root)
Nov 05 11:24:07 nomDeMaStation su[18011]: pam_unix(su:auth): authentication failure; logname=econdami uid=1385 euid=0 tty=pt
Nov 05 11:24:07 nomDeMaStation su[18011]: pam_succeed_if(su:auth): requirement "uid >= 1000" not met by user "root"
Nov 05 11:24:07 nomDeMaStation audit[18011]: <audit-1100> pid=18011 uid=1385 auid=1385 ses=1 subj=unconfined_u:unconfined_r:
Nov 05 11:24:09 nomDeMaStation su[18011]: FAILED SU (to root) econdami on pts/4
Nov 05 11:24:15 nomDeMaStation audit[18016]: <audit-1100> pid=18016 uid=1385 auid=1385 ses=1 subj=unconfined_u:unconfined_r:
Nov 05 11:24:15 nomDeMaStation audit[18016]: <audit-1101> pid=18016 uid=1385 auid=1385 ses=1 subj=unconfined_u:unconfined_r:
Nov 05 11:24:15 nomDeMaStation su[18016]: (to root) econdami on pts/4
Nov 05 11:24:15 nomDeMaStation audit[18016]: <audit-1103> pid=18016 uid=1385 auid=1385 ses=1 subj=unconfined_u:unconfined_r:
Nov 05 11:24:15 nomDeMaStation su[18016]: pam_unix(su:session): session opened for user root by econdami(uid=1385)
Nov 05 11:24:15 nomDeMaStation audit[18016]: <audit-1105> pid=18016 uid=1385 auid=1385 ses=1 subj=unconfined_u:unconfined_r:
Nov 05 11:24:15 nomDeMaStation automount[1410]: key "_yum" not found in map source(s).
Nov 05 11:24:31 nomDeMaStation audit[1]: <audit-1131> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init
Nov 05 11:25:38 nomDeMaStation su[18016]: pam_unix(su:session): session closed for user root
Nov 05 11:25:38 nomDeMaStation audit[18016]: <audit-1106> pid=18016 uid=1385 auid=1385 ses=1 subj=unconfined_u:unconfined_r:
Nov 05 11:25:38 nomDeMaStation audit[18016]: <audit-1104> pid=18016 uid=1385 auid=1385 ses=1 subj=unconfined_u:unconfined_r:
lines 1016-1075/1075 (END)
Nov 05 11:04:05 nomDeMaStation audit[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=sendmail comm="systemd" exe="/usr/lib/systemd/systemd" hostname
Nov 05 11:04:05 nomDeMaStation polkitd[908]: Unregistered Authentication Agent for unix-process:17546:6147806 (system bus name :1.193, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale
Nov 05 11:04:17 nomDeMaStation audit[1]: <audit-1131> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=
Nov 05 11:14:39 nomDeMaStation systemd[1]: Starting dnf makecache...
-- Subject: Unit dnf-makecache.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dnf-makecache.service has begun starting up.
Nov 05 11:14:39 nomDeMaStation dnf[17934]: cachedir: /var/cache/dnf
Nov 05 11:14:39 nomDeMaStation dnf[17934]: Loaded plugins: config-manager, reposync, builddep, langpacks, migrate, Query, needs-restarting, protected_packages, debuginfo-install, system-upgrade, copr, pl
Nov 05 11:14:39 nomDeMaStation dnf[17934]: langpacks: No languages are enabled
Nov 05 11:14:39 nomDeMaStation dnf[17934]: initialized Langpacks plugin
Nov 05 11:14:39 nomDeMaStation dnf[17934]: DNF version: 1.1.3
Nov 05 11:14:39 nomDeMaStation dnf[17934]: Making cache files for all metadata files.
Nov 05 11:14:39 nomDeMaStation dnf[17934]: Metadata cache refreshed recently.
Nov 05 11:14:39 nomDeMaStation systemd[1]: Started dnf makecache.
-- Subject: Unit dnf-makecache.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dnf-makecache.service has finished starting up.
--
-- The start-up result is done.
Nov 05 11:14:39 nomDeMaStation audit[1]: <audit-1130> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dnf-makecache comm="systemd" exe="/usr/lib/systemd/systemd" hos
Nov 05 11:14:39 nomDeMaStation audit[1]: <audit-1131> pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dnf-makecache comm="systemd" exe="/usr/lib/systemd/systemd" hos
Nov 05 11:15:51 nomDeMaStation chronyd[888]: Source 212.83.179.156 replaced with 95.81.173.8
Il y a d'autres curiosites comme la commande makemap qui n'est pas trouvee !!!
# makemap hash client-info < client-info
bash: makemap: command not found...
Bref je suis un peu perdu. Si vous avez une meilleure connaissance que moi de sendmail (ce qui ne devrait pas etre tres difficile car je n'avais encore jamais joue avec avant hier !) je suis preneur de tous conseils, infos, pistes a suivre, etc ..
Merci d'avance