Sending mails from same domain, but this is other mail server (yandex)

mike123

Active Member
Jun 3, 2019
13
2
43
36
Hello everyone!
help me please!

I have a domain example. com, there is a mail server and PMG in front of it. all OK!

but I want to send a letter to the internal addressees of the domain example.com, from another (cloud server) with the same registered domain for example.com, but PMG rejects emails from the same domain, but another server with error 554 5.7.1 Rejected for policy reasons ( which is logical)

is it possible?
 
554 5.7.1 Rejected for policy reasons
This sounds like the message is rejected by your rule-system

please post the complete logs for the mail which gets rejected (redact only information that you need to remove - and try to keep it understandable as much as possible)
 
Похоже, сообщение отклонено вашей системой правил.

пожалуйста, опубликуйте полные журналы для письма, которое было отклонено (отредактируйте только ту информацию, которую вам нужно удалить, и постарайтесь сделать ее максимально понятной)
This sounds like the message is rejected by your rule-system

please post the complete logs for the mail which gets rejected (redact only information that you need to remove - and try to keep it understandable as much as possible)
Thank you for the answer!

here is the log, but it is not informative ..



Apr 6 10:51:34 mailgw postfix/smtpd[27063]: connect from forward106o.mail.yandex.net[37.140.190.187]
Apr 6 10:51:34 mailgw postfix/smtpd[27063]: DC9BB1006F3: client=forward106o.mail.yandex.net[37.140.190.187]
Apr 6 10:51:34 mailgw postfix/cleanup[27125]: DC9BB1006F3: message-id=<445721617695471@mail.yandex.ru>
Apr 6 10:51:34 mailgw postfix/qmgr[11394]: DC9BB1006F3: from=<user@example.com>, size=6049, nrcpt=1 (queue active)
Apr 6 10:51:34 mailgw postfix/smtpd[27063]: disconnect from forward106o.mail.yandex.net[37.140.190.187] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Apr 6 10:51:35 mailgw postfix/lmtp[27126]: DC9BB1006F3: to=<info@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.77, delays=0.03/0/0/0.74, dsn=5.7.1, status=bounced (host 127.0.0.1[127.0.0.1] said: 554 5.7.1 Rejected for policy reasons (100700606C1306E19D4) (in reply to end of DATA command))
Apr 6 10:51:35 mailgw postfix/qmgr[11394]: DC9BB1006F3: removed
 
the messages from `pmg-smtp-filter` are missing - try getting the logs from the Tracking Center - this should contain everything needed
 
the messages from `pmg-smtp-filter` are missing - try getting the logs from the Tracking Center - this should contain everything nethis log

the messages from `pmg-smtp-filter` are missing - try getting the logs from the Tracking Center - this should contain everything needed
This log is from the Tracking Center (from PMG) there are no more lines in this event
 
is there anything in /var/log/mail.log from that time-frame - (especially lines from pmg-smtp-filter would be interesting)
 
is there anything in /var/log/mail.log from that time-frame - (especially lines from pmg-smtp-filter would be interesting)
mail.log




Apr 6 10:51:34 mailgw postfix/postscreen[20264]: CONNECT from [37.140.190.187]:36655 to [192.168.1.20]:25
Apr 6 10:51:34 mailgw postfix/postscreen[20264]: warning: postscreen_access_list: non-null host address bits in "192.168.1.1/20", perhaps you should use "192.168.0.0/20" instead
Apr 6 10:51:34 mailgw postfix/postscreen[20264]: warning: postscreen_access_list: permit_mynetworks: mynetworks lookup error -- ignoring the remainder of this access list
Apr 6 10:51:34 mailgw postfix/postscreen[20264]: PASS OLD [37.140.190.187]:36655
Apr 6 10:51:34 mailgw postfix/smtpd[27063]: connect from forward106o.mail.yandex.net[37.140.190.187]
Apr 6 10:51:34 mailgw postfix/smtpd[27063]: DC9BB1006F3: client=forward106o.mail.yandex.net[37.140.190.187]
Apr 6 10:51:34 mailgw postfix/cleanup[27125]: DC9BB1006F3: message-id=<445721617695471@mail.yandex.ru>
Apr 6 10:51:34 mailgw postfix/qmgr[11394]: DC9BB1006F3: from=<user@example.com>, size=6049, nrcpt=1 (queue active)
Apr 6 10:51:34 mailgw pmg-smtp-filter[27055]: 2021/04/06-10:51:34 CONNECT TCP Peer: "[127.0.0.1]:39334" Local: "[127.0.0.1]:10024"
Apr 6 10:51:34 mailgw postfix/smtpd[27063]: disconnect from forward106o.mail.yandex.net[37.140.190.187] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Apr 6 10:51:34 mailgw pmg-smtp-filter[27055]: 100700606C1306E19D4: new mail message-id=<445721617695471@mail.yandex.ru>#012
Apr 6 10:51:35 mailgw pmg-smtp-filter[27055]: 100700606C1306E19D4: SA score=0/5 time=0.712 bayes=0.00 autolearn=no autolearn_force=no hits=AWL(0.725),BAYES_00(-1.9),HTML_MESSAGE(0.001),HTML_MIME_NO_HTML_TAG(0.377),KAM_DMARC_STATUS(0.01),KAM_LAZY_DOMAIN_SECURITY(1),MIME_HTML_ONLY(0.1),RCVD_IN_DNSWL_LOW(-0.7),RCVD_IN_MSPIKE_H2(-0.001),SPF_HELO_NONE(0.001),SPF_NONE(0.001),URIBL_BLOCKED(0.001)
Apr 6 10:51:35 mailgw pmg-smtp-filter[27055]: 100700606C1306E19D4: block mail to <info@example.com> (rule: Blacklist)
Apr 6 10:51:35 mailgw pmg-smtp-filter[27055]: 100700606C1306E19D4: processing time: 0.736 seconds (0.712, 0.014, 0)
Apr 6 10:51:35 mailgw postfix/lmtp[27126]: DC9BB1006F3: to=<info@example.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.77, delays=0.03/0/0/0.74, dsn=5.7.1, status=bounced (host 127.0.0.1[127.0.0.1] said: 554 5.7.1 Rejected for policy reasons (100700606C1306E19D4) (in reply to end of DATA command))
Apr 6 10:51:35 mailgw postfix/cleanup[27125]: A4649100765: message-id=<20210406075135.A4649100765@mailgwexample.com>
 
The message is rejected because of the 'Blacklist' rule in your rule-system
check the rule and all objects - this should explain why it was rejected

I hope this helps!
 
The message is rejected because of the 'Blacklist' rule in your rule-system
check the rule and all objects - this should explain why it was rejected

I hope this helps!
AAAA how could I not see it!
yes, my domain was on the long list in Blacklist!

thaky you so mach!
and soryy for stupid quiestion(
 
No stress - was not a stupid question!
Glad you found the reason!