Mail  [SOLVED]

Locked
smied
Posts: 13
Joined: Tue 26. Nov 2019, 10:05

Mail

Post 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?
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: Mail

Post by Florian »

Hallo,

you must check the mail.log file under /var/log
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
smied
Posts: 13
Joined: Tue 26. Nov 2019, 10:05

Re: Mail

Post by smied »

Could not open /etc/resolv.conf


Fix:
sudo systemctl enable systemd-resolved
Delete adguarddns
apt-get install bind9 dnsutils
smied
Posts: 13
Joined: Tue 26. Nov 2019, 10:05

Re: Mail

Post 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?
User avatar
george
Posts: 87
Joined: Fri 3. Jan 2020, 05:53
Location: AUSTRALIA

Re: Mail  [SOLVED]

Post by george »

Hello Smied,
if you want to play with DNS, in the ways described above, there WILL be problems. Bind on port 55!!! :shock:
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!
Locked