コンテンツにスキップ

「NBSMTP」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
11行目: 11行目:
{{AUR|nbsmtp}} パッケージをインストールします。
{{AUR|nbsmtp}} パッケージをインストールします。


== Forward to a Gmail Mail Server ==
== Gmail メール サーバーに転送 ==


nbSMTP を設定するには、その設定ファイル ({{ic|~/.nbsmtprc}}) を編集し、アカウント設定を入力する必要があります。
To configure nbSMTP, you will have to edit its configuration file ({{ic|~/.nbsmtprc}}) and enter your account settings:


{{hc|~/.nbsmtprc|2=
{{hc|~/.nbsmtprc|2=
24行目: 24行目:
}}
}}


このファイルのパーミッションには注意してください。これを実行することをお勧めします:
Be careful with permissions on this file, it is recommendable to run this:


chmod 600 ~/.nbsmtprc
chmod 600 ~/.nbsmtprc


To test the configuration, create a file ({{ic|testemail}}):
設定をテストするには、ファイル ({{ic|testemail}}) を作成します。


{{hc|testemail|2=
{{hc|testemail|2=
37行目: 37行目:
}}
}}


そして実行します。
and then run:


/usr/bin/nbsmtp < testemail
/usr/bin/nbsmtp < testemail

2022年11月9日 (水) 19:15時点における版

nbSMTP MAN ページから:

nbSMTP は軽量の SMTP クライアントです。 STDIN からメッセージを受け取り、リレーホストに送信するだけです。リレーホストは完全な SMTP サーバーであることを意図しており、実際にメッセージを送信します。

インストール

nbsmtpAUR パッケージをインストールします。

Gmail メール サーバーに転送

nbSMTP を設定するには、その設定ファイル (~/.nbsmtprc) を編集し、アカウント設定を入力する必要があります。

~/.nbsmtprc
relayhost=smtp.gmail.com
port=587
use_starttls=True
fromaddr=myusername@gmail.com
auth_user=myusername@gmail.com
auth_pass=myultrasecretpassword

このファイルのパーミッションには注意してください。これを実行することをお勧めします:

chmod 600 ~/.nbsmtprc

設定をテストするには、ファイル (testemail) を作成します。

testemail
To: myusername@gmail.com
From: myusername@gmail.com
Subject: nbsmtp test
hello email world

そして実行します。

/usr/bin/nbsmtp < testemail