>>and stop accepting mail via SMTP that has an unknown sender address
(it does not block unknown senders with the Postfix 'sendmail'
command).
I Just changed the original sender to post here

>> eh? why?
Because with only a mx record our clients can recieve message in domains 
created in Exchange and Smartemail enviorement the domain can exist in two.

>> this problem happens often, when you accept a mail while you don't know if
you can verify it.

In this case the e-mail account was disable in exchange (my example above was 
wrong like you said the error is the message size) but in my transport_maps 
exist the entry to relay message to exchange server, in this case the most 
correct is remove the record in memcached, right??

>>in the "before queue" case you don't need to solve anything - the message is
not accepted, so the bounce generation is not up to you.
But in the same case above the bounce occur because the message size, but this 
e-mail was delivered to sender, why?


________________________________
De: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> em nome 
de Luis Miguel Flores dos Santos <miguel_flores_san...@hotmail.com>
Enviado: quarta-feira, 18 de outubro de 2017 19:07:30
Para: postfix-users@postfix.org
Assunto: Bounce message with transport_maps


Hi, I have a postfix using as a mail proxy. In our environment, I use 
transport_maps(memcache).
I create in memcache a wildcard * with status bounce 500 No such user here.
When the MTA(exchange) bounce the message it returns to the same postfix and it 
checks if the recipient exists, but it's a bounce message and the sender 
sometimes doesn't exist inside the environment.

MAILLOG:

[root@SERVER01 ~]# cat /var/log/maillog | grep 39B2E3E845
Oct 18 17:09:10 SERVER01 postfix/smtpd[18476]: 39B2E3E845: 
client=mx.MYDOMAIN.com[222.222.222.222]
Oct 18 17:09:10 SERVER01 postfix/cleanup[41577]: 39B2E3E845: 
message-id=<cy4pr1601mb13365592c194b551dc564d2ac5...@cy4pr1601mb1336.namprd16.prod.outlook.com>
Oct 18 17:30:07 SERVER01 postfix/qmgr[35700]: 39B2E3E845: 
from=<miguel_flores_san...@hotmail.com>, size=44864113, nrcpt=1 (queue active)
Oct 18 17:30:07 SERVER01 postfix/smtp[43114]: 39B2E3E845: 
to=<mig...@mydomain.com>, relay=EXCHANGE[111.111.111.111]:2525, delay=1257, 
delays=1257/0.01/0.01/0, dsn=5.3.4, status=bounced (message size 44864113 
exceeds size limit 36700160 of server EXCHANGE[111.111.111.111]
Oct 18 17:30:07 SERVER01 postfix/bounce[43115]: 39B2E3E845: sender non-delivery 
notification: 5F5013E85A
Oct 18 17:30:07 SERVER01 postfix/qmgr[35700]: 39B2E3E845: removed


[root@SERVER01 ~]# cat /var/log/maillog | grep 5F5013E85A
Oct 18 17:30:07 SERVER01 postfix/cleanup[41577]: 5F5013E85A: 
message-id=<20171018193007.5f5013e...@server01.spo2.umbler.com>
Oct 18 17:30:07 SERVER01 postfix/bounce[43115]: 39B2E3E845: sender non-delivery 
notification: 5F5013E85A
Oct 18 17:30:07 SERVER01 postfix/qmgr[35700]: 5F5013E85A: from=<>, size=7622, 
nrcpt=1 (queue active)
Oct 18 17:30:07 SERVER01 postfix/error[43116]: 5F5013E85A: 
to=<miguel_flores_san...@hotmail.com>, relay=none, delay=0.03, 
delays=0/0.02/0/0, dsn=5.0.0, status=bounced (No Such User Here)
Oct 18 17:30:07 SERVER01 postfix/qmgr[35700]: 5F5013E85A: removed



Existe a way to postfix use another transport method to send bounce messages? 
or I can do it only with "before queue"?


Thanks

Reply via email to