M
M
microf2017-03-22 08:14:56
1C-Bitrix
microf, 2017-03-22 08:14:56

How to set up mail in Bitrix?

Good afternoon. There was a site on Centos 6 with Plesk, everything worked - mail was sent to him when registering a new user, everything is fine, in general. But due to some reasons, I had to move the site to BitrixVM - the mail stopped leaving. Well, i.e. I understand that you need to make some settings like these . But why did mail leave without any settings from Plesk before? What did Bitrix use to send earlier (on the old server)?
Update: Because I did not have any mail server at all (Sorry everyone

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2017-03-22
@microf

1. option and I highly recommend it to you.
Delegate mail to Yandex PDD, (essentially a regular option for bitirks vm)
By default, Bitrix vm does not use smtpd, but msmtpd, which, in fact, can only authenticate on someone else's mail server.
edit the file
/home/bitrix/.msmtprc(no need to restart the daemon)
write this there

# smtp account configuration for default
account default
logfile /home/bitrix/msmtp_default.log
host smtp.yandex.ru
port 587
from [email protected]
keepbcc on
auth on
user [email protected]
password ТУТ_ТВОЙ_ПАРОЛЬ
tls on
tls_certcheck off
tls_starttls on

We look at the sending logs in the same folder
Yes, and do not forget to activate your account on Yandex!
Pluses
+ each project has its own mail server without settings
+ Yandex admin panel
+ Yandex antispam
+ spf dkim dmarck work validly certificates are signed. (you need to send a token to activate DKIM
- mail is sent from an external server
. You can see the settings for this domain in the records.
Now how to make mail sent from a local computer.
yum install postfix...
Well, so that the site starts sending mail via postfix, comment the line in the virtual host of the corresponding site
php_admin_value sendmail_path "msmtp -t -i -aHere_your_site_name"
Apache reload and that's it.
+ own mail
- no antispam
-put a web face, if you need it, I recommend roundcube.
- you need to set up all the boxes, etc. yourself or turn the web face again.
- you need to configure dkim yourself, install opendkim I wrote how to do it here
https://klondike-studio.ru/blog/nastroyka-dkim-na-...

G
Gennick's Macleo, 2018-06-21
@Genice

It will not be possible to install Bitrix and Roundcube on one vps. Contrasting configuration requirements for php.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question