alibek Posted May 20, 2023 Posted May 20, 2023 Хочу скриптом на линуксе отправлять по почте некоторые файлы. Но хочу отправлять не от своей основной учетки, а использовать отдельный почтовый аккаунт (на GMail). Для этого в mailutils есть ключ --config-file. Но не могу понять его синтаксис. Точнее, синтаксис вроде бы должен быть такой: https://mailutils.org/manual/mailutils.html#configuration Но он у меня никак не принимается. В идеале я бы хотел перенести в конфигурационный файл следующие ключи mailx: -S smtp="smtp.gmail.com:465" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user="...@gmail.com" -S smtp-auth-password="..." -S ssl-verify=ignore -S from=...@gmail.com (заморочки GMail с паролем-токеном для приложений выполнены, с этими параметрами другой скрипт на Perl у меня работает) Не подскажете, где почитать про синтаксис? Вставить ник Quote
zavndw Posted May 21, 2023 Posted May 21, 2023 Тут же по ссылке все есть: Цитата the --config-file command line option instructs the program to read configuration from the file supplied as its argument. In that case, default configuration files are not used at all. It is named sysconfdir/mailutils.conf, where sysconfdir stands for the system configuration directory set when compiling the package. You can obtain the value of sysconfdir by running $ mailutils info sysconfdir or $ prog --show-config-options | grep SYSCONFDIR where prog stands for any GNU Mailutils utility. Вставить ник Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.