cant get it work I get same error Aug 11 19:32:52 rex postfix/smtpd[5080]: NOQUEUE: reject: RCPT from unknown[87.226.77.6]: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname; from=<www-data@domain> to=<filter@domain> proto=ESMTP helo=<localhost> but I'm sending from linux server witch is with secondary domain and have only exim4 if I'm sending to public mail server but to the primary domain I cant send mail please help dont have much time left with this problem ;( postconf -n biff = no broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix debug_peer_level = 2 empty_address_recipient = MAILER-DAEMON home_mailbox = .maildir/ html_directory = /usr/share/doc/postfix-2.5.5/html mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man message_size_limit = 51200000 mydestination = $myhostname, localhost, mail.<my domain> myhostname = my domain mynetworks = 127.0.0.0/8, 192.168.1.0/24 newaliases_path = /usr/bin/newaliases proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps $virtual_mailbox_limit_maps queue_minfree = 120000000 readme_directory = /usr/share/doc/postfix-2.5.5/readme relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf sample_directory = /etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtp_tls_note_starttls_offer = yes smtp_use_tls = yes smtpd_banner = $myhostname ESMTP $mail_name smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_rbl_client bl.spamcop.net, reject_rbl_client zen.spamhaus.org, check_policy_service inet:127.0.0.1:10030 smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous smtpd_tls_CAfile = /etc/postfix/cacert.pem smtpd_tls_cert_file = /etc/postfix/newcert.pem smtpd_tls_key_file = /etc/postfix/newkey.pem smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_gid_maps = static:500 virtual_mailbox_base = /home/pasts virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_limit = 104857600 virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_minimum_uid = 500 virtual_transport = virtual virtual_uid_maps = static:500