I have problem when i send a mail to example@orbialia.es for example2@orbialia.es My emails has bounced for this error: status=bounced (mail for orbialia.es loops back to myself)May  9 09:33:58 ns3285243 postfix/smtpd[1606]: connect from localhost.localdomain[127.0.0.1]May  9 09:33:58 ns3285243 postfix/smtpd[1606]: 1EF6FA1DB9: client=localhost.localdomain[127.0.0.1]May  9 09:33:58 ns3285243 postfix/cleanup[1584]: 1EF6FA1DB9: message-id=<004801cf6b58$a6516540$f2f42fc0$@orbialia.es>May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 1EF6FA1DB9: from=<jonatan.soler@orbialia.es>, size=7184, nrcpt=1 (queue active)May  9 09:33:58 ns3285243 postfix/smtpd[1606]: disconnect from localhost.localdomain[127.0.0.1]May  9 09:33:58 ns3285243 amavis[15721]: (15721-16) Passed CLEAN {RelayedInbound}, [79.145.170.251]:1991 [79.145.170.251] <jonatan.soler@orbialia.es> -> <consultanos@orbialia.es>, Queue-ID: 9D0DCA1DB4, Message-ID: <004801cf6b58$a6516540$f2f42fc0$@orbialia.es>, mail_id: 8JHrgdOkE3Pw, Hits: -0.999, size: 6675, queued_as: 1EF6FA1DB9, 26690 msMay  9 09:33:58 ns3285243 postfix/smtp[1588]: 9D0DCA1DB4: to=<consultanos@orbialia.es>, relay=127.0.0.1[127.0.0.1]:10024, delay=28, delays=1/0.02/0.01/27, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1EF6FA1DB9)May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 9D0DCA1DB4: removedMay  9 09:33:58 ns3285243 postfix/smtp[1607]: 1EF6FA1DB9: to=<consultanos@orbialia.es>, relay=none, delay=0.11, delays=0.09/0.02/0/0, dsn=5.4.6, status=bounced (mail for orbialia.es loops back to myself)May  9 09:33:58 ns3285243 postfix/cleanup[1584]: 42EC4A1DB4: message-id=<20140509073358.42EC4A1DB4@rentabiliza.net>May  9 09:33:58 ns3285243 postfix/bounce[1608]: 1EF6FA1DB9: sender non-delivery notification: 42EC4A1DB4May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 42EC4A1DB4: from=<>, size=9465, nrcpt=1 (queue active)May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 1EF6FA1DB9: removedMay  9 09:33:58 ns3285243 postfix/smtp[1607]: 42EC4A1DB4: to=<jonatan.soler@orbialia.es>, relay=none, delay=0.05, delays=0.04/0/0/0, dsn=5.4.6, status=bounced (mail for orbialia.es loops back to myself)May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 42EC4A1DB4: removedThis is my postfix configalias_database = hash:/etc/aliasesalias_maps = hash:/etc/aliasesappend_dot_mydomain = nobiff = noconfig_directory = /etc/postfixcontent_filter = smtp-amavis:[127.0.0.1]:10024inet_interfaces = allmailbox_command = procmail -a $EXTENSIONmailbox_size_limit = 0milter_default_action = acceptmilter_protocol = 2mydestination = localhost, ns3285243.ip-5-135-177.eumyhostname = rentabiliza.netmynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128myorigin = /etc/mailnamenon_smtpd_milters = inet:localhost:8891policy-spf_time_limit = 3600sreadme_directory = norecipient_delimiter = +relayhost =smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)smtpd_milters = inet:localhost:8891smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination check_policy_service unix:private/policy-spfsmtpd_sasl_auth_enable = yessmtpd_sasl_path = private/authsmtpd_sasl_type = dovecotsmtpd_tls_auth_only = yessmtpd_tls_cert_file = /etc/ssl/certs/dovecot.pemsmtpd_tls_key_file = /etc/ssl/private/dovecot.pemsmtpd_use_tls = yesvirtual_alias_domains = mysql:/etc/postfix/sql-domain-aliases.cfvirtual_alias_maps = mysql:/etc/postfix/sql-aliases.cf, mysql:/etc/postfix/sql-domain-aliases-mailboxes.cf, mysql:/etc/postfix/sql-email2email.cf, mysql:/etc/postfix/sql-catchall-aliases.cfvirtual_mailbox_domains = mysql:/etc/postfix/sql-domains.cfvirtual_mailbox_maps = mysql:/etc/postfix/sql-mailboxes.cfvirtual_transport = lmtp:unix:private/dovecot-lmtpI use virtual domains/users in a mysql databasehostname: ns3285243.ip-5-135-177.euhostname -f: ns3285243.ip-5-135-177.eu/etc/hosts# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.localdomain localhost5.135.177.115           ns3285243.ip-5-135-177.eu       ns32852432001:41D0:8:B873::1     ns3285243.ip-5-135-177.eu       ns3285243# The following lines are desirable for IPv6 capable hosts#(added automatically by netbase upgrade)::1     ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allroutersff02::3 ip6-allhostsWhen i try to send mail to gmail.com to destination it recieve the email succesfullyIf i put orbialia.es to mydestination i recieve this:May  9 09:47:28 ns3285243 postfix/smtpd[2601]: NOQUEUE: reject: RCPT from 251.Red-79-145-170.dynamicIP.rima-tde.net[79.145.170.251]: 550 5.1.1 <consultanos@orbialia.es>: Recipient address rejected: User unknown in local recipient table; from=<jonatan.soler@orbialia.es> to=<consultanos@orbialia.es> proto=ESMTP helo=<50l3rport>i have multiple virtual domains. How can resolve it?
Postfix email bounced (mail for domain loops back to myself)
email;postfix;hostname;hosts
From comment:The problem in this case is that the domain has not been marked as active, so when mysql is queried for active domains this one is not returned.