我以为我在我的Amazon ubuntu服务器上设置了我的postfix配置,但我猜不是.我正在尝试为3个虚拟托管的Apache网站设置管理员电子邮件帐户.这是我的postfix main.cf文件:
myhostname = ip-XX-XXX-XX-XXX.us-west-2.compute.internal alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = ip-XX-XXX-XX-XXX.us-west-2.compute.internal,localhost.us-west-2.compute.internal,localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailBox_size_limit = 0 recipient_delimiter = + inet_interfaces = all virtual_mailBox_domains = example1.com,example2.com,example3.com virtual_mailBox_base = /var/mail/vhosts virtual_mailBox_maps = hash:/etc/postfix/vmailBox virtual_minimum_uid = 100 virtual_uid_maps = static:115 virtual_gid_maps = static:115 virtual_alias_maps = hash:/etc/postfix/virtual
admin@example1.com example1.com/admin admin@example2.com example2.com/admin admin@example3.com example3.com/admin @example1.com example1.com/catchall @example2.com example2.com/catchall @example3.com example3.com/catchall
最后是我的虚拟文件:
postmaster@example1.com postmaster postmaster@example2.com postmaster postmaster@example3.com postmaster
当我尝试通过netcat向我的某个域发送电子邮件时,我得到:
unable to create lock file /var/mail/vhosts/example1.com/admin.lock: Permission denied
尽管我将example1.com组设置为postfix,并且我的virtual_uid_maps和virtual_gid_maps都设置为Postfix组ID为115.
后缀组应具有/ var / mail / vhosts文件夹的读/写/执行权限.
原文链接:https://www.f2er.com/ubuntu/348294.html