N
N
NkDev2018-03-29 17:23:55
Email
NkDev, 2018-03-29 17:23:55

How to set up receiving mail on Centos 7?

I have a VPS server with a dedicated IP: 123.456.789.10
I have a registered domain: site.ru
Comodo should send me an email to [email protected] to confirm ownership of this domain.
Can you tell me how can I get this letter received?
What exactly do I need to do: make sure that letters sent by e-mail to the address [email protected]te.ru arrive on my server and I can read them at least from the console. All.
I have been trying to deploy a mail server for several days in a row, but the topic turned out to be very extensive. The Internet is full of monstrous instructions that do not work for me. I'm trying to find the minimum working option.
What has already been done:
1. A record of the form has been added to DNS hosting: @ MX 10 123.456.789.10
2. Mailx is installed on the server: yum install mailx
3. Tried to send a test email with the command: echo "some text" | mail -s "My_subject_is_here" [email protected]
4. Received an error:
warning: valid_hostname: numeric hostname: 123.456.789.10
send-mail: fatal: unable to use my own hostname
Please, tell me which direction is better to move? What sequence of actions should be?
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2018-03-29
@feanor7

You can certainly read and write with mail, but it will be very inconvenient Hostname
error, that's what mailx swears at. You can check it out and see what happens.
You first decide whether you need mail on this hosting, if so, then raise the mail server. If not, send mail somewhere)

C
CityCat4, 2018-03-30
@CityCat4

Well, firstly, mailx is a program for sending mail by scripts ;) Of course, you can use it (it used to be), but it's very inconvenient.
Secondly, you need an smtp server to send mail. Is it installed? What does it write in the logs?

D
Dmitry, 2018-03-29
@Tabletko

Connect mail to Yandex, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question