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
|
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//_}"
|
cat << EOF > /etc/update-motd.d/51-opendkim-"${sitename//_}"
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ if [ $IMODE = l ]; then
|
|||||||
break;;
|
break;;
|
||||||
[Nn]* )
|
[Nn]* )
|
||||||
echo 'Enter mail addres for sending mail? '
|
echo 'Enter mail addres for sending mail? '
|
||||||
read mail
|
read mailas
|
||||||
maildomain=$(sed -e 's/[^@]*@//' <<< "$mail")
|
maildomain=$(sed -e 's/[^@]*@//' <<< "$mailas")
|
||||||
break;;
|
break;;
|
||||||
* )echo "Choose yes or no.";;
|
* )echo "Choose yes or no.";;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -40,7 +40,8 @@ adduser postfix opendkim
|
|||||||
rm -rf /etc/opendkim.d
|
rm -rf /etc/opendkim.d
|
||||||
mkdir -p /etc/opendkim.d/keys
|
mkdir -p /etc/opendkim.d/keys
|
||||||
chown opendkim:opendkim /etc/opendkim.d/keys -R
|
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
|
cat <<EOF > /etc/opendkim.d/TrustedHosts
|
||||||
127.0.0.1
|
127.0.0.1
|
||||||
::1
|
::1
|
||||||
|
|||||||
Reference in New Issue
Block a user