Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Guide - How to setup DKIM and SPF with Exim

2


Threaded Mode | Print  

Guide - How to setup DKIM and SPF with Exim
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi,
thank you for your reply.

1. No, you should not replace the code with your domain, just keep as it is.

2. DKIM selector now must be x, if you change this maybe DKIM stop to work.

Sorry but I don't know what is wrong with your DKIM, maybe for help you better I need you do the https://www.mail-tester.com/

Once you done IT please see the error under and the system will told to you what is the error of DIKIM.

You can solve alone or if you need more help I need to have the link of your test in the bottom right you will see a link for share the results.

Be aware, if you want share here in the forum your email address will be public in the test so maybe you want send privately to me via PM on the forum or on ticket. https://supporto.peopleinside.it

From what you told to me I AM not able to understand what is wrong on your DKIM.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Guide - How to setup DKIM and SPF with Exim
awan89
Group: Member
Post Group: Newbie
Posts: 11
Status:
Hi PeopleInside,

The DKIM is Oke now, the problem before is cause "space" bettween the code.

Stiill have problem now like this :

Reverse DNS lookup or reverse DNS resolution (rDNS) is the determination of a domain name that is associated with a given IP address.
Some companies such as AOL will reject any message sent from a server without rDNS, so you must ensure that you have one.
You cannot associate more than one domain name with a single IP address.

Your IP address 188.166.211.8 is associated with the domain baliavata.com.
Nevertheless your message appears to be sent from baliavata.baliavata.com.

You may want to change the host name of your server to baliavata.com.

Here are the tested values for this check:

    IP: 188.166.211.8
    HELO: baliavata.baliavata.com
    rDNS: baliavata.com



Can I change my hostname same with rDNS?


BEFORE EDIT :

etc/sysconfig/network

NETWORKING=yes
HOSTNAME=domain.domain.com
GATEAWAY=188.126.228.1


etc/hosts

127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4
::1        localhost localhost.localdomain localhost6 localhost6.localdomain6
188.163.251.8 domain.domain.com domain

etc/hostname

domain

---------------------------

can i change the host name with this??
---------------------------

AFTER EDIT
etc/sysconfig/network

NETWORKING=yes
HOSTNAME=domain.com
GATEAWAY=188.126.228.1


etc/hosts

127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4
::1        localhost localhost.localdomain localhost6 localhost6.localdomain6
188.163.251.8 domain.com

etc/hostname

domain.com



Can I do like that? so hostname & rDNS will be the same??
Hope you can suggest me again PeopleInside. :D   :-(
IP: --   

Guide - How to setup DKIM and SPF with Exim
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi, I think you have to correct the hostname.

BEFORE EDIT :



etc/sysconfig/network



NETWORKING=yes

HOSTNAME=domain.domain.com

GATEAWAY=188.126.228.1


I think your hostname should be domain.com not domain.domain.com
as you wrote.

I think you can change this.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Guide - How to setup DKIM and SPF with Exim
awan89
Group: Member
Post Group: Newbie
Posts: 11
Status:
Hi PeopleInside,

Good news, Finaly hit the inbox at gmail.  :D  

Anyway the other setting in etc/hosts
& etc/hostname I set like this.

1. etc/hosts



127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4

::1        localhost localhost.localdomain localhost6 localhost6.localdomain6

188.166.211.8 baliavata.baliavata.com baliavata



2. etc/hostname



baliavata.com


It's correct ?

Many Thanks
Awan
IP: --   

Guide - How to setup DKIM and SPF with Exim
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
I think  baliavata.baliavata.com baliavata
should be
baliavata.com only but not sure why you set this.

You have to be carefull to edit this kind of files.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Guide - How to setup DKIM and SPF with Exim
awan89
Group: Member
Post Group: Newbie
Posts: 11
Status:
As you know, i'm new i this VPS setting & webuzo.
lot of the tutorial on the net like that.

exmple this one : http://bitflop.com/tutorials/how-to-set-your-hostname-and-domain-name-correctly.html

They told like, i try to follow

Glad to learn from you,..thank you PeopleInside

IP: --   

Guide - How to setup DKIM and SPF with Exim
seandex
Group: Member
Post Group: Working Newbie
Posts: 71
Status:
Quote From : peopleinside December 22, 2015, 5:31 pm
Hi awan89,
yes your emails goes into SPAM for SPF and DKIM also please use this link to test:
https://www.mail-tester.com/

IT'S easy and safe, just send an email from your domain email address to the temp address generated in this page than press the button in the webpage and check issues.

From your domain record I can see you are using DigitalOcean so your DNS record will be not readed in Webuzo.

You have to work in DNS on the DigitalOcean.
I tried to to the test at this page:

https://www.mail-tester.com/spf-dkim-check

by putting your domain baliavata.com and seems to be good.
Let me check now here:
http://www.kitterman.com/spf/validate.html

Your SPF pass is OK so please do the test here:
https://www.mail-tester.com/

I cannot do this for you and let me know your point if is 5/6 or 10/10
you will see all errors and what to fix.

Emails go also into Gmail antispam if you have only redirection but not account email created in Webuzo, maybe.

Let me know :)



