Mod:Postfix bugfixes

This commit is contained in:
2021-02-05 20:58:24 +01:00
parent 402a4b68e5
commit 84cda6333f
3 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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