SMTP Error (530) 5.7.0 Must issue a STARTTLS command first











up vote
1
down vote

favorite












I am trying to use port 587 in roundcubemail running in the same machine as my mail server, and I am always receiving this error:



SMTP Error (530): Failed to set sender "X" (5.7.0 Must issue a STARTTLS command first).


I have already changed,



smtpd_tls_security_level=encrypt


to



smtpd_tls_security_level=may


and nothing happens, and I have already 'submission' uncommented. Those was the solutions that I have found to solve this problem, but till now no result here.



Main.cf:
http://pastebin.com/aEtC0AJt



Master.cf:
http://pastebin.com/023uu2T8



System specs:
1. PHP Version 5.6.25
2. Postfix
3. MacOS 10.12



I don't know if it is related, but I cannot login through IMAP port 993.



I am only able to use ports 25 and 143 without SSL.



I cannot send mails internally, all mails pass through my ISP mail server, where my email domain is.










share|improve this question




























    up vote
    1
    down vote

    favorite












    I am trying to use port 587 in roundcubemail running in the same machine as my mail server, and I am always receiving this error:



    SMTP Error (530): Failed to set sender "X" (5.7.0 Must issue a STARTTLS command first).


    I have already changed,



    smtpd_tls_security_level=encrypt


    to



    smtpd_tls_security_level=may


    and nothing happens, and I have already 'submission' uncommented. Those was the solutions that I have found to solve this problem, but till now no result here.



    Main.cf:
    http://pastebin.com/aEtC0AJt



    Master.cf:
    http://pastebin.com/023uu2T8



    System specs:
    1. PHP Version 5.6.25
    2. Postfix
    3. MacOS 10.12



    I don't know if it is related, but I cannot login through IMAP port 993.



    I am only able to use ports 25 and 143 without SSL.



    I cannot send mails internally, all mails pass through my ISP mail server, where my email domain is.










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am trying to use port 587 in roundcubemail running in the same machine as my mail server, and I am always receiving this error:



      SMTP Error (530): Failed to set sender "X" (5.7.0 Must issue a STARTTLS command first).


      I have already changed,



      smtpd_tls_security_level=encrypt


      to



      smtpd_tls_security_level=may


      and nothing happens, and I have already 'submission' uncommented. Those was the solutions that I have found to solve this problem, but till now no result here.



      Main.cf:
      http://pastebin.com/aEtC0AJt



      Master.cf:
      http://pastebin.com/023uu2T8



      System specs:
      1. PHP Version 5.6.25
      2. Postfix
      3. MacOS 10.12



      I don't know if it is related, but I cannot login through IMAP port 993.



      I am only able to use ports 25 and 143 without SSL.



      I cannot send mails internally, all mails pass through my ISP mail server, where my email domain is.










      share|improve this question















      I am trying to use port 587 in roundcubemail running in the same machine as my mail server, and I am always receiving this error:



      SMTP Error (530): Failed to set sender "X" (5.7.0 Must issue a STARTTLS command first).


      I have already changed,



      smtpd_tls_security_level=encrypt


      to



      smtpd_tls_security_level=may


      and nothing happens, and I have already 'submission' uncommented. Those was the solutions that I have found to solve this problem, but till now no result here.



      Main.cf:
      http://pastebin.com/aEtC0AJt



      Master.cf:
      http://pastebin.com/023uu2T8



      System specs:
      1. PHP Version 5.6.25
      2. Postfix
      3. MacOS 10.12



      I don't know if it is related, but I cannot login through IMAP port 993.



      I am only able to use ports 25 and 143 without SSL.



      I cannot send mails internally, all mails pass through my ISP mail server, where my email domain is.







      email postfix






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 25 '17 at 12:17









      Jeff Schaller

      37.4k1052121




      37.4k1052121










      asked Nov 23 '16 at 10:50









      SipriusPT

      2119




      2119






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          In regards to imap not listening on a given port: this is a completely different service. May be served by cyrus-imapd, dovecot, courrier, could also involve some imap proxy such as nginx, ... depending on your setup, there's probably something else to fix. Let us know.



          Now regarding the must issue a STARTTLS error, according to your main.cf, we have:



          mynetworks = 127.0.0.0/8, [::1]/128
          smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
          smtpd_recipient_restrictions = permit_sasl_authenticated


          You'll probably want to add permit_mynetworks to your smtpd_recipient_restrictions. And also make sure your roundcube is configured to connect on 127.0.0.1 or arguably add your IP address to mynetworks. What did you set as $config['smtp_server'] in roundcube config.php?






          share|improve this answer





















          • Thanks for the reply SYN!Yes i know i was just letting know, because i am just not able to use (send/receive mails) both TTL/SSL ports. I forgot to mentioned that i am using dovecot to IMAP/POP. So with that error from SMTP port 587, i was not able to solve that error with adding permit_networks to smtpd_recipient_restrictions. In every smtp and imap config at roundcube i was using localhost, and it works but just for port 25.
            – SipriusPT
            Nov 23 '16 at 16:58












          • I have read somewhere that PHP version 5.6 could be doing this. I saw a workaround where someone have downgraded PHP to version 5.5 and have solve avoid this problem. But cannot find anything related, dont know if could be from PHP. I have checked php and it is being use, through LibreSSL.
            – SipriusPT
            Nov 23 '16 at 17:04













          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%2f325406%2fsmtp-error-530-5-7-0-must-issue-a-starttls-command-first%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          In regards to imap not listening on a given port: this is a completely different service. May be served by cyrus-imapd, dovecot, courrier, could also involve some imap proxy such as nginx, ... depending on your setup, there's probably something else to fix. Let us know.



          Now regarding the must issue a STARTTLS error, according to your main.cf, we have:



          mynetworks = 127.0.0.0/8, [::1]/128
          smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
          smtpd_recipient_restrictions = permit_sasl_authenticated


          You'll probably want to add permit_mynetworks to your smtpd_recipient_restrictions. And also make sure your roundcube is configured to connect on 127.0.0.1 or arguably add your IP address to mynetworks. What did you set as $config['smtp_server'] in roundcube config.php?






          share|improve this answer





















          • Thanks for the reply SYN!Yes i know i was just letting know, because i am just not able to use (send/receive mails) both TTL/SSL ports. I forgot to mentioned that i am using dovecot to IMAP/POP. So with that error from SMTP port 587, i was not able to solve that error with adding permit_networks to smtpd_recipient_restrictions. In every smtp and imap config at roundcube i was using localhost, and it works but just for port 25.
            – SipriusPT
            Nov 23 '16 at 16:58












          • I have read somewhere that PHP version 5.6 could be doing this. I saw a workaround where someone have downgraded PHP to version 5.5 and have solve avoid this problem. But cannot find anything related, dont know if could be from PHP. I have checked php and it is being use, through LibreSSL.
            – SipriusPT
            Nov 23 '16 at 17:04

















          up vote
          0
          down vote













          In regards to imap not listening on a given port: this is a completely different service. May be served by cyrus-imapd, dovecot, courrier, could also involve some imap proxy such as nginx, ... depending on your setup, there's probably something else to fix. Let us know.



          Now regarding the must issue a STARTTLS error, according to your main.cf, we have:



          mynetworks = 127.0.0.0/8, [::1]/128
          smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
          smtpd_recipient_restrictions = permit_sasl_authenticated


          You'll probably want to add permit_mynetworks to your smtpd_recipient_restrictions. And also make sure your roundcube is configured to connect on 127.0.0.1 or arguably add your IP address to mynetworks. What did you set as $config['smtp_server'] in roundcube config.php?






          share|improve this answer





















          • Thanks for the reply SYN!Yes i know i was just letting know, because i am just not able to use (send/receive mails) both TTL/SSL ports. I forgot to mentioned that i am using dovecot to IMAP/POP. So with that error from SMTP port 587, i was not able to solve that error with adding permit_networks to smtpd_recipient_restrictions. In every smtp and imap config at roundcube i was using localhost, and it works but just for port 25.
            – SipriusPT
            Nov 23 '16 at 16:58












          • I have read somewhere that PHP version 5.6 could be doing this. I saw a workaround where someone have downgraded PHP to version 5.5 and have solve avoid this problem. But cannot find anything related, dont know if could be from PHP. I have checked php and it is being use, through LibreSSL.
            – SipriusPT
            Nov 23 '16 at 17:04















          up vote
          0
          down vote










          up vote
          0
          down vote









          In regards to imap not listening on a given port: this is a completely different service. May be served by cyrus-imapd, dovecot, courrier, could also involve some imap proxy such as nginx, ... depending on your setup, there's probably something else to fix. Let us know.



          Now regarding the must issue a STARTTLS error, according to your main.cf, we have:



          mynetworks = 127.0.0.0/8, [::1]/128
          smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
          smtpd_recipient_restrictions = permit_sasl_authenticated


          You'll probably want to add permit_mynetworks to your smtpd_recipient_restrictions. And also make sure your roundcube is configured to connect on 127.0.0.1 or arguably add your IP address to mynetworks. What did you set as $config['smtp_server'] in roundcube config.php?






          share|improve this answer












          In regards to imap not listening on a given port: this is a completely different service. May be served by cyrus-imapd, dovecot, courrier, could also involve some imap proxy such as nginx, ... depending on your setup, there's probably something else to fix. Let us know.



          Now regarding the must issue a STARTTLS error, according to your main.cf, we have:



          mynetworks = 127.0.0.0/8, [::1]/128
          smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
          smtpd_recipient_restrictions = permit_sasl_authenticated


          You'll probably want to add permit_mynetworks to your smtpd_recipient_restrictions. And also make sure your roundcube is configured to connect on 127.0.0.1 or arguably add your IP address to mynetworks. What did you set as $config['smtp_server'] in roundcube config.php?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 23 '16 at 15:16









          SYN

          1,844415




          1,844415












          • Thanks for the reply SYN!Yes i know i was just letting know, because i am just not able to use (send/receive mails) both TTL/SSL ports. I forgot to mentioned that i am using dovecot to IMAP/POP. So with that error from SMTP port 587, i was not able to solve that error with adding permit_networks to smtpd_recipient_restrictions. In every smtp and imap config at roundcube i was using localhost, and it works but just for port 25.
            – SipriusPT
            Nov 23 '16 at 16:58












          • I have read somewhere that PHP version 5.6 could be doing this. I saw a workaround where someone have downgraded PHP to version 5.5 and have solve avoid this problem. But cannot find anything related, dont know if could be from PHP. I have checked php and it is being use, through LibreSSL.
            – SipriusPT
            Nov 23 '16 at 17:04




















          • Thanks for the reply SYN!Yes i know i was just letting know, because i am just not able to use (send/receive mails) both TTL/SSL ports. I forgot to mentioned that i am using dovecot to IMAP/POP. So with that error from SMTP port 587, i was not able to solve that error with adding permit_networks to smtpd_recipient_restrictions. In every smtp and imap config at roundcube i was using localhost, and it works but just for port 25.
            – SipriusPT
            Nov 23 '16 at 16:58












          • I have read somewhere that PHP version 5.6 could be doing this. I saw a workaround where someone have downgraded PHP to version 5.5 and have solve avoid this problem. But cannot find anything related, dont know if could be from PHP. I have checked php and it is being use, through LibreSSL.
            – SipriusPT
            Nov 23 '16 at 17:04


















          Thanks for the reply SYN!Yes i know i was just letting know, because i am just not able to use (send/receive mails) both TTL/SSL ports. I forgot to mentioned that i am using dovecot to IMAP/POP. So with that error from SMTP port 587, i was not able to solve that error with adding permit_networks to smtpd_recipient_restrictions. In every smtp and imap config at roundcube i was using localhost, and it works but just for port 25.
          – SipriusPT
          Nov 23 '16 at 16:58






          Thanks for the reply SYN!Yes i know i was just letting know, because i am just not able to use (send/receive mails) both TTL/SSL ports. I forgot to mentioned that i am using dovecot to IMAP/POP. So with that error from SMTP port 587, i was not able to solve that error with adding permit_networks to smtpd_recipient_restrictions. In every smtp and imap config at roundcube i was using localhost, and it works but just for port 25.
          – SipriusPT
          Nov 23 '16 at 16:58














          I have read somewhere that PHP version 5.6 could be doing this. I saw a workaround where someone have downgraded PHP to version 5.5 and have solve avoid this problem. But cannot find anything related, dont know if could be from PHP. I have checked php and it is being use, through LibreSSL.
          – SipriusPT
          Nov 23 '16 at 17:04






          I have read somewhere that PHP version 5.6 could be doing this. I saw a workaround where someone have downgraded PHP to version 5.5 and have solve avoid this problem. But cannot find anything related, dont know if could be from PHP. I have checked php and it is being use, through LibreSSL.
          – SipriusPT
          Nov 23 '16 at 17:04




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f325406%2fsmtp-error-530-5-7-0-must-issue-a-starttls-command-first%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

          Accessing regular linux commands in Huawei's Dopra Linux

          Can't connect RFCOMM socket: Host is down

          Kernel panic - not syncing: Fatal Exception in Interrupt