README.md
· 896 B · Markdown
Raw
Postfix/Dovecot/Opendkim server transfer (RHEL 8 -based)
1. Sync user accounts, UIDs, GIDs and passwords should be identical on both servers
2. Required packages:
```
epel-release postfix dovecot certbot pypolicyd-spf opendkim perl-Getopt-Long
```
4. Sync application configurations:
```
rsync -arv /etc/letsencrypt/ <ip>:/etc/letsencrypt/
rsync -arv /etc/opendkim/ <ip>:/etc/opendkim/
rsync -arv /etc/postfix/ <ip>:/etc/postfix/
rsync -arv /etc/opendkim.conf <ip>:/etc/opendkim.conf
rsync -arv /etc/dovecot/ <ip>:/etc/dovecot/
```
4. Sync mail data:
```
rsync -avr /var/spool/mail/ <ip>:/var/spool/mail/
rsync -avr /var/spool/mail/ <ip>:/var/spool/mail/
rsync -avr /var/spool/mqueue/ <ip>:/var/spool/mqueue/
rsync -avr /var/spool/clientmqueue/ <ip>:/var/spool/clientmqueue/
rsync -avr /var/spool/opendkim/ <ip>:/var/spool/opendkim/
rsync -avr /var/spool/postfix/ <ip>:/var/spool/postfix/
```
Postfix/Dovecot/Opendkim server transfer (RHEL 8 -based)
- Sync user accounts, UIDs, GIDs and passwords should be identical on both servers
- Required packages:
epel-release postfix dovecot certbot pypolicyd-spf opendkim perl-Getopt-Long
- Sync application configurations:
rsync -arv /etc/letsencrypt/ <ip>:/etc/letsencrypt/
rsync -arv /etc/opendkim/ <ip>:/etc/opendkim/
rsync -arv /etc/postfix/ <ip>:/etc/postfix/
rsync -arv /etc/opendkim.conf <ip>:/etc/opendkim.conf
rsync -arv /etc/dovecot/ <ip>:/etc/dovecot/
- Sync mail data:
rsync -avr /var/spool/mail/ <ip>:/var/spool/mail/
rsync -avr /var/spool/mail/ <ip>:/var/spool/mail/
rsync -avr /var/spool/mqueue/ <ip>:/var/spool/mqueue/
rsync -avr /var/spool/clientmqueue/ <ip>:/var/spool/clientmqueue/
rsync -avr /var/spool/opendkim/ <ip>:/var/spool/opendkim/
rsync -avr /var/spool/postfix/ <ip>:/var/spool/postfix/