I created my own mailserver using postfix.
The mailserver is able to send mail from my domain.
Now I want to send mail for my other domain user in "FROM"
doing so, my mail ends up in spam
I have set my spf and dkim record for my mailserver domain.
Please guide me how to do it correctly...?
I've a small SaaS where each client gets a subdomain (stackexchange.my-saas.com)
I've a mailgun account where my main domain is setup and I've created a wildcard SPF record in my DNS and if I add additional domains to my mailgun account with a subdomain, they all verifies correctly.
My question is, do I need to add every new clients subdomain as a new domain in mailgun when I have the wildcard SPF record set or can i "legally" just create a from-address for each new client so the header of the emails will be from: Stack Exchange On My SaaS<noreply#stackexchange.my-saas.com>
Sending:
For sending, there is no need. As you point out, you can have the SPF records set so your email can be sent From: whatever subdomain. Note however that Mailgun will add a Sender: header with your Mailgun registered address if your specified From: address has a different domain.
From: Stack Exchange On My SaaS <noreply#stackexchange.my-saas.com>
Sender: noreply=stackexchange.my-saas.com#my-saas.com
Receiving:
For receiving emails, it's a different story. This is a Mailgun limitation and has been answered in this other question.
Basically, Mailgun uses the same MX servers for everybody, so when they get an email they need to look up to which customer the email belongs to, much like any regular multi-host mail server.
(UPDATE) They allow to register wildcard subdomains, combined with a wildcard MX, it might just work for every subdomain. Note however that because of how DNS works, there is no standard way to define BOTH a wildcard MX and a wildcard CNAME in the same domain. CloudFlare is currently supporting this but it will fail for most other DNS providers.
Alternatively, for receiving emails in your SaaS, you have to register each of your subdomains with Mailgun independently (possible through their API). Note that this also implies verifying the domains adding TXT records for each one on your DNS.
Let's start with understanding how email works. Receiver of the email checks for the dns records of sending domain for example your primary domain is yourdomain.com and email is sent from yourdomain.com will work since you have record created under this already when your email is sent from saas.yourdomain.com then DNS record for saas.yourdomain.com should exist or else it will fail to deliver to inbox. Mailgun asks to verify to make sure it is delivered to inbox and receiver makes sure by checking DNS that it is coming from authentic person by looking up at the DNS.
So the answer is as long as your sending domain is same then you will not create it but if your sending domain is different then you will have to create
Hope this answers your question.
I'm using PHPMailer on PHP on Apache2.0 on Unix with sendmail to create a webservice that can send emails to some customers.
This server doesn't have a domain and the email will have "From: xxx#domain.com" header as they will be sent in behalf of the mother website (let's say domain.com).
Now, everything works, but Gmail and Hotmail detect my email as spam.
It seems legit as there is currently no correlation between the sender server and the mail sender address.
What do I have to do to tell google that the email are authorized?
How do I have to set an SPF record for domain.com ?
Thank you
I'm already using mailgun to send some data to an email (my gmail account). Now I want to receive emails using #mydomain.com
I saw this other question with 2 answers that seem useless.
I have already set a Route so I receive any msg send to *#mydomain.com* and to forward them to my personal email at gmail:
http://i.imgur.com/VJBz6ij.png
So I tried sending an email to my personal gmail but I'm not receiving any emails.
I have my website on a VPS in digital ocean in case that is important.
So I just needed to add the MX records to DigitalOcean provided by mailgun here:
http://i.imgur.com/Y4bmJYh.png
(link for more info: https://documentation.mailgun.com/user_manual.html#verifying-your-domain)
Now I send data from another email to example#mydomain.com and then I recieve it.
When I try sending data to example#mydomain.com from the same domain that is set in the forward rule it does not work so try with a third party email it you have any problems.
I am using 1and1 server. It is hosted in plesk panel. My mails from webmail are getting receiving in spam and when I am sending a message from gmail it is not receiving to webmail. Where is the problem?
Is your mail IP is blacklisted in spam databases ? Please check mail IP status at http://mxtoolbox.com/blacklists.aspx
And enable SPF and domain keys for your domain so that your mail will not receive in spam folder