Why does my Oneclick Wordpress app send spam mails? (got ssl from letsencrypt)

Hello community! I’m pretty much new to Linux as a developer. For some reason, on Gmail I get all my test mails in my spam folder. Any Idea why? or if it has something to do with certificates, please attach a tutorial? :)

Thanks so much!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


When it comes to running a mail server, there’s three primary things you need to work with, other than the mail server itself – SPF, DKIM, and DMARC.

Since SPF and DKIM are more widely accepted than they used to be, many providers, GMail included, now verify whether or not the sender has these items setup by validating DNS entries against the mail server. DMARC isn’t as widely enforced, though I’d say it won’t be long before providers begin asking for such as well.

The link below is a pretty in-depth guide on how to set each of these things up. At the very least, you really need to setup both SPF and DKIM, though I’d advise all three.

As an aside, this is one reason why many prefer not to run their own mail server and instead offload much of the work to third-party solutions such as Mailgun, SendGrid, and similar services. Unless you plan on spending a good deal of time managing your mail server (as in checking logs, preventing any potential abuse, locking down the server to prevent break-in and break-in attempts, etc), it’s often best to simply offload this portion of your workload to a service that just works with very little configuration.

Beyond just configuration, you also have to worry about Spam Blacklists which can cause your mail to be rejected if a provider is using a specific RBL with your IP in it, even with all three of the above properly configured.

By no means am I telling you not to run your own, rather, I’m saying it’s a lot of work at times and if you would rather focus on application development and/or your site without having to worry too much about anything more than a plugin or two, I’d offload. WordPress has plugins for both of those services.

try sending from your own domain or a domain other then gmail that doesnt have spf / dkim records. Not sure about postfix… im an exim kinda guy ;0

I actually did never make any “admin” account on postfix, I just use it as it is, should I change anything there?

Alright thank you!, I get it, is there a solution I should attempt?

so it appear the mail is failing on gmails SPF records. SPF allows you to designate what IP address a domain can send from. In your case, a gmail account is sending from a non designated address which would mark it as SPAM, although i find that strange considering you said you were sending from…

I have no idea, I just pointed everything to the right placed, how can I tell?

Ok, so there is the error: domain of transitioning does not designate as permitted sender

does your domain have SPF/ DKIM or DMARC set up?

in the header it says it was “” is that just me being paranoid?

The from address is