最近,我安装了centOS 6。安装的目的是使用该服务器作为邮件服务器。我安装了Exim 版本 4.84_2 #1和Dovecot。
我已经关注了这篇博客文章,并尝试解决下面给出的错误,但是我没有运气解决它。
2017-02-06 07:07:27 no host name found for IP address x.x.x.x
2017-02-06 07:07:32 dovecot_plain authenticator failed for ([x.x.x.x]) [x.x.x.x]: 535 Incorrect authentication data (set_id=mailclown@com-supportnet.work)
2017-02-06 07:07:40 dovecot_plain authenticator failed for ([x.x.x.x]) [x.x.x.x]: 535 Incorrect authentication data (set_id=mailclown@com-supportnet.work)
2017-02-06 07:07:48 dovecot_login authenticator failed for ([x.x.x.x]) [x.x.x.x]: 535 Incorrect authentication data (set_id=mailclown@com-supportnet.work)
2017-02-06 07:07:52 dovecot_login authenticator failed for ([x.x.x.x]) [x.x.x.x]: 535 Incorrect authentication data (set_id=mailclown@com-supportnet.work)
Run Code Online (Sandbox Code Playgroud)
以下是我在上面的博客文章中使用的配置的输出。
[root@com-supportnet ~]# dovecot -n
# …
Run Code Online (Sandbox Code Playgroud) 我正在使用以下代码查找重复的用户名。但是,它给出了一个错误。
#!/bin/bash
cat /etc/passwd | cut -f1 -d":" | /bin/sort -n | /usr/bin/uniq -c |\
while read x; do [ -z "${x}" ] && break set - $x
if [ $1 -gt 1 ]; then
uids=`/bin/gawk -F: '($1 == n) { print $3 }' n=$2 \
/etc/passwd | xargs`
echo "Duplicate User Name ($2): ${uids}"
fi
done
Run Code Online (Sandbox Code Playgroud)
我在标记“完成”和数字错误附近遇到语法错误。我该如何解决这个错误?