smtp_tls_mandatory_protocols = !SSLv2 !SSLv3 !TLSv1 !TLSv1.1
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3 !TLSv1 !TLSv1.1
smtp_tls_protocols = !SSLv2 !SSLv3 !TLSv1 !TLSv1.1
smtpd_tls_protocols = !SSLv2 !SSLv3 !TLSv1 !TLSv1.1
tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
tls_preempt_cipherlist = no
Reinstalling and configuring postfix [SOLVED]
Re: Reinstalling and configuring postfix
Mmm, the parts in red, from another server, might be as follows, am I right?
Re: Reinstalling and configuring postfix
Yes - these are the default values, they will work.lmarcos wrote: ↑Mon 24. Jan 2022, 21:19 Mmm, the parts in red, from another server, might be as follows, am I right?smtp_tls_mandatory_protocols = !SSLv2 !SSLv3 !TLSv1 !TLSv1.1
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3 !TLSv1 !TLSv1.1
smtp_tls_protocols = !SSLv2 !SSLv3 !TLSv1 !TLSv1.1
smtpd_tls_protocols = !SSLv2 !SSLv3 !TLSv1 !TLSv1.1
tls_medium_cipherlist = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
tls_preempt_cipherlist = no
Yes, as you already have postfix running again, not all commands are not needed. But they will not harm if they will be performed twice.If I understood you, I should start with the files section and go ahead from there, right?
Perform "apt-get install postfix-policyd-spf-python"Do I need to run the first command or apt-get install postfix-policyd-spf-python?
Use the /home/keyhelp/www/keyhelp/install/templates/postfix/main.cf.twig as a base. Every directive from the template should also be found in the "real" main.cf. Every additional directive from the /etc/postfix/main.cf, which cannot be found in template should be removed. Comment/uncomment lines as they were in the template.Changes to main.cf would be
Uncommenting #myorigin = /etc/mailname
Changing this? readme_directory = /usr/share/doc/postfix to no
Removing smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
Mit freundlichen Grüßen / Best regards
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Alexander Mahr
**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
Re: Reinstalling and configuring postfix
And don't forget to restart dovecot One hour lost before realizing.
Anyway, I have another problem now. And that is that the emails are stuck in the queue, with this message
Anyway, I have another problem now. And that is that the emails are stuck in the queue, with this message
delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1] Connection refused
Last edited by lmarcos on Tue 25. Jan 2022, 18:38, edited 2 times in total.
Re: Reinstalling and configuring postfix
Code: Select all
# netstat -luntep|grep 10024
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 118 14705 505/amavisd-new (ma
tcp6 0 0 ::1:10024 :::* LISTEN 118 14706 505/amavisd-new (ma
Code: Select all
systemctl status amavis
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Re: Reinstalling and configuring postfix
I restarted first amavis and then the server. But still
# netstat -luntep|grep 10024
returns nothing.
# netstat -luntep|grep 10024
returns nothing.
Re: Reinstalling and configuring postfix
What gives
If it's running, try
Code: Select all
systemctl status amavis
Code: Select all
netstat -luntep|grep amavisd
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Re: Reinstalling and configuring postfix
24unix wrote: ↑Tue 25. Jan 2022, 18:49 What gives
If it's running, tryCode: Select all
systemctl status amavis
Code: Select all
netstat -luntep|grep amavisd
amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis; generated)
Active: active (exited) since Tue 2022-01-25 18:35:19 CET; 17min ago
Docs: man:systemd-sysv-generator(8)
Process: 1161 ExecStart=/etc/init.d/amavis start (code=exited, status=0/SUCCESS)
Jan 25 18:35:15 systemd[1]: Starting LSB: Starts amavisd-new mailfilter...
Jan 25 18:35:15 amavis[1161]: Starting amavisd: changed ownership of '/var/run/amavis' fr
Jan 25 18:35:18 amavis[1314]: starting. /usr/sbin/amavisd-new at ama
Jan 25 18:35:19 amavis[2009]: (!)Net::Server: 2022/01/25-18:35:19 Can't connect to UNIX s
Jan 25 18:35:19 amavis[1161]: amavisd-new.
Jan 25 18:35:19 systemd[1]: Started LSB: Starts amavisd-new mailfilter.
Code: Select all
netstat -luntep|grep amavisd
The socket message was Can't connect to UNIX socket at file /var/lib/amavis and something else
Re: Reinstalling and configuring postfix
Try to find error messages from amavis.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Re: Reinstalling and configuring postfix
I can't find any in the mail logs. The only one is the one when running the systemctl status
starting. /usr/sbin/amavisd-new at hostname amavisd-new-2.11.0 (20160426), Unicode aware, LC_ALL="C", LANG="
Jan 25 19:17:27 hostname amavis[6072]: (!)Net::Server: 2022/01/25-19:17:27 Can't connect to UNIX socket at file /var/lib/amavis/amavisd.sock [Permission denied
Jan 25 19:17:27 hostname amavis[6035]:
Looks like the owner of the file is root.
starting. /usr/sbin/amavisd-new at hostname amavisd-new-2.11.0 (20160426), Unicode aware, LC_ALL="C", LANG="
Jan 25 19:17:27 hostname amavis[6072]: (!)Net::Server: 2022/01/25-19:17:27 Can't connect to UNIX socket at file /var/lib/amavis/amavisd.sock [Permission denied
Jan 25 19:17:27 hostname amavis[6035]:
Looks like the owner of the file is root.
Re: Reinstalling and configuring postfix
Code: Select all
# ll /var/lib/amavis/amavisd.sock
srwxr-x--- amavis amavis 0 B Thu Jan 13 15:26:54 2022 amavisd.sock
Code: Select all
chown -R amavis:amavis /var/lib/amavis
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Re: Reinstalling and configuring postfix [SOLVED]
That finally made it!!
Emails are coming in and out.
Thanks very much, 24unix and Alexander!
Emails are coming in and out.
Thanks very much, 24unix and Alexander!