Helo command rejected: need fully-qualified hostname Error











up vote
7
down vote

favorite












My mail server is in some blacklist cause of spams. I reconfugured postfix. Aften then
My customers get this error they can't send emails.



404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need fully-qualified hostname


In Mail.log:



postfix/smtpd[9853]: NOQUEUE: reject: RCPT from unknown[xx.xx.xx.xx]: 
404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need fully-qualified hostname;
from=<info@domain.com> to=<mail@mail.com> proto=ESMTP helo=<PLLAMNAZIFE>


In my main.cf:



   # rules restrictions
smtpd_client_restrictions =
permit_sasl_authenticated
smtpd_helo_restrictions =
permit_mynetworks,
reject_non_fqdn_helo_hostname,
reject_invalid_helo_hostname,
permit
smtpd_sender_restrictions =
smtpd_recipient_restrictions =
permit_sasl_authenticated,
reject_unauth_pipelining,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
permit_mynetworks,
reject_unauth_destination,
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client proxies.blackholes.wirehub.net,
reject_rbl_client dnsbl.njabl.org

smtpd_helo_required = yes
unknown_local_recipient_reject_code = 550
disable_vrfy_command = yes
smtpd_data_restrictions = reject_unauth_pipelining









share|improve this question


























    up vote
    7
    down vote

    favorite












    My mail server is in some blacklist cause of spams. I reconfugured postfix. Aften then
    My customers get this error they can't send emails.



    404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need fully-qualified hostname


    In Mail.log:



    postfix/smtpd[9853]: NOQUEUE: reject: RCPT from unknown[xx.xx.xx.xx]: 
    404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need fully-qualified hostname;
    from=<info@domain.com> to=<mail@mail.com> proto=ESMTP helo=<PLLAMNAZIFE>


    In my main.cf:



       # rules restrictions
    smtpd_client_restrictions =
    permit_sasl_authenticated
    smtpd_helo_restrictions =
    permit_mynetworks,
    reject_non_fqdn_helo_hostname,
    reject_invalid_helo_hostname,
    permit
    smtpd_sender_restrictions =
    smtpd_recipient_restrictions =
    permit_sasl_authenticated,
    reject_unauth_pipelining,
    reject_non_fqdn_recipient,
    reject_unknown_recipient_domain,
    permit_mynetworks,
    reject_unauth_destination,
    reject_invalid_hostname,
    reject_non_fqdn_sender,
    reject_unknown_sender_domain,
    reject_rhsbl_client blackhole.securitysage.com,
    reject_rhsbl_sender blackhole.securitysage.com,
    reject_rbl_client zen.spamhaus.org,
    reject_rbl_client bl.spamcop.net,
    reject_rbl_client blackholes.easynet.nl,
    reject_rbl_client cbl.abuseat.org,
    reject_rbl_client proxies.blackholes.wirehub.net,
    reject_rbl_client dnsbl.njabl.org

    smtpd_helo_required = yes
    unknown_local_recipient_reject_code = 550
    disable_vrfy_command = yes
    smtpd_data_restrictions = reject_unauth_pipelining









    share|improve this question
























      up vote
      7
      down vote

      favorite









      up vote
      7
      down vote

      favorite











      My mail server is in some blacklist cause of spams. I reconfugured postfix. Aften then
      My customers get this error they can't send emails.



      404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need fully-qualified hostname


      In Mail.log:



      postfix/smtpd[9853]: NOQUEUE: reject: RCPT from unknown[xx.xx.xx.xx]: 
      404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need fully-qualified hostname;
      from=<info@domain.com> to=<mail@mail.com> proto=ESMTP helo=<PLLAMNAZIFE>


      In my main.cf:



         # rules restrictions
      smtpd_client_restrictions =
      permit_sasl_authenticated
      smtpd_helo_restrictions =
      permit_mynetworks,
      reject_non_fqdn_helo_hostname,
      reject_invalid_helo_hostname,
      permit
      smtpd_sender_restrictions =
      smtpd_recipient_restrictions =
      permit_sasl_authenticated,
      reject_unauth_pipelining,
      reject_non_fqdn_recipient,
      reject_unknown_recipient_domain,
      permit_mynetworks,
      reject_unauth_destination,
      reject_invalid_hostname,
      reject_non_fqdn_sender,
      reject_unknown_sender_domain,
      reject_rhsbl_client blackhole.securitysage.com,
      reject_rhsbl_sender blackhole.securitysage.com,
      reject_rbl_client zen.spamhaus.org,
      reject_rbl_client bl.spamcop.net,
      reject_rbl_client blackholes.easynet.nl,
      reject_rbl_client cbl.abuseat.org,
      reject_rbl_client proxies.blackholes.wirehub.net,
      reject_rbl_client dnsbl.njabl.org

      smtpd_helo_required = yes
      unknown_local_recipient_reject_code = 550
      disable_vrfy_command = yes
      smtpd_data_restrictions = reject_unauth_pipelining









      share|improve this question













      My mail server is in some blacklist cause of spams. I reconfugured postfix. Aften then
      My customers get this error they can't send emails.



      404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need fully-qualified hostname


      In Mail.log:



      postfix/smtpd[9853]: NOQUEUE: reject: RCPT from unknown[xx.xx.xx.xx]: 
      404 4.5.2 <PLLAMNAZIFE>: Helo command rejected: need fully-qualified hostname;
      from=<info@domain.com> to=<mail@mail.com> proto=ESMTP helo=<PLLAMNAZIFE>


      In my main.cf:



         # rules restrictions
      smtpd_client_restrictions =
      permit_sasl_authenticated
      smtpd_helo_restrictions =
      permit_mynetworks,
      reject_non_fqdn_helo_hostname,
      reject_invalid_helo_hostname,
      permit
      smtpd_sender_restrictions =
      smtpd_recipient_restrictions =
      permit_sasl_authenticated,
      reject_unauth_pipelining,
      reject_non_fqdn_recipient,
      reject_unknown_recipient_domain,
      permit_mynetworks,
      reject_unauth_destination,
      reject_invalid_hostname,
      reject_non_fqdn_sender,
      reject_unknown_sender_domain,
      reject_rhsbl_client blackhole.securitysage.com,
      reject_rhsbl_sender blackhole.securitysage.com,
      reject_rbl_client zen.spamhaus.org,
      reject_rbl_client bl.spamcop.net,
      reject_rbl_client blackholes.easynet.nl,
      reject_rbl_client cbl.abuseat.org,
      reject_rbl_client proxies.blackholes.wirehub.net,
      reject_rbl_client dnsbl.njabl.org

      smtpd_helo_required = yes
      unknown_local_recipient_reject_code = 550
      disable_vrfy_command = yes
      smtpd_data_restrictions = reject_unauth_pipelining






      security postfix smtp ssl






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 21 '13 at 8:00









      RedLEON

      111338




      111338






















          7 Answers
          7






          active

          oldest

          votes

















          up vote
          11
          down vote



          accepted










          That error message is appearing because the mail client is sending only a bare hostname ("PLLAMNAZIFE") rather than a fully-qualified hostname (e.g. "PLLAMNAZIFE.example.com") in the HELO/EHLO part of the SMTP transaction, and your Postfix server is configured to reject such mail.



          Many mail client programs do not send correctly formatted, fully-qualified, valid hostnames in the HELO/EHLO. Since you have to accept such mail from paying customers and have little or no control over what mail client they use (and because HELO checks aren't really of much use in blocking spam), it's probably best to disable the HELO checks.



          To disable HELO checks, remove the following two lines from your Postfix config:



              reject_non_fqdn_helo_hostname,
          reject_invalid_helo_hostname,


          Even better, remove the entire smtpd_helo_restrictions = ... rule and smtpd_helo_required = yes.






          share|improve this answer























          • thank you. I disabled that lines and it's work now. I can send with mozilla thunderbird on my pc. But my customer can't send any mail with outlook on their pc. Is there any way to fix this problem with HELO check config?
            – RedLEON
            Sep 21 '13 at 8:53












          • if you've removed the helo checks and your customers still can't send mail then it's most likely some other problem, with a different reject reason in the mail log.
            – cas
            Sep 22 '13 at 1:47










          • They can send now. But I wanna to configure my server as secure
            – RedLEON
            Sep 22 '13 at 8:43






          • 2




            what makes you think that helo checks enhance security?
            – cas
            Sep 22 '13 at 13:36


















          up vote
          6
          down vote













          You can bypass HELO restrictions for authenticated users by inserting permit_sasl_authenticated before rejecting rules in the smtpd_helo_restrictions list:



          smtpd_helo_restrictions =
          permit_mynetworks,
          permit_sasl_authenticated,
          reject_non_fqdn_helo_hostname,
          reject_invalid_helo_hostname,
          permit





          share|improve this answer




























            up vote
            1
            down vote













            The host name variable for your mail server is invalid.



            Try and change the value of myhostname field from /etc/postfix/main.cf from the default value to your host name (e.g. yourwebsite.com or mail.yourwebsite.com)






            share|improve this answer




























              up vote
              0
              down vote













              It has taken me ages to work this out



              I am running a centos server and was getting email bouncing back reporting the error" Helo command rejected: need fully-qualified hostname"



              I ended up enabling "Reference /etc/mailhelo for outgoing SMTP HELO [?]"
              This was located under "exim configuration manager" then "Domains and IPS" on the VPS server



              Then i used putty and remoted onto the server and ran this command "sudo nano /etc/mailhelo"



              In that file i created the domains
              example.com: example.com
              sub.example.com: example.com
              example.net: example.net
              addon.example.net: example.net
              *: hostname.example.com



              (as per http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/EximDifferentIps)



              I have tested sending email and all looks good so far






              share|improve this answer




























                up vote
                0
                down vote













                It's not your e-mail server that rejects the client, but an external SMTP server that rejects the message from your SMTP server, the issue is that your SMTP server does not send it's FQDN name in the helo message when communicating with other servers.



                This can usually be solved by adding the public IP to hosts file with the FQDN to the /etc/hosts file. Like this:



                1.1.1.1 host.domain.com host



                127.0.0.2 host.domain.com host



                Where 1.1.1.1 is the official IP.



                I had this problem and it did not help that the DNS was working both ways forward/reverse on the public IP and I had only my own nameserver in /etc/resolv.conf. Even hostname -f returned the correct one.
                I still had to put the ip and hostname to /etc/hosts for sendmail to actually use the FQDN instead of just the short hostname.



                If you telnet to your server on port 25, make sure the 220 line says the FQDN and not just the host.
                Like this:



                220 host.domain.com ESMTP Sendmail 8.15.2/8.15.2/SuSE Linux 0.8; Mon, 9 Jul 2018 18:19:48 +0200






                share|improve this answer




























                  up vote
                  0
                  down vote













                  Sometimes a server has a 'hiccup'. Caused for instance by mail attacks.



                  First try restart the server.
                  Than set the mail in the server to off an after 15 seconds back on.



                  Sometimes the HELO cmd rejected is caused because mail cannot load new anti-virus definitions; like AmaVis that is used on Apple servers.
                  A restart and off/on the mail app in the server solves this problem.
                  Cheers.






                  share|improve this answer




























                    up vote
                    0
                    down vote













                    I was getting non-domain name when running hostname -f. So I googled for no domain in "hostname -f". It turned out I needed to edit /etc/hostname (I'm on Debian) to resolve the problem. After that both hostname -f and helo were using fully qualified hostname.






                    share|improve this answer








                    New contributor




                    Jarekczek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                    Check out our Code of Conduct.


















                      Your Answer








                      StackExchange.ready(function() {
                      var channelOptions = {
                      tags: "".split(" "),
                      id: "106"
                      };
                      initTagRenderer("".split(" "), "".split(" "), channelOptions);

                      StackExchange.using("externalEditor", function() {
                      // Have to fire editor after snippets, if snippets enabled
                      if (StackExchange.settings.snippets.snippetsEnabled) {
                      StackExchange.using("snippets", function() {
                      createEditor();
                      });
                      }
                      else {
                      createEditor();
                      }
                      });

                      function createEditor() {
                      StackExchange.prepareEditor({
                      heartbeatType: 'answer',
                      convertImagesToLinks: false,
                      noModals: true,
                      showLowRepImageUploadWarning: true,
                      reputationToPostImages: null,
                      bindNavPrevention: true,
                      postfix: "",
                      imageUploader: {
                      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                      allowUrls: true
                      },
                      onDemand: true,
                      discardSelector: ".discard-answer"
                      ,immediatelyShowMarkdownHelp:true
                      });


                      }
                      });














                       

                      draft saved


                      draft discarded


















                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f91749%2fhelo-command-rejected-need-fully-qualified-hostname-error%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown

























                      7 Answers
                      7






                      active

                      oldest

                      votes








                      7 Answers
                      7






                      active

                      oldest

                      votes









                      active

                      oldest

                      votes






                      active

                      oldest

                      votes








                      up vote
                      11
                      down vote



                      accepted










                      That error message is appearing because the mail client is sending only a bare hostname ("PLLAMNAZIFE") rather than a fully-qualified hostname (e.g. "PLLAMNAZIFE.example.com") in the HELO/EHLO part of the SMTP transaction, and your Postfix server is configured to reject such mail.



                      Many mail client programs do not send correctly formatted, fully-qualified, valid hostnames in the HELO/EHLO. Since you have to accept such mail from paying customers and have little or no control over what mail client they use (and because HELO checks aren't really of much use in blocking spam), it's probably best to disable the HELO checks.



                      To disable HELO checks, remove the following two lines from your Postfix config:



                          reject_non_fqdn_helo_hostname,
                      reject_invalid_helo_hostname,


                      Even better, remove the entire smtpd_helo_restrictions = ... rule and smtpd_helo_required = yes.






                      share|improve this answer























                      • thank you. I disabled that lines and it's work now. I can send with mozilla thunderbird on my pc. But my customer can't send any mail with outlook on their pc. Is there any way to fix this problem with HELO check config?
                        – RedLEON
                        Sep 21 '13 at 8:53












                      • if you've removed the helo checks and your customers still can't send mail then it's most likely some other problem, with a different reject reason in the mail log.
                        – cas
                        Sep 22 '13 at 1:47










                      • They can send now. But I wanna to configure my server as secure
                        – RedLEON
                        Sep 22 '13 at 8:43






                      • 2




                        what makes you think that helo checks enhance security?
                        – cas
                        Sep 22 '13 at 13:36















                      up vote
                      11
                      down vote



                      accepted










                      That error message is appearing because the mail client is sending only a bare hostname ("PLLAMNAZIFE") rather than a fully-qualified hostname (e.g. "PLLAMNAZIFE.example.com") in the HELO/EHLO part of the SMTP transaction, and your Postfix server is configured to reject such mail.



                      Many mail client programs do not send correctly formatted, fully-qualified, valid hostnames in the HELO/EHLO. Since you have to accept such mail from paying customers and have little or no control over what mail client they use (and because HELO checks aren't really of much use in blocking spam), it's probably best to disable the HELO checks.



                      To disable HELO checks, remove the following two lines from your Postfix config:



                          reject_non_fqdn_helo_hostname,
                      reject_invalid_helo_hostname,


                      Even better, remove the entire smtpd_helo_restrictions = ... rule and smtpd_helo_required = yes.






                      share|improve this answer























                      • thank you. I disabled that lines and it's work now. I can send with mozilla thunderbird on my pc. But my customer can't send any mail with outlook on their pc. Is there any way to fix this problem with HELO check config?
                        – RedLEON
                        Sep 21 '13 at 8:53












                      • if you've removed the helo checks and your customers still can't send mail then it's most likely some other problem, with a different reject reason in the mail log.
                        – cas
                        Sep 22 '13 at 1:47










                      • They can send now. But I wanna to configure my server as secure
                        – RedLEON
                        Sep 22 '13 at 8:43






                      • 2




                        what makes you think that helo checks enhance security?
                        – cas
                        Sep 22 '13 at 13:36













                      up vote
                      11
                      down vote



                      accepted







                      up vote
                      11
                      down vote



                      accepted






                      That error message is appearing because the mail client is sending only a bare hostname ("PLLAMNAZIFE") rather than a fully-qualified hostname (e.g. "PLLAMNAZIFE.example.com") in the HELO/EHLO part of the SMTP transaction, and your Postfix server is configured to reject such mail.



                      Many mail client programs do not send correctly formatted, fully-qualified, valid hostnames in the HELO/EHLO. Since you have to accept such mail from paying customers and have little or no control over what mail client they use (and because HELO checks aren't really of much use in blocking spam), it's probably best to disable the HELO checks.



                      To disable HELO checks, remove the following two lines from your Postfix config:



                          reject_non_fqdn_helo_hostname,
                      reject_invalid_helo_hostname,


                      Even better, remove the entire smtpd_helo_restrictions = ... rule and smtpd_helo_required = yes.






                      share|improve this answer














                      That error message is appearing because the mail client is sending only a bare hostname ("PLLAMNAZIFE") rather than a fully-qualified hostname (e.g. "PLLAMNAZIFE.example.com") in the HELO/EHLO part of the SMTP transaction, and your Postfix server is configured to reject such mail.



                      Many mail client programs do not send correctly formatted, fully-qualified, valid hostnames in the HELO/EHLO. Since you have to accept such mail from paying customers and have little or no control over what mail client they use (and because HELO checks aren't really of much use in blocking spam), it's probably best to disable the HELO checks.



                      To disable HELO checks, remove the following two lines from your Postfix config:



                          reject_non_fqdn_helo_hostname,
                      reject_invalid_helo_hostname,


                      Even better, remove the entire smtpd_helo_restrictions = ... rule and smtpd_helo_required = yes.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jun 4 '15 at 16:09









                      Anthony Geoghegan

                      7,42133854




                      7,42133854










                      answered Sep 21 '13 at 8:32









                      cas

                      38.3k44898




                      38.3k44898












                      • thank you. I disabled that lines and it's work now. I can send with mozilla thunderbird on my pc. But my customer can't send any mail with outlook on their pc. Is there any way to fix this problem with HELO check config?
                        – RedLEON
                        Sep 21 '13 at 8:53












                      • if you've removed the helo checks and your customers still can't send mail then it's most likely some other problem, with a different reject reason in the mail log.
                        – cas
                        Sep 22 '13 at 1:47










                      • They can send now. But I wanna to configure my server as secure
                        – RedLEON
                        Sep 22 '13 at 8:43






                      • 2




                        what makes you think that helo checks enhance security?
                        – cas
                        Sep 22 '13 at 13:36


















                      • thank you. I disabled that lines and it's work now. I can send with mozilla thunderbird on my pc. But my customer can't send any mail with outlook on their pc. Is there any way to fix this problem with HELO check config?
                        – RedLEON
                        Sep 21 '13 at 8:53












                      • if you've removed the helo checks and your customers still can't send mail then it's most likely some other problem, with a different reject reason in the mail log.
                        – cas
                        Sep 22 '13 at 1:47










                      • They can send now. But I wanna to configure my server as secure
                        – RedLEON
                        Sep 22 '13 at 8:43






                      • 2




                        what makes you think that helo checks enhance security?
                        – cas
                        Sep 22 '13 at 13:36
















                      thank you. I disabled that lines and it's work now. I can send with mozilla thunderbird on my pc. But my customer can't send any mail with outlook on their pc. Is there any way to fix this problem with HELO check config?
                      – RedLEON
                      Sep 21 '13 at 8:53






                      thank you. I disabled that lines and it's work now. I can send with mozilla thunderbird on my pc. But my customer can't send any mail with outlook on their pc. Is there any way to fix this problem with HELO check config?
                      – RedLEON
                      Sep 21 '13 at 8:53














                      if you've removed the helo checks and your customers still can't send mail then it's most likely some other problem, with a different reject reason in the mail log.
                      – cas
                      Sep 22 '13 at 1:47




                      if you've removed the helo checks and your customers still can't send mail then it's most likely some other problem, with a different reject reason in the mail log.
                      – cas
                      Sep 22 '13 at 1:47












                      They can send now. But I wanna to configure my server as secure
                      – RedLEON
                      Sep 22 '13 at 8:43




                      They can send now. But I wanna to configure my server as secure
                      – RedLEON
                      Sep 22 '13 at 8:43




                      2




                      2




                      what makes you think that helo checks enhance security?
                      – cas
                      Sep 22 '13 at 13:36




                      what makes you think that helo checks enhance security?
                      – cas
                      Sep 22 '13 at 13:36












                      up vote
                      6
                      down vote













                      You can bypass HELO restrictions for authenticated users by inserting permit_sasl_authenticated before rejecting rules in the smtpd_helo_restrictions list:



                      smtpd_helo_restrictions =
                      permit_mynetworks,
                      permit_sasl_authenticated,
                      reject_non_fqdn_helo_hostname,
                      reject_invalid_helo_hostname,
                      permit





                      share|improve this answer

























                        up vote
                        6
                        down vote













                        You can bypass HELO restrictions for authenticated users by inserting permit_sasl_authenticated before rejecting rules in the smtpd_helo_restrictions list:



                        smtpd_helo_restrictions =
                        permit_mynetworks,
                        permit_sasl_authenticated,
                        reject_non_fqdn_helo_hostname,
                        reject_invalid_helo_hostname,
                        permit





                        share|improve this answer























                          up vote
                          6
                          down vote










                          up vote
                          6
                          down vote









                          You can bypass HELO restrictions for authenticated users by inserting permit_sasl_authenticated before rejecting rules in the smtpd_helo_restrictions list:



                          smtpd_helo_restrictions =
                          permit_mynetworks,
                          permit_sasl_authenticated,
                          reject_non_fqdn_helo_hostname,
                          reject_invalid_helo_hostname,
                          permit





                          share|improve this answer












                          You can bypass HELO restrictions for authenticated users by inserting permit_sasl_authenticated before rejecting rules in the smtpd_helo_restrictions list:



                          smtpd_helo_restrictions =
                          permit_mynetworks,
                          permit_sasl_authenticated,
                          reject_non_fqdn_helo_hostname,
                          reject_invalid_helo_hostname,
                          permit






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 4 '15 at 21:11









                          Stas

                          6111




                          6111






















                              up vote
                              1
                              down vote













                              The host name variable for your mail server is invalid.



                              Try and change the value of myhostname field from /etc/postfix/main.cf from the default value to your host name (e.g. yourwebsite.com or mail.yourwebsite.com)






                              share|improve this answer

























                                up vote
                                1
                                down vote













                                The host name variable for your mail server is invalid.



                                Try and change the value of myhostname field from /etc/postfix/main.cf from the default value to your host name (e.g. yourwebsite.com or mail.yourwebsite.com)






                                share|improve this answer























                                  up vote
                                  1
                                  down vote










                                  up vote
                                  1
                                  down vote









                                  The host name variable for your mail server is invalid.



                                  Try and change the value of myhostname field from /etc/postfix/main.cf from the default value to your host name (e.g. yourwebsite.com or mail.yourwebsite.com)






                                  share|improve this answer












                                  The host name variable for your mail server is invalid.



                                  Try and change the value of myhostname field from /etc/postfix/main.cf from the default value to your host name (e.g. yourwebsite.com or mail.yourwebsite.com)







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Aug 12 '14 at 8:39









                                  Jason Swartz

                                  13117




                                  13117






















                                      up vote
                                      0
                                      down vote













                                      It has taken me ages to work this out



                                      I am running a centos server and was getting email bouncing back reporting the error" Helo command rejected: need fully-qualified hostname"



                                      I ended up enabling "Reference /etc/mailhelo for outgoing SMTP HELO [?]"
                                      This was located under "exim configuration manager" then "Domains and IPS" on the VPS server



                                      Then i used putty and remoted onto the server and ran this command "sudo nano /etc/mailhelo"



                                      In that file i created the domains
                                      example.com: example.com
                                      sub.example.com: example.com
                                      example.net: example.net
                                      addon.example.net: example.net
                                      *: hostname.example.com



                                      (as per http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/EximDifferentIps)



                                      I have tested sending email and all looks good so far






                                      share|improve this answer

























                                        up vote
                                        0
                                        down vote













                                        It has taken me ages to work this out



                                        I am running a centos server and was getting email bouncing back reporting the error" Helo command rejected: need fully-qualified hostname"



                                        I ended up enabling "Reference /etc/mailhelo for outgoing SMTP HELO [?]"
                                        This was located under "exim configuration manager" then "Domains and IPS" on the VPS server



                                        Then i used putty and remoted onto the server and ran this command "sudo nano /etc/mailhelo"



                                        In that file i created the domains
                                        example.com: example.com
                                        sub.example.com: example.com
                                        example.net: example.net
                                        addon.example.net: example.net
                                        *: hostname.example.com



                                        (as per http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/EximDifferentIps)



                                        I have tested sending email and all looks good so far






                                        share|improve this answer























                                          up vote
                                          0
                                          down vote










                                          up vote
                                          0
                                          down vote









                                          It has taken me ages to work this out



                                          I am running a centos server and was getting email bouncing back reporting the error" Helo command rejected: need fully-qualified hostname"



                                          I ended up enabling "Reference /etc/mailhelo for outgoing SMTP HELO [?]"
                                          This was located under "exim configuration manager" then "Domains and IPS" on the VPS server



                                          Then i used putty and remoted onto the server and ran this command "sudo nano /etc/mailhelo"



                                          In that file i created the domains
                                          example.com: example.com
                                          sub.example.com: example.com
                                          example.net: example.net
                                          addon.example.net: example.net
                                          *: hostname.example.com



                                          (as per http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/EximDifferentIps)



                                          I have tested sending email and all looks good so far






                                          share|improve this answer












                                          It has taken me ages to work this out



                                          I am running a centos server and was getting email bouncing back reporting the error" Helo command rejected: need fully-qualified hostname"



                                          I ended up enabling "Reference /etc/mailhelo for outgoing SMTP HELO [?]"
                                          This was located under "exim configuration manager" then "Domains and IPS" on the VPS server



                                          Then i used putty and remoted onto the server and ran this command "sudo nano /etc/mailhelo"



                                          In that file i created the domains
                                          example.com: example.com
                                          sub.example.com: example.com
                                          example.net: example.net
                                          addon.example.net: example.net
                                          *: hostname.example.com



                                          (as per http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/EximDifferentIps)



                                          I have tested sending email and all looks good so far







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered May 12 '14 at 23:47









                                          Matt Bird

                                          1




                                          1






















                                              up vote
                                              0
                                              down vote













                                              It's not your e-mail server that rejects the client, but an external SMTP server that rejects the message from your SMTP server, the issue is that your SMTP server does not send it's FQDN name in the helo message when communicating with other servers.



                                              This can usually be solved by adding the public IP to hosts file with the FQDN to the /etc/hosts file. Like this:



                                              1.1.1.1 host.domain.com host



                                              127.0.0.2 host.domain.com host



                                              Where 1.1.1.1 is the official IP.



                                              I had this problem and it did not help that the DNS was working both ways forward/reverse on the public IP and I had only my own nameserver in /etc/resolv.conf. Even hostname -f returned the correct one.
                                              I still had to put the ip and hostname to /etc/hosts for sendmail to actually use the FQDN instead of just the short hostname.



                                              If you telnet to your server on port 25, make sure the 220 line says the FQDN and not just the host.
                                              Like this:



                                              220 host.domain.com ESMTP Sendmail 8.15.2/8.15.2/SuSE Linux 0.8; Mon, 9 Jul 2018 18:19:48 +0200






                                              share|improve this answer

























                                                up vote
                                                0
                                                down vote













                                                It's not your e-mail server that rejects the client, but an external SMTP server that rejects the message from your SMTP server, the issue is that your SMTP server does not send it's FQDN name in the helo message when communicating with other servers.



                                                This can usually be solved by adding the public IP to hosts file with the FQDN to the /etc/hosts file. Like this:



                                                1.1.1.1 host.domain.com host



                                                127.0.0.2 host.domain.com host



                                                Where 1.1.1.1 is the official IP.



                                                I had this problem and it did not help that the DNS was working both ways forward/reverse on the public IP and I had only my own nameserver in /etc/resolv.conf. Even hostname -f returned the correct one.
                                                I still had to put the ip and hostname to /etc/hosts for sendmail to actually use the FQDN instead of just the short hostname.



                                                If you telnet to your server on port 25, make sure the 220 line says the FQDN and not just the host.
                                                Like this:



                                                220 host.domain.com ESMTP Sendmail 8.15.2/8.15.2/SuSE Linux 0.8; Mon, 9 Jul 2018 18:19:48 +0200






                                                share|improve this answer























                                                  up vote
                                                  0
                                                  down vote










                                                  up vote
                                                  0
                                                  down vote









                                                  It's not your e-mail server that rejects the client, but an external SMTP server that rejects the message from your SMTP server, the issue is that your SMTP server does not send it's FQDN name in the helo message when communicating with other servers.



                                                  This can usually be solved by adding the public IP to hosts file with the FQDN to the /etc/hosts file. Like this:



                                                  1.1.1.1 host.domain.com host



                                                  127.0.0.2 host.domain.com host



                                                  Where 1.1.1.1 is the official IP.



                                                  I had this problem and it did not help that the DNS was working both ways forward/reverse on the public IP and I had only my own nameserver in /etc/resolv.conf. Even hostname -f returned the correct one.
                                                  I still had to put the ip and hostname to /etc/hosts for sendmail to actually use the FQDN instead of just the short hostname.



                                                  If you telnet to your server on port 25, make sure the 220 line says the FQDN and not just the host.
                                                  Like this:



                                                  220 host.domain.com ESMTP Sendmail 8.15.2/8.15.2/SuSE Linux 0.8; Mon, 9 Jul 2018 18:19:48 +0200






                                                  share|improve this answer












                                                  It's not your e-mail server that rejects the client, but an external SMTP server that rejects the message from your SMTP server, the issue is that your SMTP server does not send it's FQDN name in the helo message when communicating with other servers.



                                                  This can usually be solved by adding the public IP to hosts file with the FQDN to the /etc/hosts file. Like this:



                                                  1.1.1.1 host.domain.com host



                                                  127.0.0.2 host.domain.com host



                                                  Where 1.1.1.1 is the official IP.



                                                  I had this problem and it did not help that the DNS was working both ways forward/reverse on the public IP and I had only my own nameserver in /etc/resolv.conf. Even hostname -f returned the correct one.
                                                  I still had to put the ip and hostname to /etc/hosts for sendmail to actually use the FQDN instead of just the short hostname.



                                                  If you telnet to your server on port 25, make sure the 220 line says the FQDN and not just the host.
                                                  Like this:



                                                  220 host.domain.com ESMTP Sendmail 8.15.2/8.15.2/SuSE Linux 0.8; Mon, 9 Jul 2018 18:19:48 +0200







                                                  share|improve this answer












                                                  share|improve this answer



                                                  share|improve this answer










                                                  answered Jul 9 at 16:28









                                                  Jonas Kvinge

                                                  1




                                                  1






















                                                      up vote
                                                      0
                                                      down vote













                                                      Sometimes a server has a 'hiccup'. Caused for instance by mail attacks.



                                                      First try restart the server.
                                                      Than set the mail in the server to off an after 15 seconds back on.



                                                      Sometimes the HELO cmd rejected is caused because mail cannot load new anti-virus definitions; like AmaVis that is used on Apple servers.
                                                      A restart and off/on the mail app in the server solves this problem.
                                                      Cheers.






                                                      share|improve this answer

























                                                        up vote
                                                        0
                                                        down vote













                                                        Sometimes a server has a 'hiccup'. Caused for instance by mail attacks.



                                                        First try restart the server.
                                                        Than set the mail in the server to off an after 15 seconds back on.



                                                        Sometimes the HELO cmd rejected is caused because mail cannot load new anti-virus definitions; like AmaVis that is used on Apple servers.
                                                        A restart and off/on the mail app in the server solves this problem.
                                                        Cheers.






                                                        share|improve this answer























                                                          up vote
                                                          0
                                                          down vote










                                                          up vote
                                                          0
                                                          down vote









                                                          Sometimes a server has a 'hiccup'. Caused for instance by mail attacks.



                                                          First try restart the server.
                                                          Than set the mail in the server to off an after 15 seconds back on.



                                                          Sometimes the HELO cmd rejected is caused because mail cannot load new anti-virus definitions; like AmaVis that is used on Apple servers.
                                                          A restart and off/on the mail app in the server solves this problem.
                                                          Cheers.






                                                          share|improve this answer












                                                          Sometimes a server has a 'hiccup'. Caused for instance by mail attacks.



                                                          First try restart the server.
                                                          Than set the mail in the server to off an after 15 seconds back on.



                                                          Sometimes the HELO cmd rejected is caused because mail cannot load new anti-virus definitions; like AmaVis that is used on Apple servers.
                                                          A restart and off/on the mail app in the server solves this problem.
                                                          Cheers.







                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Oct 11 at 13:52









                                                          Danny

                                                          1




                                                          1






















                                                              up vote
                                                              0
                                                              down vote













                                                              I was getting non-domain name when running hostname -f. So I googled for no domain in "hostname -f". It turned out I needed to edit /etc/hostname (I'm on Debian) to resolve the problem. After that both hostname -f and helo were using fully qualified hostname.






                                                              share|improve this answer








                                                              New contributor




                                                              Jarekczek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                              Check out our Code of Conduct.






















                                                                up vote
                                                                0
                                                                down vote













                                                                I was getting non-domain name when running hostname -f. So I googled for no domain in "hostname -f". It turned out I needed to edit /etc/hostname (I'm on Debian) to resolve the problem. After that both hostname -f and helo were using fully qualified hostname.






                                                                share|improve this answer








                                                                New contributor




                                                                Jarekczek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                Check out our Code of Conduct.




















                                                                  up vote
                                                                  0
                                                                  down vote










                                                                  up vote
                                                                  0
                                                                  down vote









                                                                  I was getting non-domain name when running hostname -f. So I googled for no domain in "hostname -f". It turned out I needed to edit /etc/hostname (I'm on Debian) to resolve the problem. After that both hostname -f and helo were using fully qualified hostname.






                                                                  share|improve this answer








                                                                  New contributor




                                                                  Jarekczek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                  Check out our Code of Conduct.









                                                                  I was getting non-domain name when running hostname -f. So I googled for no domain in "hostname -f". It turned out I needed to edit /etc/hostname (I'm on Debian) to resolve the problem. After that both hostname -f and helo were using fully qualified hostname.







                                                                  share|improve this answer








                                                                  New contributor




                                                                  Jarekczek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                  Check out our Code of Conduct.









                                                                  share|improve this answer



                                                                  share|improve this answer






                                                                  New contributor




                                                                  Jarekczek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                  Check out our Code of Conduct.









                                                                  answered Nov 21 at 19:20









                                                                  Jarekczek

                                                                  1012




                                                                  1012




                                                                  New contributor




                                                                  Jarekczek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                  Check out our Code of Conduct.





                                                                  New contributor





                                                                  Jarekczek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                  Check out our Code of Conduct.






                                                                  Jarekczek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                                                                  Check out our Code of Conduct.






























                                                                       

                                                                      draft saved


                                                                      draft discarded



















































                                                                       


                                                                      draft saved


                                                                      draft discarded














                                                                      StackExchange.ready(
                                                                      function () {
                                                                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f91749%2fhelo-command-rejected-need-fully-qualified-hostname-error%23new-answer', 'question_page');
                                                                      }
                                                                      );

                                                                      Post as a guest















                                                                      Required, but never shown





















































                                                                      Required, but never shown














                                                                      Required, but never shown












                                                                      Required, but never shown







                                                                      Required, but never shown

































                                                                      Required, but never shown














                                                                      Required, but never shown












                                                                      Required, but never shown







                                                                      Required, but never shown







                                                                      Popular posts from this blog

                                                                      Entries order in /etc/network/interfaces

                                                                      新発田市

                                                                      Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)