🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #309307

Re: Does any remailer have an Open Mail Relay - only sending to other ?

#309307
From: inwtx
Date: Mon, 18 May 2020 19:52
62 lines
2943 bytes
> 
> On 2020-05-18 3:11 p.m., Stefan Claas wrote:
> 
>> SEC3 wrote:
>>
>>> On 2020-05-18 2:58 p.m., inwtx wrote:
>>>>   Well, that didn't work.  I am getting a bad cert for domain error.
>>>> Must start over again.
>>>
>>> My understanding is that a webserver and an email server cannot share
>>> the same LE cert. Postfix will throw an error if the name on the cert
>>> doesn't match your email host ( myhostname in /etc/postfic/main.cf)
>>
>> On my 300baud.de site the cert is used for both, Apache2 and postfix.
>>
>> Regards
>> Stefan
> 
> You're right, Stefan. I stand corrected. I see you use one LetsEncrypt
> cert with two names: 300baud.de and iria.300baud.de
> 
  I think I got it right this time and have gotten my head around this.

I. Deleted everything again.
cd /etc/letsencrypt/renewal/
rm <* all files>
rm -rf /etc/letsencrypt/live/www.<you>.net
rm -rf /etc/letsencrypt/live/<you>.net
rm -rf /etc/letsencrypt/live/mail.<you>.net


   May have to kill nginx.

II. For a Postfix cert
./certbot-auto certonly --standalone -d mail.<you>.net

III. For a Webserver (Nginx) cert
./certbot-auto certonly --standalone -d <you>.net -d www.<you>.net

Iv. See in message where it puts the keys:

Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/<you>.net-0001/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/<you>.net-0001/privkey.pem

Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/mail.<you>.net/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/mail.<you>.net/privkey.pem

V. Then look in nginx file /etc/nginx/sites-available/default
and set the 'ssl_certificate' to the /etc/letsencrypt/live/<you>.net-0001/
path.

Vi.  Then look in /etc/postfix/main.cf and set these the the mail cert path:
smtpd_tls_cert_file = /etc/letsencrypt/live/mail.<you>.net/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/mail.<you>.net/privkey.pem
smtp_tls_cert_file = /etc/letsencrypt/live/mail.<you>.net/fullchain.pem
smtp_tls_key_file = /etc/letsencrypt/live/mail.<you>.net/privkey.pem

  Then restart postfix and nginx.
Technical Details
Message-ID: <r9up27$viq$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!not-for-mail
References: <GfBwG.31499$cS.10456@fx29.iad>

Show Full Headers
Complete Article Headers
Message-ID: <r9up27$viq$1@news.mixmin.net>
Subject: Re: Does any remailer have an Open Mail Relay - only sending to other ?
Date: Mon, 18 May 2020 14:52:49 -0500
From: "inwtx" <noreply@inwtx.net>
References: <GfBwG.31499$cS.10456@fx29.iad>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Mon, 18 May 2020 19:52:50 -0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="4fca9fa578cf53604dffea1e0ec113feea292179"; logging-data="32346"; mail-complaints-to="abuse@mixmin.net"