How setup 'do not replay' mailbox as only for sending - postfix

Discussion in 'Server Operation' started by Poliman, Oct 16, 2017.

  1. Poliman

    Poliman Member

    I would like to setup 'do not reply' mailbox in particular domain, which would be only for sending emails. I use postfix 3.1.0 and ISPConfig 3.1.6. Is it possible to do?
     
  2. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    What do you call send only? Mail bounces when it arrives or it gets discarded?
     
  3. Poliman

    Poliman Member

    It can be bounced or discarded. I need to create something like "this is automatically sent message, please do not answer it" and if user would answer the message would be bounced or discarded. As I am curious - how to create redirection of message from user who will answer on "do not reply" email? Of coruse if it's possible.
     
  4. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    I do not know how you would be able to bounce the message. However I know how you can discard it...
    1) Edit /etc/aliases by adding a line like
    Code:
    devnull:     /dev/null
    2) Recreate aliases by running
    Code:
    newaliases
    3) Create a forward email and use devnull as destination
     
  5. Poliman

    Poliman Member

    Hmm, thanks for answer but I have no idea how to do it under ISP (this same without ISP). Second thing - forward email - you mean "do not reply"?
     
  6. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    1) and 2) is on the shell.
    3) is in ISPConfig. It is called "Email Forward"
     
  7. Poliman

    Poliman Member

    Email forward looks like normal redirection from one email to another one. In "Destination Email" should be just "devnull"?
     
  8. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    If you created and activated the alias in steps 1) and 2), then yes. The mails arriving at that address will get discarded.
     
  9. adamjedgar

    adamjedgar Member

    Whilst i havent tred this, would it be achievable by blocking incoming email port on firewall?

    OR

    In postfix, reject all but known email addresses?
    Would any catchall setup allow mail from no-reply@ or would it go to dev/null anyway?
     
    Last edited: Oct 17, 2017
  10. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    Postfix rejects all but known email addresses, but yours is known, or you will not be able to send mail using it.
     
  11. Poliman

    Poliman Member

    Of course "devnull" without quote " "? :)
    And one more - under Email Forward tab should I put email which is created before?

    PS
    What is "devnull" before colon in above HsorgYves answer? I found that it could be some "user" but I haven't any "devnull" user. As far as I know "/dev/null/" is some kind of linux black hole.
     
    Last edited: Oct 18, 2017
  12. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    devnull before colon is a virtual user which gets redirected to /dev/null
     
  13. Poliman

    Poliman Member

    It's some kind of default Linux users, right?
     
  14. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    /dev/null is more like a file.
     
  15. Poliman

    Poliman Member

    One more question - under Email Forward tab should I put email address which is created before?

    PS
    I have some idea. What would be if I would disable POP3/IMAP for particular (do not reply email) email in ISP -> Email -> Email Mailbox? Could the "do not reply" account receive any emails in that case?
     
    Last edited: Oct 19, 2017
  16. Poliman

    Poliman Member

    One more question (I can't edit my previous post). Which option in which program (I use postfix and dovecot) is disabled when under ISP -> particular email -> I disable Receiving option?
     

Share This Page