Hello,
I have had postfix running successfully with two domains:
- myhostname = mail.domain.es
- my destination = domain2.co.uk
I recently added another domain to mydestination with the same name
as the main domain but with a different tld: "domain.com".
I have also mapped various user accounts to the address in /etc/
postfix/virtual_alias_maps e.g.
u...@domain.com u...@domain.com
us...@domain.com u...@domain.com
etc...
This is exactly as i have done for domain2.co.uk which is working fine.
When I try to send a message to any of the addreses the message is
bounced with these errors:
/mail.log = status=bounced (cannot access mailbox /var/mail/domain
for user domain. cannot open file: Permission denied)
Delivery Status Notification (Failure) = The following message to
<u...@doomain.com> was undeliverable. The reason for the problem:
5.1.2 - Bad destination host 'DNS Hard Error looking up domain.com
(MX): NXDomain'
Could it be that because the domains of the main domain and the
latest virtual domain are the same and the tld is not significant to
distinguish them. I kindly request your help
domain:~ rosario$ postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost,
$mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain,
domain2.co.uk, domain.com
mydomain_fallback = mail.domain.es
myhostname = mail.domain.es
mynetworks = 168.100.189.0/28, 127.0.0.0/8, 12.345.678.901
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_tls_key_file =
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual_alias_maps
Thanks Rups