postfix传送邮件提示Invalid user specified

通过pkg_add方式安装备份好的tbz软件包后,邮件系统postfix传送邮件提示以下错误信息:
status=bounced (user unknown. Command output: Invalid user specified. )
解决办法:
cd /usr/ports/mail/maildrop/
make deinstall卸载之前通过pkg_add安装的maildrop
make WITH_AUTHLIB=yes WITH_GDBM=yes DEPENDS_TARGET=package package install clean
[X] AUTH_MYSQL MySQL support
一定要选择,且只选择AUTH_MYSQL选项!
[[email protected] ~]# maildrop -v会提示以下以下信息:
maildrop 2.5.2 Copyright 1998-2005 Double Precision, Inc.
GDBM/DB extensions enabled.
Courier Authentication Library extension enabled.
Maildir quota extension are now always enabled.
This program is distributed under the terms of the GNU General Public
License. See COPYING for additional information.
[[email protected] ~]#echo “test” | maildrop -V 10 -d [email protected]
执行以上命令会提示类似以下信息即OK!
maildrop: authlib: groupid=5001
maildrop: authlib: userid=5001
maildrop: authlib: [email protected], home=/home/domains/ahaha.com.cn/test, mail=/home/domains/ah aha.com.cn/test/Maildir/
maildrop: Changing to /home/domains/ahaha.com.cn/test
Message start at 0 bytes, envelope [email protected]
Tokenized logfile
Tokenized string: “/home/domains/maildrop.log”
Tokenized ;
Tokenized ;
Tokenized string: “TEST”
Tokenized =
Tokenized string: “/bin/test -f”
Tokenized ;
Tokenized ;
Tokenized ;
Tokenized ;
Tokenized string: “CUSTOM_FILTER”
Tokenized =
Tokenized string: “$HOME/.mailfilter”
Tokenized ;
Tokenized string: `$TEST $CUSTOM_FILTER && exit 1 || exit 0`
Tokenized ;
Tokenized if
Tokenized (
Tokenized string: “$RETURNCODE”
Tokenized ==
Tokenized string: “0”
Tokenized )
Tokenized ;
Tokenized {
Tokenized ;
Tokenized to
Tokenized string: “$HOME/Maildir”
Tokenized ;
Tokenized }
Tokenized ;
Tokenized eof
/usr/local/etc/maildroprc(1): Opening logfile /home/domains/maildrop.log
/usr/local/etc/maildroprc(3): TEST=”/bin/test -f”
/usr/local/etc/maildroprc(7): CUSTOM_FILTER=”/home/domains/ahaha.com.cn/test/.mailfilter”
maildrop: Filtering through `$TEST $CUSTOM_FILTER && exit 1 || exit 0`
/usr/local/etc/maildroprc(9): Evaluating IF condition.
/usr/local/etc/maildroprc(9): Operation on: 0 and 0 – equal, result is 1
/usr/local/etc/maildroprc(9): IF evaluated, result=1
WARN: quota string ‘ 0 0’ not parseable
WARN: quota string ‘ 0 0’ not parseable
maildrop: Delivery complete.
好了,可以发一封给本地域的邮件测试一下了!

原文链接:,转发请注明来源!

发表评论