1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to setup email bouncing via a script 2014-11-30

bypass the need to manage mailboxes

  1. Jim Boy

    Jim Boy Well-Known Member

    Jim Boy submitted a new resource:

    How to setup email bouncing via a script - bypass the need to manage mailboxes

    Read more about this resource...
     
    Xon and Mirovinger like this.
  2. Xon

    Xon Well-Known Member

    @Jim Boy

    The edit to /etc/postfix/master.cf, really should be:
    Code:
    myXenForoPipe unix - n n - - pipe
      flags=O user=nginx argv=/path/to/php /path/to/forum/base/emailbounce.php
    
    And you probably want to append the following to /etc/postfix/main.cf to rate limit and limit the number of instances used:
    Code:
    myXenForoPipe_destination_rate_delay = 0s
    myXenForoPipe_destination_concurrency_limit = 1
    
     
    Jim Boy likes this.
  3. Jim Boy

    Jim Boy Well-Known Member

    tA for the
    Ta, postfix isn't really a strength of mine. In the php script I use, I had made it executable (eg #!/usr/bin/php on first line) so it was working fine for us.
     
    Xon likes this.
  4. ForestForTrees

    ForestForTrees Well-Known Member

    Would you be willing to explain the benefits of doing this? What is it for?
     
  5. Xon

    Xon Well-Known Member

    It allows for faster bounce handling, and permits the bounce emails from actually being sent off your outbound email server thus saving money if you are using a 3rd party gateway.

    It means you don't need to poll a mailbox every hour, you process the messages as they arrive with built-in queuing by the email server.
     
    AndyB, ForestForTrees and Jim Boy like this.

Share This Page