Basic Postfix configuration not working?











up vote
0
down vote

favorite












So all I am trying to do is send a test email from my web server. I do own the domain name and viewing my website itself works perfectly fine.



I have installed postfix brand new out of the box and modified the following in my /etc/postfix/main.cf per tutorials online:



enter image description here



After this I try the following command to send an email to myself at gmail:



echo "Body of email" | mail -s "This is the test Subject" x@gmail.com



but nothing gets sent. I do see that they go in the queue:



enter image description here



I do see in the logs that my connection times out when trying to send.



So a bit of detail that may affect the sending:




  • Port 25 is blocked by my ISP. Would this prevent sending email? I thought that would only block incoming email

  • Do I have to do anything different to my main.cf or am I looking in the wrong place?

  • I have confirmed that the service postfix is running










share|improve this question


























    up vote
    0
    down vote

    favorite












    So all I am trying to do is send a test email from my web server. I do own the domain name and viewing my website itself works perfectly fine.



    I have installed postfix brand new out of the box and modified the following in my /etc/postfix/main.cf per tutorials online:



    enter image description here



    After this I try the following command to send an email to myself at gmail:



    echo "Body of email" | mail -s "This is the test Subject" x@gmail.com



    but nothing gets sent. I do see that they go in the queue:



    enter image description here



    I do see in the logs that my connection times out when trying to send.



    So a bit of detail that may affect the sending:




    • Port 25 is blocked by my ISP. Would this prevent sending email? I thought that would only block incoming email

    • Do I have to do anything different to my main.cf or am I looking in the wrong place?

    • I have confirmed that the service postfix is running










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      So all I am trying to do is send a test email from my web server. I do own the domain name and viewing my website itself works perfectly fine.



      I have installed postfix brand new out of the box and modified the following in my /etc/postfix/main.cf per tutorials online:



      enter image description here



      After this I try the following command to send an email to myself at gmail:



      echo "Body of email" | mail -s "This is the test Subject" x@gmail.com



      but nothing gets sent. I do see that they go in the queue:



      enter image description here



      I do see in the logs that my connection times out when trying to send.



      So a bit of detail that may affect the sending:




      • Port 25 is blocked by my ISP. Would this prevent sending email? I thought that would only block incoming email

      • Do I have to do anything different to my main.cf or am I looking in the wrong place?

      • I have confirmed that the service postfix is running










      share|improve this question













      So all I am trying to do is send a test email from my web server. I do own the domain name and viewing my website itself works perfectly fine.



      I have installed postfix brand new out of the box and modified the following in my /etc/postfix/main.cf per tutorials online:



      enter image description here



      After this I try the following command to send an email to myself at gmail:



      echo "Body of email" | mail -s "This is the test Subject" x@gmail.com



      but nothing gets sent. I do see that they go in the queue:



      enter image description here



      I do see in the logs that my connection times out when trying to send.



      So a bit of detail that may affect the sending:




      • Port 25 is blocked by my ISP. Would this prevent sending email? I thought that would only block incoming email

      • Do I have to do anything different to my main.cf or am I looking in the wrong place?

      • I have confirmed that the service postfix is running







      email postfix






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 at 15:42









      Eric F

      2,73631131




      2,73631131






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote














          Port 25 is blocked by my ISP. Would this prevent sending email?




          Yes.




          I thought that would only block incoming email




          Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.




          Do I have to do anything different to my main.cf




          It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.



          Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.




          I have confirmed that the service postfix is running




          Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.






          share|improve this answer





















          • Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
            – Eric F
            Nov 21 at 16:53











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2fsuperuser.com%2fquestions%2f1377323%2fbasic-postfix-configuration-not-working%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
          1
          down vote














          Port 25 is blocked by my ISP. Would this prevent sending email?




          Yes.




          I thought that would only block incoming email




          Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.




          Do I have to do anything different to my main.cf




          It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.



          Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.




          I have confirmed that the service postfix is running




          Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.






          share|improve this answer





















          • Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
            – Eric F
            Nov 21 at 16:53















          up vote
          1
          down vote














          Port 25 is blocked by my ISP. Would this prevent sending email?




          Yes.




          I thought that would only block incoming email




          Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.




          Do I have to do anything different to my main.cf




          It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.



          Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.




          I have confirmed that the service postfix is running




          Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.






          share|improve this answer





















          • Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
            – Eric F
            Nov 21 at 16:53













          up vote
          1
          down vote










          up vote
          1
          down vote










          Port 25 is blocked by my ISP. Would this prevent sending email?




          Yes.




          I thought that would only block incoming email




          Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.




          Do I have to do anything different to my main.cf




          It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.



          Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.




          I have confirmed that the service postfix is running




          Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.






          share|improve this answer













          Port 25 is blocked by my ISP. Would this prevent sending email?




          Yes.




          I thought that would only block incoming email




          Entirely depends on how the block was configured. The ISP can choose either to block in one direction (by checking srcip + dstport, or dstip + dstport, or other combination) – or block in both directions by checking just the dstport.




          Do I have to do anything different to my main.cf




          It depends on whether the problem is solvable via main.cf, so determine the problem before searching for a solution – see next reply.



          Postfix cannot bypass ISP-level port blocking and still remain able to directly deliver messages. If outgoing connections to port 25 are indeed blocked, there's nothing you can do except relay/tunnel through another server which doesn't have such blocks.




          I have confirmed that the service postfix is running




          Also confirm what the service is actually doing. Postfix writes information about mail delivery to syslog (e.g. /var/log/mail.log). If it says it has encountered a timeout, that's probably ISP-level blocking. If it says it successfully reached the server but got told off, that's another topic.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 at 16:08









          grawity

          229k35481541




          229k35481541












          • Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
            – Eric F
            Nov 21 at 16:53


















          • Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
            – Eric F
            Nov 21 at 16:53
















          Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
          – Eric F
          Nov 21 at 16:53




          Thank you for the quick and detailed response. My next venture will be to use Dynu as my relay.
          – Eric F
          Nov 21 at 16:53


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1377323%2fbasic-postfix-configuration-not-working%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

          QoS: MAC-Priority for clients behind a repeater

          Ивакино (Тотемский район)

          Can't locate Autom4te/ChannelDefs.pm in @INC (when it definitely is there)