Email not getting redirected to as per MX record to business email server

user5858 asked:

I’ve purchased business email so all emails to [email protected] should go to privateemail.com as per the MX record of anikadigital.in.

Here is the MX lookup of anikadigital.in:

DNS server handling your query: localhost
 DNS server's address:  127.0.0.1#53

 Non-authoritative answer:
 anikadigital.in    mail exchanger = 10 mx1.privateemail.com.
 anikadigital.in    mail exchanger = 10 mx2.privateemail.com.

but still I’m getting this error in the syslog file:

 A091021432: to=<[email protected]>, relay=none, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (User unknown in virtual alias table)

How can that be?

Here is the postfix configuration. I’ve mangled other domains however I’ve retained the anikadigital.in domain as it is:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
always_bcc = [email protected]
append_dot_mydomain = no
biff = no
inet_interfaces = all
inet_protocols = ipv4
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, localhost, localhost.localdomain, localhost
myhostname = host.digittions.in
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = digittions.in indiacc.com cffd.com def.com duplicateticket.com karera.digitaltransactions.in mail.digittions.in idoff.com accrec.in anikadigital.in passport.anikadigital.in pan.anikadigital.in tpst.in
virtual_alias_maps = hash:/etc/postfix/virtual

My answer:


You specifically configured Postfix to handle mail for anikadigital.in, in virtual_alias_domains. When you put a domain here, Postfix always delivers the mail locally.

If the mail is not meant to be delivered locally, the domain must not appear in virtual_alias_domains, virtual_alias_maps, myhostname or mydestination.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.