On 3 Jul 2016, at 18:21, mmgomess wrote:
Hi Bill. Thank you for your answer.
This method via header_checks will work only in messages originated
from my
domain. I do not want to affect incoming messages.
Yes, but I failed to mention a detail of how you might do that in my
prior message; to do so within the same smtpd service that accepts
external mail on port 25 requires the use of a restriction class which
applies to all messages with senders in your domain.
However, in most cases it is best to require your own users to submit
mail through a separate instance of the smtpd program running as a
"submission" server on port 587. This allows you to avoid the complexity
of a restriction class in your port 25 smtpd main configuration. You may
be able to simply reject mail claiming to be from addresses in your own
domain on port 25 entirely if you offer a submission service.