Should I set up my Postfix send-only server to send as a subdomain?How does mail server know what kind of...

I seem to dance, I am not a dancer. Who am I?

How can I wire 7 outdoor posts correctly?

Describing a chess game in a novel

What is the significance behind "40 days" that often appears in the Bible?

What favor did Moody owe Dumbledore?

Matrix using tikz package

How to get the n-th line after a grepped one?

Print last inputted byte

Could Sinn Fein swing any Brexit vote in Parliament?

How can an organ that provides biological immortality be unable to regenerate?

Should I use acronyms in dialogues before telling the readers what it stands for in fiction?

Differential and Linear trail propagation in Noekeon

Asserting that Atheism and Theism are both faith based positions

Usage and meaning of "up" in "...worth at least a thousand pounds up in London"

In what cases must I use 了 and in what cases not?

Hausdorff dimension of the boundary of fibres of Lipschitz maps

Can a wizard cast a spell during their first turn of combat if they initiated combat by releasing a readied spell?

What is the term when voters “dishonestly” choose something that they do not want to choose?

What does Deadpool mean by "left the house in that shirt"?

My friend is being a hypocrite

Calculate the frequency of characters in a string

Brake pads destroying wheels

Knife as defense against stray dogs

Geography in 3D perspective



Should I set up my Postfix send-only server to send as a subdomain?


How does mail server know what kind of client it's authenticating?Postfix: How to make aliases work for virtual domains?Postfix server configuration values explained?receiving two emails to virtual aliasHow to setup a Postfix SMTP-only for multiple domainsPOSTFIX: Limiting the rate at which a particular user can send emailHow to get Postfix to send/forward/relay to a sub-domain located on another server?Exchange 2010 delivery to postmaster 550 5.1.1 User unknownPostfix as SMTP server for Gmail. (“Send mail as” google option)SMTP credentials for one server on another server - how does it work?













0















Scenario:




  • I own the domain example.com.

  • I am signed up with an email provider, and configured my account as a catchall for *@example.com. I use the email dude@example.com.

  • I have a VPS running Ubuntu 18.04, which will host example.com.

  • On the VPS, I have a user called dude.


I want to:




  • configure Postfix as a send-only SMTP server to be able to send email as whatever@example.com. Inspired by this guide.

  • Particularly, I want some system, log, or application messages to be sent to me at dude@example.com and receive them at my external email provider (which I realize could be a little weird, because my VPS user is also dude).


To my novice mind, this seems like it would be a pretty common setup.



Long story short, this is not working quite as expected when I send some test emails to root or postmaster (echo test | mail -s testsubject postmaster). I think I have some ideas about how to fix it, but it has made me think that I might be digging myself into a hole and committing to a bad setup.



So I have some more general questions:




  • Should I completely abandon the user = dude and email = dude@example.com setup? Is that setting me up for crazy problems in the future?

  • Is it a better idea for my server to send as a subdomain? E.g. whatever@mail.example.com.

  • If the above answers are "No", then: can this kind of set up be accomplished with only aliases in /etc/aliases and other config options, or do I need to use virtual alias maps? This is potentially the most detail-oriented of my questions, so I am really only asking in a general sense.


I appreciate any advice folks might be able to give. I've read through all the comments on the guide, looked at lots of the suggested questions here, and have dozens of tabs open across two computers trying to sort this out!









share







