Mailx
m.c. : mailx , s-nail , snail , heirloom ,
se décline en 2 paquets pour debian :
- bsd-mailx , qui est dit très sommaire (pas de PJ, pas d'UTF8, etc).
- heirloom-mailx
Sommaire
Install
# apt-get install heirloom-mailx Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: s-nail The following NEW packages will be installed: heirloom-mailx s-nail 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 350 kB of archives. After this operation, 715 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://deb.debian.org/debian stretch/main amd64 s-nail amd64 14.8.16-1 [340 kB] Get:2 http://deb.debian.org/debian stretch/main amd64 heirloom-mailx all 14.8.16-1 [9,640 B] Fetched 350 kB in 0s (1,169 kB/s) Selecting previously unselected package s-nail. (Reading database ... 37742 files and directories currently installed.) Preparing to unpack .../s-nail_14.8.16-1_amd64.deb ... Unpacking s-nail (14.8.16-1) ... Selecting previously unselected package heirloom-mailx. Preparing to unpack .../heirloom-mailx_14.8.16-1_all.deb ... Unpacking heirloom-mailx (14.8.16-1) ... Setting up s-nail (14.8.16-1) ... Processing triggers for man-db (2.7.6.1-2) ... Setting up heirloom-mailx (14.8.16-1) ...
- https://packages.debian.org/fr/stretch/heirloom-mailx : This dummy package is provided to provide a smooth upgrade path from heirloom-mailx to s-nail. It only contains symlinks to the s-nail binary and manpage.
heirloom-mailx, dans sa version pour stretch, est différent des versions précédentes et n'est plus qu'une coquille vide.
Le paquet réellement installé est s-nail.
Et effectivement la commande s-nail
est bien disponible.
man s-nail
S-nail is thus the user side of the Unix mail system, whereas the system side (mail-transfer-agent, MTA) was traditionally taken by sendmail(8); today postfix(1) or exim(8) are often used for this purpose instead. If the [Option]al SMTP feature has been built into S-nail then the system side is not a mandatory precondition for mail delivery.
Cela semble signifier qu'un MTA doit être présent pour que s-nail fonctionne.
$ echo tpi | s-nail toto@dom.tld Cannot start "/usr/sbin/sendmail": executable not found (adjust *sendmail* variable)
s-nail
La commande est dispo pour les utilisateurs. (Contrairement à postfix où, par défaut, seul root a accès).
# s-nail -s test0948 -a mansnail.txt xxx@yyy.tld
Mais faut ctrl-d pour expédier
# echo bla | s-nail -s test0959 xxx@yyy.tld
envoit bla
Pages connexes
Liens