🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
21 messages
21 total messages Started by Anonymous Mon, 18 May 2020 01:18
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309268
Author: Anonymous
Date: Mon, 18 May 2020 01:18
15 lines
1405 bytes
In article <20200518005136.00007b83@300baud.de>
Stefan Claas <sac@300baud.de> wrote:
>>
>> Using YAMN a lot of messages do not reach Newsgroups.
>
> That has IMHO nothing to do with YAMN, or can you give an example
> when a Mixmaster message came through and a (the same) YAMN message
> did not? Maybe it is a content problem, e.g. 'cleanfeed' for Usenet
> postings.
>

This is not a content problem. Test messages to a test newsgroup have not been posted. I will 
send some more test message to a test Newsgroups. The same message with mixmaster and YAMN.

What information do you need and how do you want to get the information (anonym) ?
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309271
Author: SEC3
Date: Mon, 18 May 2020 02:00
37 lines
2051 bytes
On 2020-05-17 9:18 p.m., Anonymous wrote:
> In article <20200518005136.00007b83@300baud.de>
> Stefan Claas <sac@300baud.de> wrote:
>>>
>>> Using YAMN a lot of messages do not reach Newsgroups.
>>
>> That has IMHO nothing to do with YAMN, or can you give an example
>> when a Mixmaster message came through and a (the same) YAMN message
>> did not? Maybe it is a content problem, e.g. 'cleanfeed' for Usenet
>> postings.
>>
> 
> This is not a content problem.

If you are using inwtx's YAMN GUI Client then the default settings for
that program are

SMTPRelay=mail.inwtx.net
SMTPPort=2525

Inwtx's TLS cert is expired. This is likely causing your outgoing
messages to fail being delivered beyond your local computer.

Change your relay to

SMTPRelay=iria.300baud.de
SMTPPort=25

and your posts to Usenet will likely succeed.


-- 
SEC3

Contact information at <https://sec3.net>
I am also on Keybase <https://keybase.io/sec3>
YAMN Help <https://sec3.net/yamnhelp/>
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309279
Author: SEC3
Date: Mon, 18 May 2020 02:02
9 lines
1181 bytes
On 2020-05-17 10:00 p.m., SEC3 wrote:
> SMTPRelay=iria.300baud.de
> SMTPPort=25
Correction:

SMTPPort=2525


SEC3
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309283
Author: inwtx
Date: Mon, 18 May 2020 13:25
72 lines
4129 bytes
> 
> Inwtx's TLS cert is expired.

2020-04-22: /etc/letsencrypt/live/inwtx.net/cert.pem
2020-04-22: /etc/letsencrypt/live/inwtx.net/fullchain.pem
2020-05-18: /etc/letsencrypt/live/inwtx.net/privkey.pem
2021-03-17: /etc/letsencrypt/live/inwtx.net/chain.pem

  I can't get certbot to renew them.  I don't know enough
about certbot to make it update the certs.

I tried both:

./certbot-auto -d inwtx.net -d www.inwtx.net -d mail.inwtx.net
./certbot-auto certificates

  I have tried running both with nginx running and not running.

  The first one gives these diagnostics:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
NGINX configured with OpenSSL alternatives is not officially supported by Certbot.
Plugins selected: Authenticator nginx, Installer nginx
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for www.inwtx.net
nginx: [error] invalid PID number "" in "/run/nginx.pid"
Cleaning up challenges
nginx: [error] invalid PID number "" in "/run/nginx.pid"
Encountered exception during recovery:
Traceback (most recent call last):
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/_internal/error_handler.py", line 125, in _call_registered
    self.funcs[-1]()
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/_internal/auth_handler.py", line 243, in _cleanup_challenges
    self.auth.cleanup(achalls)
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_nginx/_internal/configurator.py", line 1136, in cleanup
    self.restart()
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_nginx/_internal/configurator.py", line 915, in restart
    nginx_restart(self.conf('ctl'), self.nginx_conf)
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_nginx/_internal/configurator.py", line 1187, in nginx_restart
    "nginx restart failed:\n%s\n%s" % (out.read(), err.read()))
