Hi dear helpers, I still testing this great software but I faced some problems and I have some logic questions. I'm a programmer and so I don't have much networking experience.
The main problem that I have ist that the emails send by the Virtualmin(postfix, via smtp and also usermin) are marked as spam inside gmail and so on. I have searched a lot and found out that my problem has something to do with DKIM,SPF and reverse DNS.
I have installed DKIM and inside the DNS Settings form Virtualmin the DKIM(I tested the raw string with some online checkers and they say that it is valid) and SPF is set but still fails or better it seems that it never arrives to Google(if I check inside the mail code there is no trace from the DKIM and SPF that is see in the Virtualmin settings). So I suppose that the DNS settings from Virtualmin are not used at all. So my question is how is the right setup? I think my Virtualmin is not acting as Nameserver, so the entries are not used. Ist that right that my Virtualmin must act as Nameserver?
My Setup is: A-domain.com is my main domain. Virtualmin has the domain server.A-domain.com and over server.A-domain.com:10000 i can login in Virtualmin For the domain and subdomain i have set one A record inside my domain registrar settings(schlundtech.com) poiting to the ip adress from my server. The dedicated server is hosted by a properly hoster (hetzner.com). I Think the error is here and i must do some entries for the nameserver im right? or im completely wrong?
I have also a question about the right smtp settings inside email clients. I have manged to send mails(via thunderbird) but in the tutorials or forum posts that i have found the people says that the right server settings are mail.x-domain.com but with this setting it never worked for me. The only way that worked for me was using server.A-domain.com also when im sending from domain B-domain.com(Bfirstname.lastname@example.org) for example. Here also i think its about the dns stuff, because there i see a mx entry email.x-domain.com but this is not working.
Setup informations: Server is running ubuntu 16.04 i have the newest gpl Virtualmin software installed, installed via the latest install.sh script the mail log you can see at the end of the thread
Im greatfull for every hint that i can get and sorry for my horrible english.
P.s i don't know how to attach a file, so i add my mail log here and i uploaded it to uploadfile.io(https://ufile.io/qrwg5) so if you want you can open it with a editor for better formatting (in the log there are some suspicios connects(199-127-99-217.static.avestadns.com[18.104.22.168], 22.214.171.124 and refrigerator.census.shodan.io[126.96.36.199]) somebody knows what that are? i have replaced my server IP and my domains)
p.p.s @ mods if the text is to long please remove the log data
Edit: removed the log