Re: [exim] Rewrite an error message from Internal Server.

Etusivu
Poista viesti
Vastaa
Lähettäjä: Thomas Hochstein
Päiväys:  
Vastaanottaja: exim-users
Aihe: Re: [exim] Rewrite an error message from Internal Server.
"Balzi Andrea" schrieb:

> When I receive a mail to a wrong address, the sender receives the
> following message:

[...]
> SMTP error from remote mail server after RCPT
> TO:<andrea.balzi@???>:
> host internal-mail01.local.domain [XXX.XXX.XXX.XXX]: 550 5.1.1 User
> unknown


IMHO you should reconsider that configuration. As far as I can see you
accept the message on one machine without checking if the recipient is
valid, pass it on, and if the recipient does not exist, you send a
bounce message back to the sender. Nothing wrong with that - as long
the sender really *is* the sender. In today's world, you'll get lots
opf spam with a faked sender, and so you'll send lots of bounces to
innocent people.

It would be much better to check if the recipient is valid *before*
you accept the message on the first host. You would not have to bounce
it back then, but could just reject it, *and* you would not reveal
your internal configuration in the bounce (I think you want to strip
the internal-mail01.local.domain and its IP from the bounce message),
because internal-mail01.local.domain would never get the mail.

-thh