MisconfigurationError: nginx restart failed:
nginx restart failed:


  The second gives these diagnostics:

Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
  Certificate Name: inwtx.net-0002
    Serial Number: 48a3e3e75ffa247f2e6f5963b32de9bc7c5
    Domains: inwtx.net www.inwtx.net
    Expiry Date: 2020-06-01 23:36:37+00:00 (VALID: 14 days)
    Certificate Path: /etc/letsencrypt/live/inwtx.net-0002/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/inwtx.net-0002/privkey.pem
  Certificate Name: inwtx.net
    Serial Number: 40011009958742ce36fef40e8763e380245
    Domains: inwtx.net mail.inwtx.net www.inwtx.net
    Expiry Date: 2020-04-22 19:03:24+00:00 (INVALID: EXPIRED)
    Certificate Path: /etc/letsencrypt/live/inwtx.net/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/inwtx.net/privkey.pem
  Certificate Name: mail.inwtx.net
    Serial Number: 3d9d014d9ed50b17a5289af5e7dcf354cbf
    Domains: mail.inwtx.net
    Expiry Date: 2020-04-22 19:04:01+00:00 (INVALID: EXPIRED)
    Certificate Path: /etc/letsencrypt/live/mail.inwtx.net/fullchain.pem
    Private Key Path: /etc/letsencrypt/live/mail.inwtx.net/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309286
Author: inwtx
Date: Mon, 18 May 2020 13:54
40 lines
2291 bytes
  Maybe something is wrong in my main.cf file:

# TLS parameters BEGIN 
## sec3 TLS parameters for incoming connections (smtpd)
tls_random_source = dev:/dev/urandom
smtpd_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtpd_tls_CApath = /etc/ssl/certs

smtpd_tls_cert_file = /etc/letsencrypt/live/inwtx.net/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/inwtx.net/privkey.pem

smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_received_header = yes
smtpd_tls_protocols = !SSLv2, !SSLv3
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3
smtpd_tls_ciphers = medium
smtpd_tls_exclude_ciphers = aNULL, MD5, DES, 3DES, ADH, RC4, PSD, SRP, eNULL
smtpd_tls_auth_only = no
smtpd_tls_loglevel = 1
smtpd_tls_session_cache_timeout = 3600s
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache

## sec3 TLS parameters for outgoing connections (smtp)
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_cert_file = /etc/letsencrypt/live/inwtx.net/fullchain.pem
smtp_tls_key_file = /etc/letsencrypt/live/inwtx.net/privkey.pem
smtp_use_tls = yes
smtp_tls_ciphers = medium
smtp_tls_security_level = may
smtp_tls_loglevel = 1
smtp_tls_session_cache_timeout = 3600s
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# Perfect Forward Secrecy (optional but greatly improves security)
smtpd_tls_dh512_param_file = /etc/postfix/dh_512.pem
smtpd_tls_dh1024_param_file = /etc/postfix/dh_2048.pem
smtpd_tls_eecdh_grade = strong
# TLS parameters END
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309291
Author: Stefan Claas
Date: Mon, 18 May 2020 14:40
36 lines
1954 bytes
inwtx wrote:
 
>   Maybe something is wrong in my main.cf file:

[...]

out of interest, your let's encrypt cert worked and only does not
renew, right? If so, maybe you can take also a look if you have in
/etc/cron.d/ this file too, like I have:

# /etc/cron.d/certbot: crontab entries for the certbot package
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportunity to validate certificates
# haven't been revoked, etc.  Renewal will only occur if expiration
# is within 30 days.
#
# Important Note!  This cronjob will NOT be executed if you are
# running systemd as your init system.  If you are running systemd,
# the cronjob.timer function takes precedence over this cronjob.  For
# more details, see the systemd.timer manpage, or use systemctl show
# certbot.timer.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system
&& perl -e 'sleep int(rand(43200))' && certbot -q renew

Regards
Stefan

