Server can send but not receive email

Ubuntu 14.04

I have installed VirtualMin and installed 2 domains so far everything works great except i cannot get email to deliver to virtual users. I did change the username format to user@domain.tld and I can login to roundcube and I can send email but I cant get an email the error is:

This is the bounce msg I get on all email to the virtual domain:

host mail.xxxxxxx.com[173.219.x.x] said: 550 5.1.1
    <drichmond@xxxxx.com>: Recipient address rejected: User unknown in
    virtual alias table (in reply to RCPT TO command)

Hostname -f

cp.mydomainname.com

/etc/hosts

[code]127.0.0.1 localhost
127.0.0.1 ubuntu
173.219.x.x cp.xxxxxxxx.com

The following lines are desirable for IPv6 capable hosts

::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
[/code]

/etc/postfix/main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

mydestination =  cp.xxxxxxxx.com, localhost.xxxxxxxxx.com, ubuntu, localhost

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = cp.idsnetworks.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual
sender_bcc_maps = hash:/etc/postfix/bcc
home_mailbox = Maildir/
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
allow_percent_hack = no

I have done the Re-Check Configuration it says no problems:

     Your system has 12.72 GB of memory, which is at or above the Virtualmin recommended minimum of 256 MB.

    BIND DNS server is installed, and the system is configured to use it.

    Mail server Postfix is installed and configured.

    Postfix can support per-domain outgoing IP addresses, but is not currently configured to do so. This can be setup in the Postfix Mailserver module.

    Apache is installed.

    The following PHP versions are available : 5.5.9 (/usr/bin/php5-cgi)

    Webalizer is installed.

    Apache is configured to host SSL websites.

    MySQL is installed and running.

    ProFTPd is installed.

    Logrotate is installed.

    SpamAssassin and Procmail are installed and configured for use.

    ClamAV is installed and assumed to be running.

    Plugin AWstats reporting is installed OK.

    Plugin Mailman is installed OK.

    Plugin Protected web directories is installed OK.

    Using network interface eth0 for virtual IPs.

    Default IPv4 address for virtual servers is 173.219.x.x.

    Default IP address is set to 173.219.x.x, which matches the detected external address.

    Both user and group quotas are enabled for home and email directories.

    All commands needed to create and restore backups are installed.

    The selected package management and update systems are installed OK.

.. your system is ready for use by Virtualmin.

alias in main.cf for /etc/postfix/virtual is there and in the contents of said file I do have:


idsnetworks.com idsnetworks.com

The error that the other server returned was:
550 5.1.1 <drichmond@idsnetworks.com>: Recipient address rejected: User unknown in virtual alias table

I have extensively searched this forum and others but cannot figure this out

Can anyone perhaps see the obvious that I’m missing?

Best regards,

David

Hi I have exactly same problem here on debian 8

I reinstalled server with debain 8 and it all works.

i diaabled tls and it started working