Hello~

I used to have 10/10 but today I checked it and now it is 2/10

strange thing i see now is
1. Bounce Address is "sean@mydomain"  not "sean@mydomain.ext"
2. I have working SPF records and has passed on SPFtest site but I still get
You do not have a SPF record, please add the following one to your domain "mydomain"  <=== once again, it is "mydomain.ext" NOT "mydomain"

I think bounce back address setting is wrong somewhere wihtin Exim in centos webuzo? I dont know!
Damn this bug!! how can I fix this issue? :(



IP: --   

Guide - How to setup DKIM and SPF with Exim
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Quote
Hello~

I used to have 10/10 but today I checked it and now it is 2/10

strange thing i see now is
1. Bounce Address is "sean@mydomain"  not "sean@mydomain.ext"
2. I have working SPF records and has passed on SPFtest site but I still get
You do not have a SPF record, please add the following one to your domain "mydomain"  <=== once again, it is "mydomain.ext" NOT "mydomain"

I think bounce back address setting is wrong somewhere wihtin Exim in centos webuzo? I dont know!
Damn this bug!! how can I fix this issue? :(


Hi,
at the moment I will be busy maybe for three hours... after this time you can try to start a chat from the link on my signature so... we can chat about this issue who is difficoult to resolve in the forum conversation.

Bounce address is not set by Exim I think, I need understand more about your issue also ask some data who may not want to be shared in a public conversation.

Surely something has been changed in your server since you done the maximum score.
Also mail tester is now allowing just three free test every 24 hours so please remember this.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Guide - How to setup DKIM and SPF with Exim
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Usually if you are using Webuzo DNS when you add a domain (a new domain into Webuzo) there are the relative check boxed for set DKIM and SPF... this generate all necessary records.

I can suggest to remove the domain where you have the issue than put back again by checking the relative boxes but I have also to understand if you are using Webuzo DNS or external DNS... so again maybe is better chatting but after three hours because right now I AM busy :)


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Guide - How to setup DKIM and SPF with Exim
seandex
Group: Member
Post Group: Working Newbie
Posts: 71
Status:
Quote From : peopleinside April 18, 2017, 9:57 am
Usually if you are using Webuzo DNS when you add a domain (a new domain into Webuzo) there are the relative check boxed for set DKIM and SPF... this generate all necessary records.

I can suggest to remove the domain where you have the issue than put back again by checking the relative boxes but I have also to understand if you are using Webuzo DNS or external DNS... so again maybe is better chatting but after three hours because right now I AM busy :)


Hey! always thank you for your nice support.
I got it fixed and now 7/10 but it says

"You may want to publish a DNS record (A type) for the hostname xxxxxxxx or use a different hostname in your mail software."  -3 points.

What can I do for this error?
IP: --   

Guide - How to setup DKIM and SPF with Exim
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
I discovered today that removing a domain will erase all email account associated. This was not working on this way in the past but since Webuzo has introduced the edit pach button near domain name they seems have insert that so I AM asking... if an user had already added a domain and have set many different email address how can them add SPF and DKIM without removing the domain and loose all emails?

This questions will be leaved to the Webuzo Team so hope my suggestion to remove the domain has not caused issue to you... I was unaware about this new edit from the Webuzo Team.

Quote
Hey! always thank you for your nice support.
I got it fixed and now 7/10 but it says

