Skip to content

Commit bf63228

Browse files
authored
Update features and donate page (hestiacp#4480)
* Update features and donate page * Add v-add-mail-domain hooks info And v-delete-mail-domain hook
1 parent 70662be commit bf63228

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

docs/_data/features.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/** @type {FeatureListItem[]} */
44
export const users = [
5-
{ text: 'Support for SFTP chroot jails' },
5+
{ text: 'Support for SFTP and SSH chroot jails' },
66
{ text: 'Two-Factor Authentication support for the Admin Panel' },
77
{ text: 'SSH keys for login via SFTP and SSH' },
88
];
@@ -15,7 +15,7 @@ export const webDomains = [
1515
{ text: 'MultiIP support for Web/Mail/DNS' },
1616
{ text: 'Support for PHP version 5.6 up to 8.3 with PHP8.2 as default' },
1717
{
18-
text: 'One-Click Install Apps',
18+
text: 'One-Click Install Apps (Via CLI or Admin Panel)',
1919
items: [
2020
{ text: 'WordPress' },
2121
{ text: 'Dokuwiki' },
@@ -27,6 +27,7 @@ export const webDomains = [
2727
{ text: 'OpenCart' },
2828
{ text: 'Prestashop' },
2929
{ text: 'Symphony' },
30+
{ text: 'Joomla' },
3031
],
3132
},
3233
];

docs/docs/server-administration/email.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,55 @@ hide client_send = ^SMTP_RELAY_USER^SMTP_RELAY_PASS
196196
```
197197

198198
[See forum topic for more info](https://forum.hestiacp.com/t/oracle-cloud-email-as-relay-doesnt-works/11304/19?)
199+
200+
## Setting up mail hooks
201+
202+
Some SMTP relay services might require you to set the domain within the SMTP relay account. To automate this hooks have been added to v-add-mail-domain and v-delete-mail domains.
203+
204+
Create: $HESTIA/data/extensions/add-mail-domain.sh and $HESTIA/data/extensions/v-delete-mail-domain.sh
205+
206+
### Proxmox mail server
207+
208+
See: [Github](https://github.com/hestiacp/hestiacp/pull/4365)
209+
210+
```bash
211+
# v-add-mail-domain
212+
SMTP_RELAY_PMG_USER="user"
213+
SMTP_RELAY_PMG_PASS="password"
214+
SMTP_RELAY_PMG_HOST="host"
215+
SMTP_RELAY_PMG_PORT="port"
216+
217+
pmg_auth=$(curl -s --request POST -d "username=$SMTP_RELAY_PMG_USER&password=$SMTP_RELAY_PMG_PASS" \
218+
--url https://$SMTP_RELAY_PMG_HOST:$SMTP_RELAY_PMG_PORT/api2/json/access/ticket)
219+
pmg_ticket=$(echo $pmg_auth | jq -r '.data.ticket')
220+
pmg_csrf=$(echo $pmg_auth | jq -r '.data.CSRFPreventionToken')
221+
if [ -n "$pmg_ticket" ]; then
222+
pmg_config_domain=$(curl -s --request POST -d "domain=$domain" \
223+
-H "CSRFPreventionToken: $pmg_csrf" -H "Cookie: PMGAuthCookie=$pmg_ticket" \
224+
https://$SMTP_RELAY_PMG_HOST:$SMTP_RELAY_PMG_PORT/api2/json/config/domains)
225+
pmg_config_transport=$(curl -s --request POST -d "domain=$domain&host=$SMTP_RELAY_PMG_LOCAL_IP" \
226+
-H "CSRFPreventionToken: $pmg_csrf" -H "Cookie: PMGAuthCookie=$pmg_ticket" \
227+
https://$SMTP_RELAY_PMG_HOST:$SMTP_RELAY_PMG_PORT/api2/json/config/transport)
228+
fi
229+
230+
# v-delete-mail-domain.sh
231+
SMTP_RELAY_PMG_USER="user"
232+
SMTP_RELAY_PMG_PASS="password"
233+
SMTP_RELAY_PMG_HOST="host"
234+
SMTP_RELAY_PMG_PORT="port"
235+
236+
if [ -n "$SMTP_RELAY_PMG" ]; then
237+
pmg_auth=$(curl -s --request POST -d "username=$SMTP_RELAY_PMG_USER&password=$SMTP_RELAY_PMG_PASS" \
238+
--url https://$SMTP_RELAY_PMG_HOST:$SMTP_RELAY_PMG_PORT/api2/json/access/ticket)
239+
pmg_ticket=$(echo $pmg_auth | jq -r '.data.ticket')
240+
pmg_csrf=$(echo $pmg_auth | jq -r '.data.CSRFPreventionToken')
241+
if [ -n "$pmg_ticket" ]; then
242+
pmg_config_domain=$(curl -s --request DELETE \
243+
-H "CSRFPreventionToken: $pmg_csrf" -H "Cookie: PMGAuthCookie=$pmg_ticket" \
244+
https://$SMTP_RELAY_PMG_HOST:$SMTP_RELAY_PMG_PORT/api2/json/config/domains/$domain)
245+
pmg_config_transport=$(curl -s --request DELETE \
246+
-H "CSRFPreventionToken: $pmg_csrf" -H "Cookie: PMGAuthCookie=$pmg_ticket" \
247+
https://$SMTP_RELAY_PMG_HOST:$SMTP_RELAY_PMG_PORT/api2/json/config/transport/$domain)
248+
fi
249+
fi
250+
```

docs/donate.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ Here are our official donation platforms:
1515
- Ethereum: 0xfF3Dd2c889bd0Ff73d8085B84A314FC7c88e5D51
1616
- Binance: bnb1l4ywvw5ejfmsgjdcx8jn5lxj7zsun8ktfu7rh8
1717
- Smart Chain: 0xfF3Dd2c889bd0Ff73d8085B84A314FC7c88e5D51
18+
- Monero/XMR: 45p5eKWfp3kYcY3cBtKq2TWpp5HGYFAbre2Xd76sRhWGXfahAj5MkxzV2oPF2VqU617pwS5JZh1h4gy6jTm73vE7PnQ48Rs

0 commit comments

Comments
 (0)