-- 
Signal (Desktop) +4915172173279
https://keybase.io/stefan_claas
           
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309292
Author: inwtx
Date: Mon, 18 May 2020 14:48
32 lines
1908 bytes
> 
> inwtx wrote:
> 
> 
>>   Maybe something is wrong in my main.cf file:
> 
> ...
> 
> out of interest, your let's encrypt cert worked and only does not
> renew, right? If so, maybe you can take also a look if you have in
> /etc/cron.d/ this file too, like I have:
> 
> # /etc/cron.d/certbot: crontab entries for the certbot package
> #
> # Upstream recommends attempting renewal twice a day
> #
> # Eventually, this will be an opportunity to validate certificates
> # haven't been revoked, etc.  Renewal will only occur if expiration
> # is within 30 days.
> #
> # Important Note!  This cronjob will NOT be executed if you are
> # running systemd as your init system.  If you are running systemd,
> # the cronjob.timer function takes precedence over this cronjob.  For
> # more details, see the systemd.timer manpage, or use systemctl show
> # certbot.timer.
> SHELL=/bin/sh
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> 
> 0 */12 * * * root test -x /usr/bin/certbot -a /! -d /run/systemd/system
> && perl -e 'sleep int(rand(43200))' && certbot -q renew
> 
  Mine is empty.  My system is Debian GNU/Linux 8.10 (jessie)
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309295
Author: Stefan Claas
Date: Mon, 18 May 2020 14:52
55 lines
2441 bytes
inwtx wrote:
 
> > 
> > inwtx wrote:
> > 
> > 
> >>   Maybe something is wrong in my main.cf file:
> > 
> > ...
> > 
> > out of interest, your let's encrypt cert worked and only does not
> > renew, right? If so, maybe you can take also a look if you have in
> > /etc/cron.d/ this file too, like I have:
> > 
> > # /etc/cron.d/certbot: crontab entries for the certbot package
> > #
> > # Upstream recommends attempting renewal twice a day
> > #
> > # Eventually, this will be an opportunity to validate certificates
> > # haven't been revoked, etc.  Renewal will only occur if expiration
> > # is within 30 days.
> > #
> > # Important Note!  This cronjob will NOT be executed if you are
> > # running systemd as your init system.  If you are running systemd,
> > # the cronjob.timer function takes precedence over this cronjob.
> > For # more details, see the systemd.timer manpage, or use systemctl
> > show # certbot.timer.
> > SHELL=/bin/sh
> > PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> > 
> > 0 */12 * * * root test -x /usr/bin/certbot -a /! -d
> > /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot
> > -q renew
> > 
>   Mine is empty.  My system is Debian GNU/Linux 8.10 (jessie)
> 

And then you have also no self made cron job for this running, otherwise
it should auto-renew.

How about this then (only replace nginx with postfix)

sudo crontab -e

30 2 * * 1 certbot renew >> /var/log/le-renew.log

35 2 * * 1 systemctl reload nginx

Regards
Stefan

-- 
Signal (Desktop) +4915172173279
https://keybase.io/stefan_claas
           
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309294
Author: inwtx
Date: Mon, 18 May 2020 15:00
54 lines
2410 bytes
> 
> inwtx wrote:
> 
> 
>>>
>>> inwtx wrote:
>>>
>>>
>>>>   Maybe something is wrong in my main.cf file:
>>>
>>> ...
>>>
>>> out of interest, your let's encrypt cert worked and only does not
>>> renew, right? If so, maybe you can take also a look if you have in
>>> /etc/cron.d/ this file too, like I have:
>>>
>>> # /etc/cron.d/certbot: crontab entries for the certbot package
>>> #
>>> # Upstream recommends attempting renewal twice a day
>>> #
>>> # Eventually, this will be an opportunity to validate certificates
>>> # haven't been revoked, etc.  Renewal will only occur if expiration
>>> # is within 30 days.
>>> #
>>> # Important Note!  This cronjob will NOT be executed if you are
>>> # running systemd as your init system.  If you are running systemd,
>>> # the cronjob.timer function takes precedence over this cronjob.
>>> For # more details, see the systemd.timer manpage, or use systemctl
>>> show # certbot.timer.
>>> SHELL=/bin/sh
>>> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
>>>
>>> 0 */12 * * * root test -x /usr/bin/certbot -a /! -d
>>> /run/systemd/system && perl -e 'sleep int(rand(43200))' && certbot
>>> -q renew
>>>
>>   Mine is empty.  My system is Debian GNU/Linux 8.10 (jessie)
>>
> 
> And then you have also no self made cron job for this running, otherwise
> it should auto-renew.
> 
> How about this then (only replace nginx with postfix)
> 
> sudo crontab -e
> 
> 30 2 * * 1 certbot renew >> /var/log/le-renew.log
> 
> 35 2 * * 1 systemctl reload nginx
> 

  Yes, I already have that, but it doesn't seem to work either.

