| 1 |
<!DOCTYPE html> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv='content-type' content='text/html;charset=utf-8'> |
| 5 |
<meta name='generator' content='Ronn-NG/v0.10.1 (http://github.com/apjanke/ronn-ng/tree/0.10.1)'> |
| 6 |
<title>go-sendxmpp(5) - A tool to send messages to an XMPP contact or MUC.</title> |
| 7 |
<style type='text/css' media='all'> |
| 8 |
/* style: man */ |
| 9 |
body#manpage {margin:0} |
| 10 |
.mp {max-width:100ex;padding:0 9ex 1ex 4ex} |
| 11 |
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0} |
| 12 |
.mp h2 {margin:10px 0 0 0} |
| 13 |
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex} |
| 14 |
.mp h3 {margin:0 0 0 4ex} |
| 15 |
.mp dt {margin:0;clear:left} |
| 16 |
.mp dt.flush {float:left;width:8ex} |
| 17 |
.mp dd {margin:0 0 0 9ex} |
| 18 |
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left} |
| 19 |
.mp pre {margin-bottom:20px} |
| 20 |
.mp pre+h2,.mp pre+h3 {margin-top:22px} |
| 21 |
.mp h2+pre,.mp h3+pre {margin-top:5px} |
| 22 |
.mp img {display:block;margin:auto} |
| 23 |
.mp h1.man-title {display:none} |
| 24 |
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143} |
| 25 |
.mp h2 {font-size:16px;line-height:1.25} |
| 26 |
.mp h1 {font-size:20px;line-height:2} |
| 27 |
.mp {text-align:justify;background:#fff} |
| 28 |
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211} |
| 29 |
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201} |
| 30 |
.mp u {text-decoration:underline} |
| 31 |
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211} |
| 32 |
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none} |
| 33 |
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff} |
| 34 |
.mp b.man-ref {font-weight:normal;color:#434241} |
| 35 |
.mp pre {padding:0 4ex} |
| 36 |
.mp pre code {font-weight:normal;color:#434241} |
| 37 |
.mp h2+pre,h3+pre {padding-left:0} |
| 38 |
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px} |
| 39 |
ol.man-decor {width:100%} |
| 40 |
ol.man-decor li.tl {text-align:left} |
| 41 |
ol.man-decor li.tc {text-align:center;letter-spacing:4px} |
| 42 |
ol.man-decor li.tr {text-align:right;float:right} |
| 43 |
</style> |
| 44 |
</head> |
| 45 |
<!-- |
| 46 |
The following styles are deprecated and will be removed at some point: |
| 47 |
div#man, div#man ol.man, div#man ol.head, div#man ol.man. |
| 48 |
|
| 49 |
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and |
| 50 |
.man-navigation should be used instead. |
| 51 |
--> |
| 52 |
<body id='manpage'> |
| 53 |
<div class='mp' id='man'> |
| 54 |
|
| 55 |
<div class='man-navigation' style='display:none'> |
| 56 |
<a href="#NAME">NAME</a> |
| 57 |
<a href="#LOCATION">LOCATION</a> |
| 58 |
<a href="#FORMAT">FORMAT</a> |
| 59 |
<a href="#REQUIRED-SETTINGS">REQUIRED SETTINGS</a> |
| 60 |
<a href="#OPTIONS">OPTIONS</a> |
| 61 |
<a href="#AUTHOR">AUTHOR</a> |
| 62 |
<a href="#REPORTING-BUGS">REPORTING BUGS</a> |
| 63 |
<a href="#COPYRIGHT">COPYRIGHT</a> |
| 64 |
<a href="#SEE-ALSO">SEE ALSO</a> |
| 65 |
</div> |
| 66 |
|
| 67 |
<ol class='man-decor man-head man head'> |
| 68 |
<li class='tl'>go-sendxmpp(5)</li> |
| 69 |
<li class='tc'></li> |
| 70 |
<li class='tr'>go-sendxmpp(5)</li> |
| 71 |
</ol> |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
<h2 id="NAME">NAME</h2> |
| 76 |
<p class="man-name"> |
| 77 |
<code>go-sendxmpp</code> - <span class="man-whatis">A tool to send messages to an XMPP contact or MUC.</span> |
| 78 |
</p> |
| 79 |
<h2 id="LOCATION">LOCATION</h2> |
| 80 |
|
| 81 |
<p>The account data is expected at <code>~/.config/go-sendxmpp/config</code> (preferred), <code>~/.config/go-sendxmpp/sendxmpprc</code> |
| 82 |
(deprecated) or <code>~/.sendxmpprc</code> (for compatibility with the original perl sendxmpp) if no other configuration file |
| 83 |
location is specified with -f or --file. The configuration file is expected to be in the following format:</p> |
| 84 |
|
| 85 |
<h2 id="FORMAT">FORMAT</h2> |
| 86 |
|
| 87 |
<p>username: [<var>your_jid</var>] <br> |
| 88 |
jserver: [<var>jabber_server</var>] <br> |
| 89 |
port: [<var>jabber_port</var>] <br> |
| 90 |
password: [<var>your_jabber_password</var>] <br> |
| 91 |
eval_password: [<var>command_to_unlock_your_password</var>] <br> |
| 92 |
alias: [<var>your_alias</var>] <br> |
| 93 |
allow_plain: [<var>bool</var>] <br> |
| 94 |
no_root_warning: [<var>bool</var>] <br> |
| 95 |
no_legacy_pgp_warning: [<var>bool</var>] <br> |
| 96 |
ox_trust_mode: [blind|tofu]</p> |
| 97 |
|
| 98 |
<h2 id="REQUIRED-SETTINGS">REQUIRED SETTINGS</h2> |
| 99 |
|
| 100 |
<p>If all necessary settings are supplied as command line arguments no config file is needed at all. |
| 101 |
Setting <code>jserver</code> and <code>port</code> might not be necessary depending on the used server. <br> |
| 102 |
You should either use a password manager and the setting <code>eval_password</code> or add |
| 103 |
your password in plaintext to the config file with the setting <code>password</code>. |
| 104 |
Please be careful with <code>eval_password</code> as any command put there will be executed.</p> |
| 105 |
|
| 106 |
<h2 id="OPTIONS">OPTIONS</h2> |
| 107 |
|
| 108 |
<dl> |
| 109 |
<dt><code>username</code></dt> |
| 110 |
<dd>Your JID, e.g. <strong>[email protected]</strong>.</dd> |
| 111 |
<dt><code>jserver</code></dt> |
| 112 |
<dd>Your server, e.g. <strong>xmpp.example.com</strong>. |
| 113 |
Should not be necessary if the server is set up properly.</dd> |
| 114 |
<dt><code>port</code></dt> |
| 115 |
<dd>The client-to-server port of the XMPP server, e.g. <strong>5222</strong>. |
| 116 |
Should not be necessary if the server is set up properly.</dd> |
| 117 |
<dt><code>password</code></dt> |
| 118 |
<dd>Your accounts password, e.g. <strong>hunter2</strong> (please, do not use <strong>hunter2</strong>). |
| 119 |
Use <code>"</code> if your password contains spaces, e.g. <strong>"hunter 2"</strong> (please, also do not use <strong>hunter 2</strong>).</dd> |
| 120 |
<dt><code>eval_password</code></dt> |
| 121 |
<dd>A command to retrieve the password from a password manager, e.g. <strong>pass xmpp/[email protected]</strong>.</dd> |
| 122 |
<dt><code>alias</code></dt> |
| 123 |
<dd>The alias/nickname for chatrooms, e.g. <strong>Martin</strong> or <strong>"My nick contains spaces"</strong>.</dd> |
| 124 |
<dt><code>allow_plain</code></dt> |
| 125 |
<dd>Boolean to allow PLAIN authentication. Note that this setting has no effect if there was a successful |
| 126 |
connection using a SCRAM authentication mechanism before. In that case PLAIN is not allowed to prevent |
| 127 |
downgrades by a man-in-the-middle attack. <br> |
| 128 |
Allowed values: <strong>true</strong>/<strong>false</strong> (Default: false)</dd> |
| 129 |
<dt><code>no_root_warning</code></dt> |
| 130 |
<dd>Boolean to disable the warning when running as root. Note that running as root is discouraged although |
| 131 |
go-sendxmpp tries to drop the root privileges before doing network calls. Be aware that <strong>OX</strong>, |
| 132 |
<strong>legacy PGP</strong> and the pinning to not use <strong>PLAIN</strong> authentication after a successful <strong>SCRAM</strong> |
| 133 |
authentication are disabled as those need file system access in the private user scope after dropping |
| 134 |
the privileges. <br> |
| 135 |
Allowed values: <strong>true</strong>/<strong>false</strong> (Default: false)</dd> |
| 136 |
<dt><code>no_legacy_pgp_warning</code></dt> |
| 137 |
<dd>Boolean to disable the warning when using <strong>legacy PGP</strong>. Please note, that *legacy PGP** is deprecated |
| 138 |
and will be removed in an upcoming update. It is highly recommended to use OX instead. <br> |
| 139 |
Allowed values: <strong>true</strong>/<strong>false</strong> (Default: false)</dd> |
| 140 |
<dt><code>ox_trust_mode</code></dt> |
| 141 |
<dd>Accepts the strings <strong>tofu</strong> and <strong>blind</strong>. Tofu means trust on first usage and accepts any OX key if none |
| 142 |
is stored in the cache yet. If the key ID changes go-sendxmpp will refuse to encrypt. Blind means |
| 143 |
go-sendxmpp will import and trust any new key that is advertised by the recipient. <br> |
| 144 |
Allowed values: <strong>tofu</strong>/<strong>blind</strong> (Default: blind)</dd> |
| 145 |
</dl> |
| 146 |
|
| 147 |
<h2 id="AUTHOR">AUTHOR</h2> |
| 148 |
|
| 149 |
<p>Written by Martin Dosch.</p> |
| 150 |
|
| 151 |
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2> |
| 152 |
|
| 153 |
<p>Report bugs at <a href="https://salsa.debian.org/mdosch/go-sendxmpp/-/work_items" data-bare-link="true">https://salsa.debian.org/mdosch/go-sendxmpp/-/work_items</a>.</p> |
| 154 |
|
| 155 |
<h2 id="COPYRIGHT">COPYRIGHT</h2> |
| 156 |
|
| 157 |
<p>Copyright (c) Martin Dosch |
| 158 |
License: BSD 2-clause License</p> |
| 159 |
|
| 160 |
<h2 id="SEE-ALSO">SEE ALSO</h2> |
| 161 |
|
| 162 |
<p><span class="man-ref">go-sendxmpp<span class="s">(1)</span></span>, <span class="man-ref">sendxmpp<span class="s">(1)</span></span></p> |
| 163 |
|
| 164 |
<ol class='man-decor man-foot man foot'> |
| 165 |
<li class='tl'></li> |
| 166 |
<li class='tc'>July 2026</li> |
| 167 |
<li class='tr'>go-sendxmpp(5)</li> |
| 168 |
</ol> |
| 169 |
|
| 170 |
</div> |
| 171 |
</body> |
| 172 |
</html> |