home | list info | list archive | date index | thread index

Another tool if you run your own Postfix server

Hi,

Kind of blowing my own horn, but for people running their own Postfix or
Sendmail mail server, this might be handy: https://mailmunge.org/

It's a Swiss-army-knife mail filtering/manipulating tool that integrates
with your MTA.  As an example of something I do with it:  By default,
the Linux list sets the "From:" address to the list address and the
Reply-To: address to the original sender.  I don't like that; I want
my replies to go to the list by default.  So this little snippet of Perl
takes care of it:

        if ($ctx->canonical_sender() =~ /^linux\+bounces.*\@linux-ottawa\.org$/i) {
                # The linux list sets Reply-To: to the original sender.
                # I prefer it to be set to the list address.
                # So set From: back to the original sender
                # and Reply-To: to the list address
                my $repto = $ctx->mime_entity->head->get('Reply-To');
                if ($repto) {
                        chomp($repto);
                        $ctx->action_change_header('From', $repto);
                        $ctx->log('info', 'linux-ottawa list: Setting Reply-To: to list address and From: to ' . $repto);
                }
                $ctx->action_change_header('Reply-To', 'linux <linux [ at ] linux-ottawa [ dot ] org>');
        }

I also have it send a notification about incoming email to an IRC
channel on an internal server; on my desktop, I have an IRC bot that
looks for that and notifies me of incoming email with "notify-send".

Regards,

Dianne.

To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org