{"id":341,"date":"2019-12-02T15:15:14","date_gmt":"2019-12-02T14:15:14","guid":{"rendered":"https:\/\/www.combell.com\/en\/help\/?post_type=ht_kb&#038;p=341"},"modified":"2024-06-13T10:47:00","modified_gmt":"2024-06-13T08:47:00","slug":"how-to-make-sure-my-website-sends-outgoing-mail-in-an-authenticated-fashion","status":"publish","type":"ht_kb","link":"https:\/\/www.combell.com\/en\/help\/kb\/how-to-make-sure-my-website-sends-outgoing-mail-in-an-authenticated-fashion\/","title":{"rendered":"How to make sure my website sends outgoing mail in an authenticated fashion?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"theproblem\">The problem<\/h2>\n\n\n\n<p>If your website is hosted with Combell on a shared hosting, and your website occasionally needs to send out mail because it features a contact form for example, chances are these mails are sent in an unauthenticated fashion. This is the case if your site sends the messages using simply the built-in php mail() function. This function will send the message through the shared server relay.webhosting.be.<\/p>\n\n\n\n<p>This however degrades the reputation of the message in the eye of the receiving mail server. Because of this, the message might end up in the spam folder of the recipient.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"thesolution\">The solution<\/h2>\n\n\n\n<p>Follow the next steps:<\/p>\n\n\n\n<ul>\n<li>If your cms (WordPress for example) does not let you configure an smtp server and detailed settings then do install a plugin that lets you that<\/li>\n\n\n\n<li>Create a Basic Mail mailbox through your control panel (it does not matter if mail traffic for your domain is managed by our platform or not). You can now send mail using:\n<ul>\n<li>The server: smtp-auth.mailprotect.be<\/li>\n\n\n\n<li>The username: the email address you created<\/li>\n\n\n\n<li>The password: the password of the email address you just created<\/li>\n\n\n\n<li>Smtp port: 465 with SSL or 587 with TLS<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">Do your MX records refer to other mail services? Then the mailbox you create here must also be created at the other mail service.<\/p>\n\n\n\n<ul>\n<li>Configure the above credentials in your website\u2019s plugin. Note that the port you use to connect to the server is 465 (or 587). Do not use the standard port 25, as all outgoing traffic for port 25 will be relayed to relay.webhosting.be, which is exactly what we are trying to avoid.<\/li>\n\n\n\n<li>Make sure the senders\u2019 email address sender differs from the message recipients\u2019 address. Note that this is unrelated to the email address you just created to have an account on smtp-auth.mailprotect.be.<\/li>\n\n\n\n<li>Make sure the server smtp-auth.mailprotect.be is included in the spf record of the senders\u2019 domain. For example, if your websites sends mail from info@ninefortwo.be, make sure the spf record of ninefortwo.be includes the following statement:\n<ul>\n<li>include:_spf.relay.mailprotect.be <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>A full spf record could then be:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- v=spf1 a mx include:_spf.relay.mailprotect.be ~all\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The problem If your website is hosted with Combell on a shared hosting, and your website occasionally needs to send out mail because it features a contact form for example, chances are these mails are sent in an unauthenticated fashion. This is the case if your site sends the messages&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[20,4],"ht-kb-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb\/341"}],"collection":[{"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":3,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb\/341\/revisions"}],"predecessor-version":[{"id":4346,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb\/341\/revisions\/4346"}],"wp:attachment":[{"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb-category?post=341"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.combell.com\/en\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}