leave qualify_domain and qualify_recipient unconfigured, ajust system_aliases
This commit is contained in:
parent
6d176d0900
commit
d325654151
|
@ -952,7 +952,7 @@ virtual_alias_catchall:
|
||||||
|
|
||||||
system_aliases:
|
system_aliases:
|
||||||
driver = redirect
|
driver = redirect
|
||||||
domains = $primary_hostname:$qualify_domain
|
domains = $primary_hostname:$qualify_domain:$qualify_recipient
|
||||||
allow_fail
|
allow_fail
|
||||||
allow_defer
|
allow_defer
|
||||||
data = ${lookup{$local_part}lsearch{/etc/aliases}}
|
data = ${lookup{$local_part}lsearch{/etc/aliases}}
|
||||||
|
@ -982,7 +982,7 @@ system_aliases:
|
||||||
userforward:
|
userforward:
|
||||||
driver = redirect
|
driver = redirect
|
||||||
check_local_user
|
check_local_user
|
||||||
domains = $primary_hostname:$qualify_domain
|
domains = $primary_hostname:$qualify_domain:$qualify_recipient
|
||||||
file = $home/.forward
|
file = $home/.forward
|
||||||
no_verify
|
no_verify
|
||||||
no_expn
|
no_expn
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
qualify_domain = example.com
|
#qualify_domain = example.com
|
||||||
|
#qualify_recipient = fqdn.example.com
|
||||||
|
|
||||||
hide mysql_servers = localhost/vmail/vmail/password
|
hide mysql_servers = localhost/vmail/vmail/password
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,7 @@ systemctl enable srsd
|
||||||
systemctl start srsd
|
systemctl start srsd
|
||||||
|
|
||||||
# exim config
|
# exim config
|
||||||
|
fqdn=`hostname -f`
|
||||||
maildomain=`hostname -d`
|
maildomain=`hostname -d`
|
||||||
sed -i 's/size 10M/daily/g' /etc/logrotate.d/exim4-paniclog
|
sed -i 's/size 10M/daily/g' /etc/logrotate.d/exim4-paniclog
|
||||||
install --owner=Debian-exim --group=Debian-exim --mode=640 /dev/null /etc/exim4/relay_domains
|
install --owner=Debian-exim --group=Debian-exim --mode=640 /dev/null /etc/exim4/relay_domains
|
||||||
|
@ -131,6 +132,7 @@ chown Debian-exim:Debian-exim /etc/exim4/skip_greylisting_hosts
|
||||||
chmod 640 /etc/exim4/skip_greylisting_hosts
|
chmod 640 /etc/exim4/skip_greylisting_hosts
|
||||||
sed -i "s|example.com|$maildomain|g" /etc/exim4/skip_greylisting_hosts
|
sed -i "s|example.com|$maildomain|g" /etc/exim4/skip_greylisting_hosts
|
||||||
sed -i "s|password|$VMAILPASS|g" /etc/exim4/exim_local.conf
|
sed -i "s|password|$VMAILPASS|g" /etc/exim4/exim_local.conf
|
||||||
|
sed -i "s|fqdn.example.com|$fqdn|g" /etc/exim4/exim_local.conf
|
||||||
sed -i "s|example.com|$maildomain|g" /etc/exim4/exim_local.conf
|
sed -i "s|example.com|$maildomain|g" /etc/exim4/exim_local.conf
|
||||||
touch /etc/exim4/srsd.secret
|
touch /etc/exim4/srsd.secret
|
||||||
chmod 640 /etc/exim4/srsd.secret
|
chmod 640 /etc/exim4/srsd.secret
|
||||||
|
|
Loading…
Reference in New Issue
Block a user