My DNS configuration as follows:
Code:
zuben.org.
1D IN NS @
1D IN A 127.0.0.1
1D IN A 192.168.0.11
Chowroc 1D IN A 192.168.0.11
mail 1D IN A 192.168.0.11
dns 1D IN CNAME Chowroc.zouben.org.
@ 1D IN MX 5 mail.zouben.org.
L01 1D IN A 192.168.0.2
L03 1D IN A 192.168.0.4
vdm.com.
1D IN NS dns.zouben.org.
vh 1D IN A 192.168.3.1
@ 1D IN MX 5 mail.zouben.org.
vdm.com is a virtual domain, and now I can send mail to it, when mail.zouben.org will deliver to the mailbox for virtual domain.
My postfix configuration for virtual domain:
Code:
virtual_mailbox_domains = dm04.com vdm.com
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
I kown Postfix will not relay mails for other domains. But now I want the SMTP Server mail.zouben.org to send mail for my virtual domains, I tried on vh.vdm.com:
# echo "string" | mail -s "string"
roc@zouben.org
# echo "string" | mail -s "string"
MY-ACCOUNT@163.com
But I found it still use the local unconfigured sendmail for sending, but I did not start sendmail.
No problem for routing & DNS lookup, when I run:
# mailq
on vh.vdm.com, it shows the queue is empty.
I stopped SASL, using esmtp to do this, "relay access denied" was reported.
Why? I have set MX record of DNS, why don't vh.vdm.com use mail.zouben.org to send mail? How can I achieve that?
thanks.