I have domain with 1&1 and my host is on AWS. I have configured my domain in Route5 and I set MX records. as per below:
10 mydomain.co.uk
10 mx01.1and1.co.uk
10 mx00.1and1.co.uk
The email transfer is working without any problem. The email are stored in 1&1 mail bucket.
I have an application that runs on Cakephp and here is my email Transport configuration.
'EmailTransport' => [
'default' => [
'className' => 'Cake\Mailer\Transport\MailTransport',
/*
* The following keys are used in SMTP transports:
*/
'host' => 'email-smtp.eu-west-1.amazonaws.com',
'port' => 465, // or 587
'timeout' => 30,
'username' => 'info@mydomain.co.uk',
'password' => '*****',
'client' => null,
'tls' => true,
'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
],
Now when I send emails the emails are sent to client account but the emails goes in spam. and I get red rock - email not encrypt.
Here is the example of the mail transfer from client account:
from: Company Name Ltd <info@mydomain.co.uk>
to: Alex Manor <alex.manor@gmail.com>
date: Jan 21, 2019, 11:13 PM
subject: You have requested to reset password
security: ec2-11-11-11-11.eu-west-1.compute.amazonaws.com did not encrypt this message Learn more
Thank to @Greg Schmidt.
'default' => [
'className' => 'Cake\Mailer\Transport\SmtpTransport', //<= The class name has to use SMTP
'host' => 'smtp.ionos.co.uk',
'port' => 587,
'timeout' => 30,
'username' => 'info@mydomain.co.uk',
'password' => '*****',
'client' => null,
'tls' => true,
'url' => env('EMAIL_TRANSPORT_DEFAULT_URL', null),
],
After too much reading now I know you wouldn't need to change you host provider for email transport. As long as the email email transport methos is set correctly. you shouldn't get red lock.
Here is a good guide to configure the email DNS transfer
Note: point #6 is good for who wants to use AWS host for email transport.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.