New contributor




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

























    0















    Scenario:




    • I own the domain example.com.

    • I am signed up with an email provider, and configured my account as a catchall for *@example.com. I use the email dude@example.com.

    • I have a VPS running Ubuntu 18.04, which will host example.com.

    • On the VPS, I have a user called dude.


    I want to:




    • configure Postfix as a send-only SMTP server to be able to send email as whatever@example.com. Inspired by this guide.

    • Particularly, I want some system, log, or application messages to be sent to me at dude@example.com and receive them at my external email provider (which I realize could be a little weird, because my VPS user is also dude).


    To my novice mind, this seems like it would be a pretty common setup.



    Long story short, this is not working quite as expected when I send some test emails to root or postmaster (echo test | mail -s testsubject postmaster). I think I have some ideas about how to fix it, but it has made me think that I might be digging myself into a hole and committing to a bad setup.



    So I have some more general questions:




    • Should I completely abandon the user = dude and email = dude@example.com setup? Is that setting me up for crazy problems in the future?

    • Is it a better idea for my server to send as a subdomain? E.g. whatever@mail.example.com.

    • If the above answers are "No", then: can this kind of set up be accomplished with only aliases in /etc/aliases and other config options, or do I need to use virtual alias maps? This is potentially the most detail-oriented of my questions, so I am really only asking in a general sense.


    I appreciate any advice folks might be able to give. I've read through all the comments on the guide, looked at lots of the suggested questions here, and have dozens of tabs open across two computers trying to sort this out!









    share







    New contributor




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























      0












      0








      0








      Scenario:




      • I own the domain example.com.

      • I am signed up with an email provider, and configured my account as a catchall for *@example.com. I use the email dude@example.com.

      • I have a VPS running Ubuntu 18.04, which will host example.com.

      • On the VPS, I have a user called dude.


      I want to:




      • configure Postfix as a send-only SMTP server to be able to send email as whatever@example.com. Inspired by this guide.

      • Particularly, I want some system, log, or application messages to be sent to me at dude@example.com and receive them at my external email provider (which I realize could be a little weird, because my VPS user is also dude).


      To my novice mind, this seems like it would be a pretty common setup.



      Long story short, this is not working quite as expected when I send some test emails to root or postmaster (echo test | mail -s testsubject postmaster). I think I have some ideas about how to fix it, but it has made me think that I might be digging myself into a hole and committing to a bad setup.



      So I have some more general questions:




      • Should I completely abandon the user = dude and email = dude@example.com setup? Is that setting me up for crazy problems in the future?

      • Is it a better idea for my server to send as a subdomain? E.g. whatever@mail.example.com.

      • If the above answers are "No", then: can this kind of set up be accomplished with only aliases in /etc/aliases and other config options, or do I need to use virtual alias maps? This is potentially the most detail-oriented of my questions, so I am really only asking in a general sense.


      I appreciate any advice folks might be able to give. I've read through all the comments on the guide, looked at lots of the suggested questions here, and have dozens of tabs open across two computers trying to sort this out!









      share







      New contributor




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












      Scenario:




      • I own the domain example.com.

      • I am signed up with an email provider, and configured my account as a catchall for *@example.com. I use the email dude@example.com.

      • I have a VPS running Ubuntu 18.04, which will host example.com.

      • On the VPS, I have a user called dude.


      I want to:




      • configure Postfix as a send-only SMTP server to be able to send email as whatever@example.com. Inspired by this guide.

      • Particularly, I want some system, log, or application messages to be sent to me at dude@example.com and receive them at my external email provider (which I realize could be a little weird, because my VPS user is also dude).


      To my novice mind, this seems like it would be a pretty common setup.



      Long story short, this is not working quite as expected when I send some test emails to root or postmaster (echo test | mail -s testsubject postmaster). I think I have some ideas about how to fix it, but it has made me think that I might be digging myself into a hole and committing to a bad setup.



      So I have some more general questions:




      • Should I completely abandon the user = dude and email = dude@example.com setup? Is that setting me up for crazy problems in the future?

      • Is it a better idea for my server to send as a subdomain? E.g. whatever@mail.example.com.

      • If the above answers are "No", then: can this kind of set up be accomplished with only aliases in /etc/aliases and other config options, or do I need to use virtual alias maps? This is potentially the most detail-oriented of my questions, so I am really only asking in a general sense.


      I appreciate any advice folks might be able to give. I've read through all the comments on the guide, looked at lots of the suggested questions here, and have dozens of tabs open across two computers trying to sort this out!







      postfix smtp subdomain alias ubuntu-18.04





      share







      New contributor




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










      share







      New contributor




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








      share



      share






      New contributor




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









      asked 5 mins ago









      rayhintonrayhinton

      11




      11




      New contributor




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





      New contributor





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






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






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          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',
          autoActivateHeartbeat: false,
          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
          });


          }
          });






          rayhinton is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f958723%2fshould-i-set-up-my-postfix-send-only-server-to-send-as-a-subdomain%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          rayhinton is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          rayhinton is a new contributor. Be nice, and check out our Code of Conduct.













          rayhinton is a new contributor. Be nice, and check out our Code of Conduct.












          rayhinton is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Server Fault!


          • 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%2fserverfault.com%2fquestions%2f958723%2fshould-i-set-up-my-postfix-send-only-server-to-send-as-a-subdomain%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