if echo $mydestination | grep -q ", \$mydomain"; then
mydestination="`echo $mydestination | sed 's/, \$mydomain//g'`"
fi
- if echo $mydestination | grep -q "localhost.\$mydomain"; then
+ if ! echo $mydestination | grep -q "localhost.\$mydomain"; then
mydestination="$mydestination, localhost.\$mydomain"
fi
postconf -e mydestination="$mydestination"