Mod:Postfix bugfixes
This commit is contained in:
@@ -11,7 +11,7 @@ fi
|
||||
|
||||
|
||||
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/SubModules/postfix/opendkim-init.sh -o ~/OpenDKIMInit-$sitename.sh
|
||||
sed -i -e 's/DOMAINname/'$domain'/g' -e 's/SITEName/'${sitename//_}'/g' ~/OpenDKIMInit-$sitename.sh
|
||||
sed -i -e 's/DOMAINname/'$maildomain'/g' -e 's/SITEName/'${sitename//_}'/g' ~/OpenDKIMInit-$sitename.sh
|
||||
|
||||
cat << EOF > /etc/update-motd.d/51-opendkim-"${sitename//_}"
|
||||
#!/bin/sh
|
||||
|
||||
@@ -19,8 +19,8 @@ if [ $IMODE = l ]; then
|
||||
break;;
|
||||
[Nn]* )
|
||||
echo 'Enter mail addres for sending mail? '
|
||||
read mail
|
||||
maildomain=$(sed -e 's/[^@]*@//' <<< "$mail")
|
||||
read mailas
|
||||
maildomain=$(sed -e 's/[^@]*@//' <<< "$mailas")
|
||||
break;;
|
||||
* )echo "Choose yes or no.";;
|
||||
esac
|
||||
|
||||
@@ -40,7 +40,8 @@ adduser postfix opendkim
|
||||
rm -rf /etc/opendkim.d
|
||||
mkdir -p /etc/opendkim.d/keys
|
||||
chown opendkim:opendkim /etc/opendkim.d/keys -R
|
||||
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/SubModules/postfix/config/opendkim.conf -o /etc/opendkim
|
||||
curl --retry 7 --retry-delay 5 -s "$repo"/raw/"$branchtype"/"$branch"/SubModules/postfix/config/opendkim.conf -o /etc/opendkim.conf
|
||||
touch /etc/opendkim.d/SigningTable
|
||||
cat <<EOF > /etc/opendkim.d/TrustedHosts
|
||||
127.0.0.1
|
||||
::1
|
||||
|
||||
Reference in New Issue
Block a user