Qmail – bounceback emails from outside my domain

  • Edit .qmail file

| echo “$SENDER” | grep -Eq ‘@my_domain.com$’ || bouncesaying “Private address!”

  • # Bounce all except from @domain1.com & @domain2.com

| echo “$SENDER” | egrep ‘@domain1|@domain2.com’ || bouncesaying “Private address!”

This entry was posted in Linux and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *