Mail going to spam folder from Ubuntu 16.10 postfix - postfix-mta

I setup postfix on my server, that's subdomain. so main domain and subdomain IP is different. I am sending mail as support#maindomain.com from subdomain.maindomain.com.
Is there any way to avoid the emails going to spam.
Note: Email doesn't show emailed by.

Related

the site in digitalocean doesn't send letters to the email

I have a site in digitalocean hosting and I have some problems sending email from this site.
My site built at wordpress and I'm trying to submit an application to email. It worked on my localhost and my on my server https://cp.beget.com/ but as soon as I transferred it on https://www.digitalocean.com/ it immediately stopped working.
I have a small php script for send emails and it works correctly also I tried change admin email in main wp settings but I havу not received confirm letter on my email.
Server using ubuntu and i set everything up on it for email send and tested this through postfix and it worked correctly.
Maybe someone had this problem and know how it fix
It is better to use SMTP instead of relying php's sendmail which may get blocked on some hosting companies.
You can use the Post SMTP Mailer plugin to overcome this problem.
Just create a new email account at digitalocean and use its smtp server as the outgoing server address at the SMTP plugin. Usually it will be mail.yourdomain.com. Outgoing port can be 25 or 587.

Email not sending to email address with the same domain

Our website is not sending contact form 7 email to address that have the same domain in the email address.
I have faced this problem couple of times in the past.
In my case all of the times it was the server not sending actual mail to email using the same domain. Though the emaill is hosted on someplace else.
Please contact host support to find out if your server is actually sending mails when the recipient is the same domain.
There is also an option in my WHM to stop sending mails on same domain, you might need to turn that off

Email setup for digitalocean server

I am using digital ocean server with Ubuntu 16.04 and PHP7. I am having wordpress site. But mail functionality doesn't work. I have tried some tutorials but no success. Can someone suggest how to use it.
I don't know what you've tried but you can install postfix and make a relay to your mail provider and send your mails over your own mailbox. Then you have now worries about spam and all the mechanism you need to prevend your emails from the spam folder.
https://blog.bartlweb.net/2011/02/smtp-relay-host-mit-authentifizierung-in-postfix-konfigurieren/
Otherwise if you install postfix without an relay then you have to permit your network. But then it's possible that your emails are rated as spam.

How to prevent mail from Wordpress website from being flagged as spam on Exchange online server

I have a website; let's call it abc.com. It's e-mail is handled by Office365. I recently migrated it from a Sharepoint environment to a different webhost (GoDaddy). I have tried using the WP Mail SMTP plugin option to send e-mails, but it fails to send.
My settings are:
smtp: smtp.office365.com
port: 587
encryption: use TLS
authentication: use smtp
Sending fails with the error:
SMTP ERROR: Failed to connect to server: Connection refused (111)
Using the default wp mail with the settings below works to send to e-mail addresses outside the domain, but messages get flagged as spam on addresses within the domain.
header = 'From: '.get_option('blogname').' <wordpress#abc.com>'
I have e-mail routing set to Remote Mail Exchanger. I've tried adding the address wordpress#abc.com to Exchange's allowed list/whitelist, and I even tried adding the host IP to trusted IPs on the server - but it still doesn't work.
As far as I'm aware, GoDaddy do not let you send mail to external SMTP providers. If you're not able to choose another host (which I'd recommend if you can!), you'll need to use wp mail and send all mail to a local address at the same domain, hosted with GoDaddy.
If you wanted to, you could then set up an alias to send it elsewhere.
There's some more background on this over at wordpress.org, such as this thread and this thread.
EDIT
Just realised that the Postman SMTP plugin claims it can get around GoDaddy's filtering using HTTPS:
"Even hosts that block the standard SMTP ports, like GoDaddy or Bluehost, can't stop your email as Postman can deliver via HTTPS if it can't use SMTP."
So maybe give that plugin a go instead. :)
I ended up using the default wp mail.On the client o365 admin I added the email address to the whitelist. Made the mail rule priority over the default spam filter rule.I even went a step further to whitelist the IP but that's overkill I think.

Drupal ( NO SMTP Capability )

Ive setup drupal 7 in my work place where we dont have an internet access nor outgoing mail. We can mail ourselves internally only( Registered in the Exchage/Mail Domain).
I am using XAMPP to handle MySQL, Apache and Mercury but I cannot figure out how to send the confirmation mail of drupal, also the password resets to the valid mail of the user using my Internal Mail as the SMTP. Any help?
I can only also access the internet thru a proxy IP and Port that was given to me recently, so I was thinking of using free mail accounts.
Have you setup your smtp server in /xmpp/php/php.ini ?

Resources