GithubHelp home page GithubHelp logo

wimstockman / opensmtpd-filter-rewrite-from Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jirutka/opensmtpd-filter-rewrite-from

0.0 0.0 0.0 5 KB

OpenSMTPD 6.6+ filter for rewriting From address

License: ISC License

Awk 100.00%

opensmtpd-filter-rewrite-from's Introduction

OpenSMTPD filter-rewrite-from

This is a very simple OpenSMTPD filter for rewriting email address in both MAIL FROM command and From header in all [1] messages with the specified email address. It’s useful when you want to ensure that all the relayed messages will be “send from” some no-reply email address.

This filter is implemented in ~60 lines (LoC) of awk.

Requirements

Installation

Just copy filter-rewrite-from to some directory, e.g. /usr/local/share/opensmtpd. If you have awk installed in a different directory than /usr/bin, adjust the shebang.

Configuration

The filter itself requires no configuration, only the desired From email address as the first argument.

It must be declared in smtpd.conf and attached to a listener:

filter "rewrite-from" proc-exec "/usr/local/share/opensmtpd/filter-rewrite-from [email protected]"

listen on socket filter "rewrite-from"

License

This project is licensed under ISC License. For the full text of the license, see the LICENSE file.


1. This implementation doesn’t support any conditions or different rewrite addresses based on the source. It’s really trivial, just for my current needs.

opensmtpd-filter-rewrite-from's People

Contributors

hxw avatar jirutka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.