What to use for email in this situation?

Is your VPS a domain name.
Task:
1. Make letters in the mail(pre-registered) and redirect to the desired address.
For example: test@mydomain.com forward me@gmail.com
2. The authorization option to add account in gmail(settings-accounts and import - send mail as - add. To do this, if I understand correctly, you need to raise the authorization on a separate subdomain(e.g., smtp.mydomain.com)
3. (optional) no emails were not stored on the VPS

For this task to take? In what direction to dig?

Tried with postfix+dovecot, but it does not work 2 point, Google says that the server is not responding. 1 item works.
3 answers
July 9th 19 at 12:49
See settings and postfix logs. If you do not understand - show the piece of log when sending mails to gmail
If you send emails to me@mydomain.ru - everything great comes to me@gmail.com
But add account in Google can't. The logs are empty. I think I probably incorrectly configured postfix+dovecot. Did Gayda - karina59 commented on July 9th 19 at 12:52
Thought can look to exim? Or even can there is absolutely no other solution? - karina59 commented on July 9th 19 at 12:55
: He writes a googol if you cannot add the account? - tomasa_OConn commented on July 9th 19 at 12:58
try to restart postfix and dovecot, then display the /var/mail.log - tomasa_OConn commented on July 9th 19 at 13:01
: Couldn't reach server. Please double-check the server and port number. - karina59 commented on July 9th 19 at 13:04
a dialogue is impossible. Would You like to move our discussion to Skype? - tomasa_OConn commented on July 9th 19 at 13:07
: You want to offer paid help? If so, thanks for the offer but I'll pass. If not, the VC. - karina59 commented on July 9th 19 at 13:10
: I'm ready to help but now is already tomorrow. Write Your VC. - tomasa_OConn commented on July 9th 19 at 13:13
: for forwarding, you need to use a sieve - Garland36 commented on July 9th 19 at 13:16
July 9th 19 at 12:51
It all depends on which Registrar your domain zaregan! Some registrars provide this functionality like mail forwarding... Tipo mail that goes to a certain domain (or box in this domain) to send something...

IMHO, this is, I think, is the best solution...
You are confusing something. What's the difference what Registrar? It's all configured DNS records and VPS.
If we talk about regular hosting, then your answer is correct, but in my situation, absolutely not. - karina59 commented on July 9th 19 at 12:54
: for example - two Ukrainian Registrar 1gb.ua, ukraine.com.ua! There is such option as forwarding/mail forwarding... DNS records and VPS are by and large unrelated things, IMHO! I can zaregat domain from one Registrar and VPS hosting to take a completely different Vendor... and I think everything will work!...
So it is possible to debate on the subject of who and what confuses... - karina59 commented on July 9th 19 at 12:57
: I mean, should I have a question, how to configure it with standard tools: DNS + software on your VPS. We start from the fact that my Registrar does not provide such services. - tomasa_OConn commented on July 9th 19 at 13:00
July 9th 19 at 12:53
View to the side pdd.yandex.ru / biz.mail.ru / apps.google.com is much easier than maintaining your own server.
Unfortunately, the problem is exactly this. - karina59 commented on July 9th 19 at 12:56
: then see: to raise the authorization on a separate domain is not necessary, the authorization usually rises on port submission, it is configured in the master.cf in Postfix. To use authorization dovecotr in main.cf should be
smtpd_sasl_type = dovecot
in the master.cf for submission should be options

-o smtpd_sasl_auth_enable=yes
-o smtpd_sasl_type=dovecot
-o smtpd_sasl_path=private/auth
accordingly, in GMail use the address of your server, port 587. - karina59 commented on July 9th 19 at 12:59

Find more questions by tags Mail for domainPostfixMail serverE-mailSystem administration