发送邮件失败。日志显示此错误:
warning: recipient [email protected]: bad uid 8 in virtual_uid_maps
main.cf中的相关设置:
local_recipient_maps =
virtual_uid_maps = static:8
virtual_gid_maps = static:12
transport_maps = pgsql:/etc/postfix/pgsql/transport.cf
virtual_mailbox_base = /var/spool/mail
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql/mailboxes.cf
virtual_maps = pgsql:/etc/postfix/pgsql/virtual.cf
/var/spool/mail 归 mail:mail 所有:
root@gentooserver ~ # ls -la /var/spool/mail
total 4
drwxrwsr-t 1 mail mail 92 Apr 11 19:00 .
drwxr-xr-x 1 root root 68 Nov 29 17:05 ..
-rw------- 1 mail mail 31 Apr 11 18:51 .bash_history
-rw-r--r-- 1 mail mail 0 Nov 29 17:05 .keep_net-mail_mailbase-0
drwx--S--- 1 mail mail 18 Apr 11 19:00 .maildir
邮件的 UID 为 8:
root@gentooserver ~ # cat /etc/passwd | grep mail
nullmail:x:88:88:added by portage for nullmailer:/var/spool/nullmailer:/sbin/nologin
mail:x:8:12:added by portage for mailbase:/var/spool/mail:/sbin/nologin
postmaster:x:14:232:added by portage for mailbase:/var/spool/mail:/sbin/nologin
有什么问题?