Results 1 to 3 of 3

Thread: Redirecting all emails except password reset

  1. #1
    Join Date
    Mar 2022
    Beans
    1

    Redirecting all emails except password reset

    I have a test server, that I want to be able to redirect all except password reset emails.

    So I put in this in my /etc/postfix/main.cf
    Code:
    header_checks = regexp:/etc/postfix/header_checks
    /etc/postfix/header_checks
    Code:
    !/Subject: \[TEST SYSTEM\] Please reset your password/m REDIRECT testing@mycompany.com
    ! at front is meant to be a not, and /m a multi line

    I have tried multiple variations, but I can't get it to not redirect those emails with certain subject line

    Any help please

  2. #2
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Redirecting all emails except password reset

    Thread moved to Server Platforms for a better fit

  3. #3
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,691
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Redirecting all emails except password reset

    I do not use Postfix and not familiar with it but could this be related to your issue?

    https://serverfault.com/questions/80...ks-not-working

    LHammonds

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •