Page 1 of 1
Mail
Posted: Thu 20. Aug 2020, 13:47
by smied
Letters do not come to the server. Also I can not send letters. Everything was fine before. I don't know when it happened. The only thing I did with the server was to remove bind9 and install adguardhome dns in docker.
Restarting doesn't help. + There is a script for a long time to restart postfix every 5 minutes, otherwise the server stopped processing letters. (Many letters arrive ~ 2000 per day)
Maybe it's in the last update?
Re: Mail
Posted: Thu 20. Aug 2020, 14:19
by Florian
Hallo,
you must check the mail.log file under /var/log
Re: Mail
Posted: Thu 20. Aug 2020, 14:55
by smied
Could not open /etc/resolv.conf
Fix:
sudo systemctl enable systemd-resolved
Delete adguarddns
apt-get install bind9 dnsutils
Re: Mail
Posted: Thu 20. Aug 2020, 22:45
by smied
I would like to make both work.
Changed bind9 port to 55
/etc/named.conf.options
options {
listen-on port 55 { any; };
listen-on-v6 port 55 { any; };
adguarddns work fine
Emails are sent to external addresses, but do not come from external addresses
Internal emails work fine
Can you tell me how to make everything work?
Re: Mail [SOLVED]
Posted: Fri 21. Aug 2020, 01:01
by george
Hello Smied,
if you want to play with DNS, in the ways described above, there WILL be problems. Bind on port 55!!!
The DNS and Email services, are not something you want to experiment with. The proper approach, so things work as they should, is to configure everything to standards - services (especially email and dns) must operate according to policy guidelines set forth by the various internet authorities.
To get email working properly, your DNS setup should be working properly - or forget it.
If you continue to customise things without understanding how they work, this will lead to disaster.
My suggestions:
- stick to defaults as much as possible - minimal changes.
- test after making changes.
- document all customisations for future reference - especially good for going back and undoing things.
- search google, and read tutorials/guides/manuals etc - others may have already succeeded in your task, and show you how to.
- think originally (you have already proved this) and create something that no-one else has done!