T
T
tokyodead2021-11-30 11:38:16
linux
tokyodead, 2021-11-30 11:38:16

Not sending message via postfix?

Good afternoon, tell me, please, we have Bitrix, I set up mail via external smtp.mail.ru for corporate mail, sending works from the mail that I specified in the settings, and if I send from another mail, it gives an error that in the from field there is an invalid mail, now I'm trying to install postfic, configured it, in the logs there is such an error
Nov 30 11:20:04 bitrix24 postfix/smtpd[10076]: connect from localhost[
127.0. /smtpd[10076]: disconnect from localhost[127.0.0.1]
Nov 30 11:20:04 bitrix24 postfix/smtpd[10076]: connect from localhost[127.0.0.1]
Nov 30 11:20:04 bitrix24 postfix/smtpd[10076 ]: disconnect from localhost[127.0.0.1]
Nov 30 11:20:04 bitrix24 postfix/smtpd[10076]: connect from localhost[127.0.0.1]
Nov 30 11:20:04 bitrix24 postfix/smtpd[10076]: disconnect from localhost[127.0.0.1]
Nov 30 11:27:03 bitrix24 postfix/smtpd[10236]: connect from localhost[127.0.0.1]
Nov 30 11: 27:03 bitrix24 postfix/smtpd[10236]: disconnect from localhost[127.0.0.1]

Each time when sending, such entries appear in the logs, and the message does not arrive.

main.cf settings

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/mailpasswd
smtp_sasl_security_options = noanonymous
smtp_sasl_type = cyrus
smtp_sasl_mechanism_filter = login
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/sender_relay
# sender_canonical_maps = hash:/etc/postfix/canonical
sender_canonical_maps = regexp:/etc/postfix/sender_canonical
smtp_generic_maps = hash:/etc/postfix/generic
smtp_use_tls = yes
header_checks = regexp:/etc/postfix/header_checks
local_header_rewrite_clients = static:all

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Zhgilev, 2021-11-30
@jazzz

It gives the error correctly, you do not have a sender replacement configured on postfix, namely ...
In B24 - Control Panel one mail is attached, but let's say in the CRM section each user has his own or another ...
But B24 Box has not yet learned how to send letters NOT from the mail in the Control Panel , it just substitutes the mail from CRM in the header, but in fact sends it from the one in the Control Panel ...
Google how you can implement it in postfix ...
If you left the standard smpt version of the msmtp server , I would tell you prompted (

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question