Jarno Rankinen revised this gist . Go to revision
1 file changed, 1 insertion, 1 deletion
README.md
@@ -3,7 +3,7 @@ Postfix/Dovecot/Opendkim server transfer (RHEL 8 -based) | |||
3 | 3 | 1. Sync user accounts, UIDs, GIDs and passwords should be identical on both servers | |
4 | 4 | 2. Required packages: | |
5 | 5 | ``` | |
6 | - | epel-release postfix dovecot certbot pypolicyd-spf opendkim opendkim-tools perl-Getopt-Long | |
6 | + | epel-release postfix dovecot certbot pypolicyd-spf python3-authres opendkim opendkim-tools perl-Getopt-Long | |
7 | 7 | ``` | |
8 | 8 | ||
9 | 9 | 3. Create user for policyd-spf: |
Jarno Rankinen revised this gist . Go to revision
1 file changed, 6 insertions, 1 deletion
README.md
@@ -3,7 +3,12 @@ Postfix/Dovecot/Opendkim server transfer (RHEL 8 -based) | |||
3 | 3 | 1. Sync user accounts, UIDs, GIDs and passwords should be identical on both servers | |
4 | 4 | 2. Required packages: | |
5 | 5 | ``` | |
6 | - | epel-release postfix dovecot certbot pypolicyd-spf opendkim perl-Getopt-Long | |
6 | + | epel-release postfix dovecot certbot pypolicyd-spf opendkim opendkim-tools perl-Getopt-Long | |
7 | + | ``` | |
8 | + | ||
9 | + | 3. Create user for policyd-spf: | |
10 | + | ``` | |
11 | + | adduser policyd-spf --user-group --no-create-home -s /bin/false | |
7 | 12 | ``` | |
8 | 13 | ||
9 | 14 | 4. Sync application configurations: |
Jarno Rankinen revised this gist . Go to revision
1 file changed, 7 insertions, 3 deletions
README.md
@@ -1,8 +1,12 @@ | |||
1 | - | Postfix/Dovecot/Opendkim server transfer | |
1 | + | Postfix/Dovecot/Opendkim server transfer (RHEL 8 -based) | |
2 | 2 | ||
3 | 3 | 1. Sync user accounts, UIDs, GIDs and passwords should be identical on both servers | |
4 | + | 2. Required packages: | |
5 | + | ``` | |
6 | + | epel-release postfix dovecot certbot pypolicyd-spf opendkim perl-Getopt-Long | |
7 | + | ``` | |
4 | 8 | ||
5 | - | 2. Sync application configurations: | |
9 | + | 4. Sync application configurations: | |
6 | 10 | ``` | |
7 | 11 | rsync -arv /etc/letsencrypt/ <ip>:/etc/letsencrypt/ | |
8 | 12 | rsync -arv /etc/opendkim/ <ip>:/etc/opendkim/ | |
@@ -11,7 +15,7 @@ rsync -arv /etc/opendkim.conf <ip>:/etc/opendkim.conf | |||
11 | 15 | rsync -arv /etc/dovecot/ <ip>:/etc/dovecot/ | |
12 | 16 | ``` | |
13 | 17 | ||
14 | - | 3. Sync mail data: | |
18 | + | 4. Sync mail data: | |
15 | 19 | ``` | |
16 | 20 | rsync -avr /var/spool/mail/ <ip>:/var/spool/mail/ | |
17 | 21 | rsync -avr /var/spool/mail/ <ip>:/var/spool/mail/ |
Jarno Rankinen revised this gist . Go to revision
1 file changed, 22 insertions
README.md(file created)
@@ -0,0 +1,22 @@ | |||
1 | + | Postfix/Dovecot/Opendkim server transfer | |
2 | + | ||
3 | + | 1. Sync user accounts, UIDs, GIDs and passwords should be identical on both servers | |
4 | + | ||
5 | + | 2. Sync application configurations: | |
6 | + | ``` | |
7 | + | rsync -arv /etc/letsencrypt/ <ip>:/etc/letsencrypt/ | |
8 | + | rsync -arv /etc/opendkim/ <ip>:/etc/opendkim/ | |
9 | + | rsync -arv /etc/postfix/ <ip>:/etc/postfix/ | |
10 | + | rsync -arv /etc/opendkim.conf <ip>:/etc/opendkim.conf | |
11 | + | rsync -arv /etc/dovecot/ <ip>:/etc/dovecot/ | |
12 | + | ``` | |
13 | + | ||
14 | + | 3. Sync mail data: | |
15 | + | ``` | |
16 | + | rsync -avr /var/spool/mail/ <ip>:/var/spool/mail/ | |
17 | + | rsync -avr /var/spool/mail/ <ip>:/var/spool/mail/ | |
18 | + | rsync -avr /var/spool/mqueue/ <ip>:/var/spool/mqueue/ | |
19 | + | rsync -avr /var/spool/clientmqueue/ <ip>:/var/spool/clientmqueue/ | |
20 | + | rsync -avr /var/spool/opendkim/ <ip>:/var/spool/opendkim/ | |
21 | + | rsync -avr /var/spool/postfix/ <ip>:/var/spool/postfix/ | |
22 | + | ``` |