Skip to content

Commit

Permalink
Make postfix test script more configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed Aug 22, 2014
1 parent 0f06774 commit 7144e2a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions postfix-test
Expand Up @@ -2,14 +2,17 @@

set -e

SMTP_USER=user
SMTP_PASSWORD=password
user=${SMTP_USER:-$USER}
host=${SMTP_HOST:-localhost}
port=${SMTP_PORT:-25}
echo -n "Password:"
read -s password
EMAIL=strycore@gmail.com
USER_HASH=$(printf $SMTP_USER | base64)
PASSWORD_HASH=$(printf $SMTP_PASSWORD | base64)
USER_HASH=$(printf $user | base64)
PASSWORD_HASH=$(printf $password | base64)

echo "Testing saslauthd standalone. Root privileges required"
sudo testsaslauthd -u $SMTP_USER -p $SMTP_PASSWORD
#echo "Testing saslauthd standalone. Root privileges required"
# sudo testsaslauthd -u $user -p $SMTP_PASSWORD

cat << EOF
Opening telnet connection for testing postfix
Expand All @@ -32,4 +35,4 @@ quit
EOF

echo 'now type: ehlo localhost'
telnet localhost 25
telnet $host $port

0 comments on commit 7144e2a

Please sign in to comment.