Bounce message with transport_maps

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Bounce message with transport_maps

luistkd4

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=<[hidden email]>
Oct 18 17:30:07 SERVER01 postfix/qmgr[35700]: 39B2E3E845: from=<[hidden email]>, size=44864113, nrcpt=1 (queue active)
Oct 18 17:30:07 SERVER01 postfix/smtp[43114]: 39B2E3E845: to=<[hidden email]>, 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=<[hidden email]>
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=<[hidden email]>, 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 | Threaded
Open this post in threaded view
|

Re: Bounce message with transport_maps

Wietse Venema
Luis Miguel Flores dos Santos:
> Existe a way to postfix use another transport method to send bounce
> messages? or I can do it only with "before queue"?

No, but you could set

/etc/postfix/main.cf:
    smtpd_reject_unlisted_sender = yes

and stop accepting mail via SMTP that has an unknown sender address
(it does not block unknown senders with the Postfix 'sendmail'
command).

        Wietse
Reply | Threaded
Open this post in threaded view
|

Re: Bounce message with transport_maps

Matus UHLAR - fantomas
In reply to this post by luistkd4
On 18.10.17 21:07, Luis Miguel Flores dos Santos wrote:
>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.

eh? why?

>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.

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

you probably need to set up recipient verification so you don't accept mail
for unknown recipients. look at
http://www.postfix.org/ADDRESS_VERIFICATION_README.html

>Oct 18 17:30:07 SERVER01 postfix/smtp[43114]: 39B2E3E845:
> to=<[hidden email]>, 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]

This is rejected because of message size, not unknown user.  You should
configure the same message_size_limit as your exchange server has.

>[root@SERVER01 ~]# cat /var/log/maillog | grep 5F5013E85A
>Oct 18 17:30:07 SERVER01 postfix/cleanup[41577]: 5F5013E85A: message-id=<[hidden email]>
>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=<[hidden email]>, 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"?

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.


--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Quantum mechanics: The dreams stuff is made of.
Reply | Threaded
Open this post in threaded view
|

Re: Bounce message with transport_maps

luistkd4
In reply to this post by luistkd4

>>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: [hidden email] <[hidden email]> em nome de Luis Miguel Flores dos Santos <[hidden email]>
Enviado: quarta-feira, 18 de outubro de 2017 19:07:30
Para: [hidden email]
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=<[hidden email]>
Oct 18 17:30:07 SERVER01 postfix/qmgr[35700]: 39B2E3E845: from=<[hidden email]>, size=44864113, nrcpt=1 (queue active)
Oct 18 17:30:07 SERVER01 postfix/smtp[43114]: 39B2E3E845: to=<[hidden email]>, 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=<[hidden email]>
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=<[hidden email]>, 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 | Threaded
Open this post in threaded view
|

Re: Bounce message with transport_maps

luistkd4
In reply to this post by Matus UHLAR - fantomas
>>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?



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html