about a week ago i started to learn how to use Webmin, and Virtualmin. I have an own dedicated server at Server4you, but when i'm trying to send email via PHP mail(), or Roundcube, the messages are displaying in the junk folder (gmail, Hotmail, godaddy's mail).
I started to analyze what's wrong with it, updated my DNS Records at cloudflare (added dmarc, and spf Records as well), turned of SSL mode, repaired my headers in PHP mailer, checked for blacklist (all fine), but nothing changed.
Any tips, somebody had same issues?
Thank you for your help in advance! :)
Mark
Okey, i did it. :)
Under Virtualmin section i enabled Email messages -> DomainKeys Identified Mail, then added domainkey to DNS's TXT record.
Related
Setup:
Ubuntu 16.x, Postfix, PHPMailer
SocketLabs (mail relay service) - to send out server emails
Union Solution Exchange Server - to send and receive formal email from outlook
Im trying to send out emails from my ubuntu linux server that contain simple form data (name, message, phone etc).
I have been trying in vain to send emails from my PHP to emails, they send, but they get blocked as spam/junk.
I've recently switched mail services (from zoho to a solution union exchange server) and I cannot get past barracuda (even modifying whitelists / spam settings etc) with my own mail, but I can see them as junk in my hotmail. (cannot not send from mailserver#potlickers.com to support#potlickers.com). They get immediately canned and not delivered.
Solutions Union said I was spoofing the emails and I cannot whitelist my own domain I'm using and sending from? Ok. They suggested buying another domain. I now own potlickers.net.
They also mentioned I should take that domain and use it to send my emails via open relay (again socketlabs).
So, if my webserver is setup on a fqdm such as potlickers.com, and i send the mail from that server, how do i setup the correct architecture to send mails from potlickers.net to the open relayserver so my emails are free and clear and not spoofed?
Can i configure postfix to send mail from potlickers.net even though its hosting on blah.potlickers.com?
I understand to also add dkim and PTR.
Help stackoverflow1 - your my only hope. TIA much much mucho thanks.
So I think I got it.
Reconfigured postfix as a satellite. Pointed to smtp of relay mail server. Removed all SMTP settings in PHPmailer that point to server, and credentials.
Fire away - works like a charm.
Satellite server has the new domain potlickers.net versus the webserver domain potlickers.com
Seems to work ok for now. Will update moving forward.
We have a web application which is using the php mail() function to send emails. Emails are received perfectly by all popular mail clients like gmail, yahoo, etc. but only outlook 365 not receiving any emails not even in Junk folder.
Amazon EC2, Ubuntu 14.04, Plesk 12, LAMP (Apache, MySQL and PHP)
We have checked email logs also but its not showing any errors. It looks like its sending email but its not received by Outlook 365 or they are blocking or something.
We have tried changing "\r\n" to "\n" but its also not working.
We have tried by changing SPF records but its also not working. http://365.webbrewers.com/blog/Lists/Posts/Post.aspx?ID=44
We have been trying to find out a solution everywhere including Microsoft Community, Plesk (Odin) Community, PHP Community, Ubuntu Community, Amazon EC2 Community and didn't find the work around.
You could use https://www.mail-tester.com/ to "Test the Spammyness of your Emails"
BTW I get a 10/10 but my emails still go to the "Junk Mail" folder in Office365 account, but at least are delivered.
It's probably related to the Office 365 spam filter. Check out these shortcomings of the PHP mail function - Why shouldn't I use PHP's mail() function?
I'm using Swiftmailer for my website's contact form to send the form data via email when it's submitted. I switched to a different hosting company and seemingly everything should be the same, but it no longer works. I'm not getting any error messages. I get status 200 OK when clicking "Submit." I deleted and re-created the email account, but that didn't help. Changed the SMTP authentication information to the new hosting comopany's server, but still no email is sent. Any ideas? Oh, and I switched from Bluehost to A2 hosting. Thanks in advance.
Andrew
1). Check the spam folder
2). Ensure sendmail is installed
3). If reaching to SPAM, allow your server IP in DNS SPF record
After 1.5 hours on the phone and at least an hour of online chatting with the customer service people at godaddy, I didn't move anywhere.
a simple mail() function in php isn't sending emails to #hotmail.com, #mail.com, and my university email. I am sure there is more though.
#yahoo.com and #gmail.com work no problem regardless if I change the header or not.
On the phone they told me it's the email service blocking it due to spoofing, sure but than I used a simple mail(example#hotmail.com, SUBJECT, BODY) and it still didn't go through.
In the chat support, we updated the SPF (TXT) lines under DNS Zone to be directed to my server or something like that and it was supposed to fix it after 24 hours, but still nothing.
He also checked the error logs and said everything looked like it went through and there were no bounces at all.
Obviously contacting each email service and telling them to unblock my godaddy server is slightly weird in my logic. I have a bad feeling that it's godaddy that is messing up
Please help! My whole project is based on emails being sent to for registration conformation, password recoveries, news and more..
EDIT:
The TXT records found for your domain are:
v=spf1 a mx ptr a:dedrelay.secureserver.net include:secureserver.net ~all
Checking to see if there is a valid SPF record.
Found v=spf1 record for somesite.com:
v=spf1 a mx ptr a:dedrelay.secureserver.net include:secureserver.net ~all
evaluating...
Results - PermError SPF Permanent Error: Too many DNS lookups
This does not have to be GoDaddy's fault
Hotmail and others can be VERY strict about emails (they just delete it if it's a tiny bit suspicious/bot/spam-looking). Sometimes especially when using php mail()
And php's mail() function really can't be used for anything half-serious. + it's a horrorshow messing with those headers
You should consider using a SMTP mailer like PHPmailer or SwiftMailer or alternatives. Let their well-developed script handle all the header stuff etc. Much higher chance of mails getting through
Or you could use an external mailer API (SendGrid, PostMark, many others)
On a website with about 1300 Users I've set up that emails for confirming your email address, etc are being sent with phpmailer via a gmail account (google smtp), which worked very well for the first 2 month.
Now, recently a bigger and bigger amount of users complain they do not receive any emails anymore, not even in the Spam folder.
While I have no problem receiving any when I try it myself, I found that it especially concerns certain providers (or let's say a wide variety of providers, just not gmail itself).
Then I found this article: php mail() Goes to spam but when sent via SMTP Server it works fine?
I do not really understand what Gryphius (the accepted answer) talks about. I've read in the Google Guidelines for avoiding SPAM (don't remember how they are called exactly), about HELO and A-records, but don't know what they are. Could anybody explain me what it is and how to do that?
What else can be done to send emails from shared hosting and ensure they most all reach their recipients?
Thank you very much already in advance for your help!
UPDATE: This information I found in the header, what could you tell from this?
X-Acl-Warn: X-DNSBL-JUNKEMAILFILTER
X-Spam-Score: -0.3