Article View: alt.privacy.anon-server
Article #303734Re: How to setup a remailer forwarder
From: inwtx
Date: Thu, 18 Apr 2019 16:04
Date: Thu, 18 Apr 2019 16:04
56 lines
2488 bytes
2488 bytes
>
> On 4/17/19 5:28 PM, mixmaster wrote:
>
>> Thanks Alex. Really glad to see you back.
>
> There is an important part that has been left out of Alex's answer.
>
> Zax provided the answer previously in APA-S here, which is that you need
> to instruct Postfix to only relay to known remailer addresses and no
> other address.
>
> <https://groups.google.com/forum/message/raw?msg=alt.privacy.anon-server/hsFgpkFCfdk/lxF1c610yPsJ>
>
> Remember also to do
>
> postmap /etc/postfix/remailer_access
>
> And then reload Postfix
>
> sudo systemctl reload postfix
Here is a re-write of Zax's code that downloads the stats and sets up everything. Place it somewhere in a /root/??? folder and execute it by cron once a day.
RemailerAccess.sh
#!/bin/bash
#
# This script updates a remailer_access file in order for
# a server to be used as a relay to all remailers (only).
# It determines the remailer addresses by downloading the
# mlist2.txt file from the chosen echolot stats pinger
# pointed to in the 'StatsURL=' parameter below.
# Create the file remailer_access in your server's
# /etc/postfix folder. If you choose to use curl instead
# of wget, undelimiter 'curl' and delimiter 'wget' below.
## Put URL of mlist2.txt to download here after 'StatsURL=':
StatsURL=https://www.sec3.net/echolot/mlist2.txt
## Location of remailer_access file:
DEST=/etc/postfix/remailer_access
filePath=${0%/*} # current file path
##curl https://www.sec3.net/echolot/mlist2.txt > $filePath/mlist2.aux
wget --no-check-certificate https://www.sec3.net/echolot/mlist2.txt \
-O $filePath/mlist2.aux
grep \$remailer $filePath/mlist2.aux | cut -f 2 -d \< | cut -f 1 -d \> \
| xargs printf "%-60s OK\n" > $DEST
$(which postmap) $DEST
rm $filePath/mlist2.aux
exit 0
Technical Details
Message-ID:
<q9a777$cg3$1@news.mixmin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mailReferences:
<k7NtE.218271$UN2.69335@fx04.iad>Show Full Headers
Complete Article Headers
Message-ID: <q9a777$cg3$1@news.mixmin.net> Subject: Re: How to setup a remailer forwarder Date: Thu, 18 Apr 2019 11:04:52 -0500 From: "inwtx" <noreply@inwtx.net> References: <k7NtE.218271$UN2.69335@fx04.iad> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail Newsgroups: alt.privacy.anon-server Organization: Mixmin Injection-Date: Thu, 18 Apr 2019 16:04:56 -0000 (UTC) Injection-Info: news.mixmin.net; posting-host="ac1c4993f08cbb12804b8a7332c46bb28a96eae5"; Lines: 56