Как отправить email (на кирилице) из консоли Debian 9?

Перешел с Debian 7 на Debian 9, в итоге не получается из консоли отправить email на русском языке.
Использую: ssmtp и mail из пакета mailutils
По команде:
echo "Какой-то текст" | mail -s "Тест отправки письма" mymail@mail.ru
на почту получаю иероглифы. Из php письма приходят нормальные, русские буквы видно.
Подскажите как в этот mail записать свой headers, чтобы задать кодировку?

root@Web:~$mail -V
mail (GNU Mailutils) 3.1.1
Copyright (C) 2007-2016 Free Software Foundation, inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

root@Web:~$mail --help
Использование: mail [OPTION...] [адрес...]
  or:  mail [OPTION...] [OPTION...] [file]
  or:  mail [OPTION...] --file [OPTION...] [file]
  or:  mail [OPTION...] --file=file [OPTION...]
GNU mail -- process mail messages.
If -f or --file is given, mail operates on the mailbox named by the first
argument, or the users mbox, if no argument given.

  -A, --attach=ФАЙЛ      attach FILE
  -a, --append=ЗАГОЛОВОК: ЗНАЧЕНИЕ
                             append given header to the message being sent
      --content-type=TYPE    set content type for subsequent --attach options
  -E, --exec=КОМАНДА  execute COMMAND
  -e, --exist                return true if mail exists
      --encoding=ИМЯ      set encoding for subsequent --attach options
  -F, --byname               save messages according to sender
  -H, --headers              write a header summary and exit
  -i, --ignore               ignore interrupts
  -N, --nosum                do not display initial header summary
  -n, --norc                 do not read the system mailrc file
  -p, --print, --read        print all mail to standard output
  -q, --quit                 cause interrupts to terminate program
  -r, --return-address=АДРЕС
                             use address as the return address when sending
                             mail
  -s, --subject=ТЕМА     send a message with the given SUBJECT
  -t, --to                   read recipients from the message header
  -u, --user=ПОЛЬЗОВАТЕЛЬ
                             operate on USERs mailbox
 Global debugging settings
      --debug-level=LEVEL    set Mailutils debugging level
      --debug-line-info      show source info with debugging messages

 Configuration handling
      --config-file=ФАЙЛ load this configuration file; implies --no-config
      --config-lint          check configuration file syntax and exit
      --config-verbose       verbosely log parsing of the configuration files
      --no-config            do not load site and user configuration files
      --no-site-config       do not load site-wide configuration file
      --no-user-config       do not load user configuration file
      --set=PARAM=VALUE      set configuration parameter

 Informational options
      --config-help          show configuration file summary
      --show-config-options  show compilation options

  -?, --help                 выдать эту подсказку
      --usage                выдать краткую подсказку
                             по использованию
  -V, --version              напечатать номер версии
                             программы

Обязательные или необязательные аргументы
к длинным опциям остаются таковыми и к
соответствующим коротким опциям.

Report bugs to <bug-mailutils@gnu.org>.
GNU Mailutils home page: <http://mailutils.org>
General help using GNU software: <http://www.gnu.org/gethelp/>
  • Вопрос задан
  • 401 просмотр
Решения вопроса 1
Taraflex
@Taraflex
Ищу работу. Контакты в профиле.
Первая ссылка в гугле по запросу - unix mail command utf8
https://stackoverflow.com/questions/3120168/how-to...
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы