---
# System prepended metadata

title: Sat SRV 3

---

# Sat SRV 3
## Todo


Services to setup
- [x] Postfix 
- [x] Mailman 
- [x] Postorius 
- [x] Hyperkitty 
- [x] Fail2Ban
- [x] SpamAssassin 
- [x] MariaDB
- [x] Apache 
- [x] Django 
- [ ] LDAP
- [ ] Netxcloud
- [ ] RAID driver
- [x] Bookstack
- [x] Winbiz VM
- [x] Guacamole
- [ ] ...







## Documentation
### Config IP
```
IP: 192.26.40.4
Mask: 255.255.255.128
Gateway: 192.26.40.1
DNS primaire : 128.178.15.8
DNS secondaire : 128.178.15.7
``` 


### RAID
Raid 10 Hardware
4 disques de 1.8TB

### Archlinux
Version:
Kernel: Linux 5.4.39-1-lts
...


### Filesystem (BTRFS)
todo




### Postfix
Configuration files are in `/etc/postfix`
Reload configuration using `postfix reload`
* `master.cf` defines what Postfix services are enabled and how clients connect to them.
* `main.cf` is the main configuration file.

Process owner: `postfix` user

Aliases location `/etc/postfix/aliases`
After changing alias file run:`newaliases`

Logs can be accessed by 
```journalctl -u postfix.service --since="2020-05-09 17:30:00"```


### MariaDB
launch with `mariadb -u user`

### CertBot

todo

### Django
Project location: `/srv/http/SatWeb/`
Project settings are in the `/satweb/` folder


### Apache
Service control:`apachectl restart/start/stop`
Configuration location: `/etc/httpd/conf`
Logs: `/var/log/httpd/`


### Mailman3
#### Mailman Core
Configuration folder `/etc/mailman.cfg`
Config mailman archiver `/etc/mailman-hyperkitty.cfg` 

Use mailman user:
``` sudo su -l mailman -s /bin/bash ```
How to start mailman(as mailman using venv): 
```mailman start```

Mailman logs:
`sudo cat /var/tmp/logs/`

#### Django UI
Django mailman config `/opt/mailman/mailman-suite/.../settings.py`
Data location: `/var/tmp/mailman`
Mailman logs:
`sudo cat /opt/mailman/mailman-suite/mailman-suite_project/logs/mailmansuite.log `
Mailman wsgi logs:
`sudo cat /var/log/httpd/mailman.satellite.bar-error_log`


### vsftpd (FTP)
Configuration: `/etc/vsftpd.conf`


### ClamAV
Antivirus
`clamav-freshclam.service` updates the database
`clamav-daemon.service` is the service itself
see arch doc

### Bookstack
Config in `/etc/webapps/bookstack`
some shit in `/var/lib/bookstack`
Core is in `/usr/share/webapps/bookstack`