Hi, I have a problem sending emails to some domains that are not the most famous like gmail, hotmail, etc. Here is my config: /etc/postfix/main.cf Code: # 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 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/postfix/ssl/smtpd.crt smtpd_tls_key_file = /etc/postfix/ssl/smtpd.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. myhostname = xxxxxx.yyyyyy.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = xxxxxx.yyyyyy.com, localhost.yyyyyy.com, , localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = all smtpd_sasl_local_domain = smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtpd_tls_auth_only = yes smtp_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom home_mailbox = Maildir/ virtual_maps = hash:/etc/postfix/virtusertable mydestination = /etc/postfix/local-host-names relay_domains = $mydestination And the error Code: Feb 29 15:42:30 xxxxxx postfix/local[24414]: 2B5179AE11C: to=<[email protected]>, relay=local, delay=0.17, delays=0.11/0.04/0/0.03, dsn=5.1.1, status=bounced (unknown user: "david") I'm trying to send an email from [email protected] to [email protected] Any idea why say "unknown user: david" ? I can send emails to gmail without problems! Regards and thanks in advanced!
It seems as if zzzzzzzz.com is alocal domain on your server according to the errormessage. Have you created zzzzzzzz.com as domain in ispconnfig ot is zzzzzzzz.com in the file /etc/mailname?
zzzzzzzz.com is an email from google apps, but I tried to another domain not hosted in my server like zurich.com and I have the same error... A not have any idea that happens
This not works yet, any idea? Im going crazy! I can't send emails to another domain and I can't fix it Thanks!
Please post a bigger snippet of the mail log that contains also the lines before the error line. And if you anonymize the log, make sure that you anonymize a email address or domain in all lines with the same chars.
Email from Thunderbird Code: Mar 1 14:44:29 SERVER postfix/smtpd[22536]: connect from IPHOME.HOMEDOMAIN[IPHOME] Mar 1 14:44:29 SERVER postfix/smtpd[22536]: setting up TLS connection from IPHOME.HOMEDOMAIN[IPHOME] Mar 1 14:44:29 SERVER postfix/smtpd[22536]: Anonymous TLS connection established from IPHOME.HOMEDOMAIN[IPHOME]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits) Mar 1 14:44:30 SERVER postfix/smtpd[22536]: NOQUEUE: reject: RCPT from IPHOME.HOMEDOMAIN[IPHOME]: 550 5.1.1 <david@DOMAIN_DEST.com>: Recipient address rejected: User unknown in local recipient table; from=<info@DOMAIN_SRC.com> to=<david@DOMAIN_DEST.com> proto=ESMTP helo=<[192.168.1.10]> Email from Webmail (Roundcube mail) Code: 1 14:45:30 SERVER postfix/cleanup[22704]: 2B7649AE123: message-id=<00ec01ccf7b1$$b094a3a0$@DOMAIN_SRC.com> Mar 1 14:45:31 SERVER imapd: LOGIN, user=EMAIL_USER, ip=[::ffff:213.186.56.183], port=[55208], protocol=IMAP Mar 1 14:45:31 SERVER imapd: LOGOUT, user=EMAIL_USER, ip=[::ffff:213.186.56.183], headers=0, body=0, rcvd=502, sent=274, time=1 Mar 1 14:45:31 SERVER postfix/pickup[18922]: 23DE09AE125: uid=33 from=<info@DOMAIN_SRC.com> Mar 1 14:45:31 SERVER postfix/cleanup[22803]: 23DE09AE125: message-id=<@www.DOMAIN_DEST.com> Mar 1 14:45:31 SERVER postfix/qmgr[29739]: 23DE09AE125: from=<info@DOMAIN_SRC.com>, size=555, nrcpt=1 (queue active) Mar 1 14:45:31 SERVER postfix/local[22705]: 23DE09AE125: to=<david@DOMAIN_DEST.com>, relay=local, delay=0.1, delays=0.06/0/0/0.04, dsn=5.1.1, status=bounced (unknown user: "david") Mar 1 14:45:31 SERVER postfix/cleanup[22803]: 309789AE126: message-id=<[email protected]_DOMAIN.com> Mar 1 14:45:31 SERVER postfix/qmgr[29739]: 309789AE126: from=<>, size=2333, nrcpt=1 (queue active) Mar 1 14:45:31 SERVER postfix/bounce[22804]: 23DE09AE125: sender non-delivery notification: 309789AE126 Mar 1 14:45:31 SERVER postfix/qmgr[29739]: 23DE09AE125: removed Mar 1 14:45:31 SERVER postfix/pickup[18922]: 4503F9AE125: uid=10050 from=<EMAIL_USER> Mar 1 14:45:31 SERVER postfix/cleanup[22803]: 4503F9AE125: message-id=<[email protected]_DOMAIN.com> Mar 1 14:45:31 SERVER postfix/local[22705]: 309789AE126: to=<[email protected]_DOMAIN.com>, orig_to=<info@DOMAIN_SRC.com>, relay=local, delay=0.09, delays=0.01/0/0/0.08, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-) Mar 1 14:45:31 SERVER postfix/qmgr[29739]: 309789AE126: removed Mar 1 14:45:31 SERVER postfix/qmgr[29739]: 4503F9AE125: from=<[email protected]_DOMAIN.com>, size=384, nrcpt=1 (queue active) Mar 1 14:45:31 SERVER postfix/local[22705]: 4503F9AE125: to=<[email protected]>, relay=local, delay=0.05, delays=0.01/0/0/0.04, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-) Mar 1 14:45:31 SERVER postfix/qmgr[29739]: 4503F9AE125: removed And the email that returns Roundcube Code: This is the mail system at host SERVER.SERVER_DOMAIN.com. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <david@DOMAIN_DEST.com>: unknown user: "david" Reporting-MTA: dns; SERVER.SERVER_DOMAIN.com X-Postfix-Queue-ID: 98F089AE125 X-Postfix-Sender: rfc822; info@DOMAIN_SRC.com Arrival-Date: Thu, 1 Mar 2012 14:57:20 +0100 (CET) Final-Recipient: rfc822; david@DOMAIN_DEST.com Action: failed Status: 5.1.1 Diagnostic-Code: X-Postfix; unknown user: "david" Return-Path: <info@DOMAIN_SRC.com> Received: by SERVER.SERVER_DOMAIN.com (Postfix, from userid 33) id 98F089AE125; Thu, 1 Mar 2012 14:57:20 +0100 (CET) To: <david@DOMAIN_DEST.com> Subject: ........ X-PHP-Originating-Script: 10005:func.inc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 01 Mar 2012 14:57:20 +0100 From: web23_info <info@DOMAIN_SRC.com> Message-ID: <[email protected]_DEST.com> X-Sender: info@DOMAIN_SRC.com User-Agent: Roundcube Webmail/0.5.3 ....... DOMAIN_SRC is a domain host in my server and DOMAIN_DEST is a domain with google apps but does not work with anothers domains like Zurich.com.
So you send to a remote server (not your own one) and get a "user unknown" error? Then that's a problem of the remote server.
Sure? I can sen to another domains with my gmail account. And the unknown user error is for my login, for example, if I try to send and email from [email protected] to [email protected], the unknow user is "david". I dont understand why happens... but I think that is a problem of my server config
That's not true. Since the mail is TO: david@DOMAIN_DEST.com the problem is in the server hosting DOMAIN_DEST.com. You say this domain is not hosted in your server, therefore the problem is not in your server.
I still have the same problem sending unicef.org not really know I can do to fix the problem. It seems I can only send emails to domains recognized as google, yahoo, hotmail, etc.. I think it is problem of my server configuration, any advice?
Please post the relevant lines from the Postfix log without any change. If you are afraid of privacy issues you could send the log via private message. Another idea: Send a mail to me (postmaster at no-fun.de) and I'll analyse the rejection from my side.
After some investigation it turned out that he was caught by a leftover from ISPConfig 2, i.e. Code: mydestination = /etc/postfix/local-host-names After removing that line everything works as expected. The problem here is that he is hosting domains on his server for which he does not handle the mails, i.e. the A record is different from the MX record. The file local-host-names lists all local http domains but should never be used to specify mail domains.