Postfix疑难问题处理过程

安装mysql用户数据库,并设置后,一直无法生效:

May 25 07:59:43 jiamh2005 postfix/local[10352]: D0D579A62A68: to=<xujh@jiamh2005.tk>, relay=local, delay=1.3, delays=1.2/0.01/0/0.03, dsn=5.1.1, status=bounced (unknown user: “xujh”)

后来查阅解决方法,

#/etc/postfix/main.cf
mydestination =
# set to localhost localhost.$mydomain or remove mydomain.com for now
# Ensure that postmap -q mydomain.com mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf is returning mydomain.com and
# postmap -q myuser@mydomain.com mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf succeeds
postmap -q xujh@wengin.tk mysql:/etc/postfix/my-vm-maps.cf

 

后,发现问题在mydestination中的接收域和虚拟域重复了,删去mydestination的域名,问题得到解决。

 

 

留下评论