0 5 * * 1 /root/certbot-auto renew &> /dev/null
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309296
Author: SEC3
Date: Mon, 18 May 2020 15:07
54 lines
3056 bytes
On 2020-05-18 9:25 a.m., inwtx wrote:

> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Found the following certs:
>   Certificate Name: inwtx.net-0002
>     Serial Number: 48a3e3e75ffa247f2e6f5963b32de9bc7c5
>     Domains: inwtx.net www.inwtx.net
>     Expiry Date: 2020-06-01 23:36:37+00:00 (VALID: 14 days)
>     Certificate Path: /etc/letsencrypt/live/inwtx.net-0002/fullchain.pem
>     Private Key Path: /etc/letsencrypt/live/inwtx.net-0002/privkey.pem
>   Certificate Name: inwtx.net
>     Serial Number: 40011009958742ce36fef40e8763e380245
>     Domains: inwtx.net mail.inwtx.net www.inwtx.net
>     Expiry Date: 2020-04-22 19:03:24+00:00 (INVALID: EXPIRED)
>     Certificate Path: /etc/letsencrypt/live/inwtx.net/fullchain.pem
>     Private Key Path: /etc/letsencrypt/live/inwtx.net/privkey.pem
>   Certificate Name: mail.inwtx.net
>     Serial Number: 3d9d014d9ed50b17a5289af5e7dcf354cbf
>     Domains: mail.inwtx.net
>     Expiry Date: 2020-04-22 19:04:01+00:00 (INVALID: EXPIRED)
>     Certificate Path: /etc/letsencrypt/live/mail.inwtx.net/fullchain.pem
>     Private Key Path: /etc/letsencrypt/live/mail.inwtx.net/privkey.pem
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

You have 3 certificates here. And the names sometimes conflict. My
recommendation is to start fresh. Remove them all:

rm -rf /etc/letsencrypt/live/www.inwtx.net
rm /etc/letsencrypt/renewal/www.inwtx.net

[repeat for domains www.inwtx.net and mail.inwtx.net]


And then generate 2 new certs. One for your Web server (inwtx.net)
and one for Postfix (mail.inwtx.net)

For your Web server I'm not sure what the command is.

For Postfix I have used the below command with success. First
temporarily stop Nginx from running. Then

sudo certbot certonly --standalone -d caputo.sec3.net

In your case

./certbot-auto --standalone -d mail.inwtx.net


-- 
SEC3

Contact information at <https://sec3.net>
I am also on Keybase <https://keybase.io/sec3>
YAMN Help <https://sec3.net/yamnhelp/>
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309297
Author: SEC3
Date: Mon, 18 May 2020 15:25
21 lines
1436 bytes
On 2020-05-18 11:07 a.m., SEC3 wrote:

> In your case
> 
> ./certbot-auto --standalone -d mail.inwtx.net

That's incorrect. Sorry. After looking at my notes:

#For a Postfix cert
./certbot-auto certonly --standalone -d mail.inwtx.net

#For a Webserver (Nginx) cert
./certbot-auto --nginx -d inwtx.net -d www.inwtx.net


-- 
SEC3

Contact information at <https://sec3.net>
I am also on Keybase <https://keybase.io/sec3>
YAMN Help <https://sec3.net/yamnhelp/>
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309299
Author: inwtx
Date: Mon, 18 May 2020 15:31
19 lines
1256 bytes
> 
> On 2020-05-18 11:07 a.m., SEC3 wrote:
> 
> 
>> In your case
>>
>> ./certbot-auto --standalone -d mail.inwtx.net
> 
> That's incorrect. Sorry. After looking at my notes:
> 
> #For a Postfix cert
> ./certbot-auto certonly --standalone -d mail.inwtx.net
> 
> #For a Webserver (Nginx) cert
> ./certbot-auto --nginx -d inwtx.net -d www.inwtx.net
> 
  Ok, thanks.  I am backing up my server now.  I will
try this afterwards.  I was thinking about deleting
the keys also, but wasn't sure about recreating them.
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309301
Author: inwtx
Date: Mon, 18 May 2020 18:50
32 lines
1684 bytes
> 
> On 2020-05-18 11:07 a.m., SEC3 wrote:
> 
> 
>> In your case
>>
>> ./certbot-auto --standalone -d mail.inwtx.net
> 
> That's incorrect. Sorry. After looking at my notes:
> 
> #For a Postfix cert
> ./certbot-auto certonly --standalone -d mail.inwtx.net
> 
> #For a Webserver (Nginx) cert
> ./certbot-auto --nginx -d inwtx.net -d www.inwtx.net
> 
> 
  Finally got it, but not sure what I got.

