ocehb: (Default)
[personal profile] ocehb


account gmail {
        set smtp-use-starttls
        set ssl-verify=ignore                             # Не реагировать на ssl-ругань
        set smtp=smtp://smtp.gmail.com:587
        set smtp-auth=login
        set smtp-auth-user=ocehb@gmail.com                # Полный адрес как логин
        set smtp-auth-password=***                        # Пароль для приложения получить на gmail.com
        set from="ocehb <ocehb@ocehb.com>"                # Всё равно перепишет как X-Google-Original-From:
}

account yandex {
        set smtp-use-starttls
        set ssl-verify=ignore
        set smtp=smtp://smtp.yandex.ru:587
        set smtp-auth=login
        set smtp-auth-user=ocehb                          # А тут без доменной части адреса
        set smtp-auth-password=***                        # Пароль, который используется в web-интерфейсе
        set from="ocehb <ocehb@yandex.ru>"                # Указать правильный адрес, иначе обругает, что не
                                                          # принадлежит
}


Ну и использование:
# print test | mail -v -A gmail -s "Test of Gmail" root@whitehouse.gov



This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

ocehb: (Default)
ocehb

January 2021

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 2nd, 2025 03:44 pm
Powered by Dreamwidth Studios