"You may want to publish a DNS record (A type) for the hostname xxxxxxxx or use a different hostname in your mail software."  -3 points.

What can I do for this error?


Seems your DNS may be not correct.
if you are using mail.domain.ext as email hostname in the email software client you need have an MX record or maybe you are using wrong settings in your email client... difficoult to say from here :) as I AM not in your PC and in your DNS and domain.

I AM happy to read that you are solving, step by step :)


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Guide - How to setup DKIM and SPF with Exim
seandex
Group: Member
Post Group: Working Newbie
Posts: 71
Status:
Quote From : peopleinside April 19, 2017, 1:17 pm
I discovered today that removing a domain will erase all email account associated. This was not working on this way in the past but since Webuzo has introduced the edit pach button near domain name they seems have insert that so I AM asking... if an user had already added a domain and have set many different email address how can them add SPF and DKIM without removing the domain and loose all emails?

This questions will be leaved to the Webuzo Team so hope my suggestion to remove the domain has not caused issue to you... I was unaware about this new edit from the Webuzo Team.

Quote
Hey! always thank you for your nice support.
I got it fixed and now 7/10 but it says

"You may want to publish a DNS record (A type) for the hostname xxxxxxxx or use a different hostname in your mail software."  -3 points.

What can I do for this error?


Seems your DNS may be not correct.
if you are using mail.domain.ext as email hostname in the email software client you need have an MX record or maybe you are using wrong settings in your email client... difficoult to say from here :) as I AM not in your PC and in your DNS and domain.

I AM happy to read that you are solving, step by step :)


Oh I was using RoundCube, got it 2/10 (so I'm assuming the wrong domain came from the setting of RoundCube which I didn't touch at all, now I avoid use RoundCube)

Squirrel / WebMail Lite - got 7/10 but that DNS thing still can't be resolved. I need help..
so this isn't email software from my PC (i use webmail softaculous script from webuzo)
IP: --   

Guide - How to setup DKIM and SPF with Exim
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
seandex, help you on this is not so simple that I made a post here and you resolve.

The first test you need is download Thunderbird, configure your email than try again the test.
What settings are you using for configure thunderbird? What hostname are you using?

After I need see your DNS for understand how you have configured the records.
You can do a MX test of your record here:
https://mxtoolbox.com/

7 on 10 seems to be a good score. To have 10/10 you may need other work but is hard to help you in a forum :)


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Guide - How to setup DKIM and SPF with Exim
seandex
Group: Member
Post Group: Working Newbie
Posts: 71
Status:
Quote From : peopleinside April 19, 2017, 1:30 pm
seandex, help you on this is not so simple that I made a post here and you resolve.

The first test you need is download Thunderbird, configure your email than try again the test.
What settings are you using for configure thunderbird? What hostname are you using?

After I need see your DNS for understand how you have configured the records.
You can do a MX test of your record here:
https://mxtoolbox.com/

7 on 10 seems to be a good score. To have 10/10 you may need other work but is hard to help you in a forum :)


Thank you for the reply,
I downloaded and configured Thunderbird. but it is same result. I'm using IMAP. no SSL, port 143 and 25

"You may want to publish a DNS record (A type) for the hostname mydomain or use a different hostname in your mail software."

strange thing is that's not like mydomain.ext just mydomain.

Thank you for the mxtoolbox, i did dns:mydomain.ext has all green light, DNS was found, no errors. clean.

P.S.
I had 10/10 with this original post, I was very happy about it but now just 7/10 if that DNS thing won't affect my sending emails then I will just suck it up :(
IP: --   

Guide - How to setup DKIM and SPF with Exim
seandex
Group: Member
Post Group: Working Newbie
Posts: 71
Status:
Hey! I got it working! 10/10

:D

1. I changed /etc/hostname to mydomain.ext

2. I see there are 2 domains in /etc/hosts (mydomain.ext & mydomain), I just removed one (without .ext) and now i'm 10/10 :D

Thank you peopleinside all of your tips helped resolving this disaster!
IP: --   

« Previous    Next »

Threaded Mode | Print  

2


Jump To :


Users viewing this topic
18 guests, 0 users.


All times are GMT. The time now is April 20, 2024, 12:13 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.039