Had to do

./certbot-auto --standalone -d inwtx.net
./certbot-auto --standalone -d www.inwtx.net
./certbot-auto --standalone -d mail.inwtx.net

Then certbot didn't put any keys in /etc/letsencrypt/live/inwtx.net
so had to copy a set out of /etc/letsencrypt/live/www.inwtx.net
to /etc/letsencrypt/live/inwtx.net before nginx would start again.

I don't know why I an creating a key mail.inwtx.net, postfix is
using /etc/letsencrypt/live/mail.inwtx.net.  It would seem that
that is what I have now anyway, all using the same key.
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309308
Author: inwtx
Date: Mon, 18 May 2020 18:58
2 lines
819 bytes
  Well, that didn't work.  I am getting a bad cert for domain error.
Must start over again.
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309303
Author: SEC3
Date: Mon, 18 May 2020 19:09
16 lines
1467 bytes
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)

Don't forget to relaod Postfix after changes.

-- 
SEC3

Contact information at <https://sec3.net>
I am also on Keybase <https://keybase.io/sec3>
YAMN Help <https://sec3.net/yamnhelp/>
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309304
Author: Stefan Claas
Date: Mon, 18 May 2020 19:11
19 lines
1391 bytes
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

-- 
Signal (Desktop) +4915172173279
https://keybase.io/stefan_claas
           
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309306
Author: SEC3
Date: Mon, 18 May 2020 19:22
26 lines
1808 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


-- 
SEC3

Contact information at <https://sec3.net>
I am also on Keybase <https://keybase.io/sec3>
YAMN Help <https://sec3.net/yamnhelp/>
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309307
Author: 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.
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309309
Author: ftech
Date: Mon, 18 May 2020 20:06
33 lines
2116 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

  This is proof that if you don't use it, you will loose it.  That is
the bane of education.  While k-6 has much meaning, 7-12 is a total BS
experience.  7-12 is nothing but a memorization game, as much as most
of college.  You memorize gobs and gobs of information and then spew it
out of your mind forever after the test.  Those who have a good ability
to short term retain information in their mind, do well in school.
Parent and teachers think that the student is really smart, when
actually he or she is just good at temporary memorizer a toilet full
of worthless crap.
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309310
Author: SEC3
Date: Mon, 18 May 2020 20:24
49 lines
2637 bytes
On 2020-05-18 3:52 p.m., inwtx wrote:
>   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
<SNIP>

I'm glad you sorted it out!

I'm surprised you didn't get any email notifications when your cert was
about to expire. When I created my very first LE certs I was asked for
an email address. I gave them a valid address like
postmaster@cloaked.pw. Letsencrypt.org would send me automated emails
whenver I approached an expiry date; much like a domain registrar would
do when your domain approaches expiry. Of course if your autorenewals
are working as they should you won't ever need these reminders.

Remember, you can always safely do

./certbot-auto certificates

to see when your renewal dates are approaching.

SEC3
Re: Does any remailer have an Open Mail Relay - only sending to other ?
#309311
Author: inwtx
Date: Mon, 18 May 2020 21:19
24 lines
1692 bytes
> 
> I'm glad you sorted it out!
> 
> I'm surprised you didn't get any email notifications when your cert was
> about to expire. When I created my very first LE certs I was asked for
> an email address. I gave them a valid address like
> postmaster@cloaked.pw. Letsencrypt.org would send me automated emails
> whenver I approached an expiry date; much like a domain registrar would
> do when your domain approaches expiry. Of course if your autorenewals
> are working as they should you won't ever need these reminders.
> 
> Remember, you can always safely do
> 
> ./certbot-auto certificates
> 
> to see when your renewal dates are approaching.

  Actually, I do get those notices, but I was depending
on certbot to auto update the certs.  I was running
./certbot-auto -d inwtx.net -d www.inwtx.net -d mail.inwtx.net
and then
./certbot-auto certificates
if the first one didn't work, but my certbot was so messed up
that it wouldn't work.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads