# Incredible PBX

#### Post-Installation

##### Reset the hostname and password:

```bash
# Set the hostname
hostnamectl set-hostname <your-FQDN-name>

```

##### Set the password

```bash
passwd # for Root 
admin-pw-change # for FreePBX 
apache-pw-change # for Reminders and AsteriDex
```

##### Set Gmail as an SMTP Smarthost

Create an App password for your Gmail account: [https://support.google.com/accounts/answer/185833?hl=en](https://support.google.com/accounts/answer/185833?hl=en)

```bash
/root/enable-gmail-smarthost-for-sendmail
```

##### Stop Webmin

```bash
systemctl stop webmin
systemctl disable webmin
```

##### Disable Firewall

系統預設會啟用防火牆，而且不可關閉，這是因為安全考量。某些情況或原因需要將它強制關閉，可以按照下列步驟。

1 停用服務

```bash
sudo systemctl disable iptables --now
```

2 關閉自動啟動

```bash
# 取消檔案唯讀
sudo chattr -i /etc/rc.local

sudo vi /etc/rc.local
# 註解這行，存檔離開
#/usr/local/sbin/iptables-restart

# 恢復檔案唯讀
sudo chattr +i /etc/rc.local
```

3 重啟系統