> -----Messaggio originale-----
> Da: [email protected] [mailto:owner-postfix-
> [email protected]] Per conto di Wietse Venema
> Inviato: lunedì 30 luglio 2018 15:06
> A: Postfix users <[email protected]>
> Oggetto: Re: Rewrite header From:
>
> Scappatura Rocco:
> > Hello.
> >
> > My mail server received unsollecited emails with header From: similar to
> 'Heidi <info>'.
> >
> > Users perceive that email comes from our company as the header From:
> has been rewrite in 'Heidi <[email protected]>'.
> >
> > Infact:
> >
> > myorigin = $mydomain
> > mydomain = host.domain.tld
> >
> > and
> >
> > append_at_myorigin = yes
> > local_header_rewrite_clients = permit_inet_interfaces
> >
> > Is there a way to block incoming e-mails whose 'Header From:' does not
> specify valid email address?
> >
>
> Perhaps the following will do the job:
>
> /etc/postfix/main.cf:
> remote_header_rewrite_domain = domain.invalid
>
> but it may have no effect on an smtpd_proy_filter based content filter.
Thanks Wietse
My configuration does not use smtpd_proxy_filter at all.
So I think I can set:
remote_header_rewrite_domain = domain.invalid
or it could be better to set:
remote_header_rewrite_domain =
What is the difference simply explained?
And, if I have well understood, it could be also a solution for my issue also
to set:
local_header_rewrite_clients = permit_mynetworks
So that local generate emails will have header From: correctly rewritten, while
email coming from outside will not have header From: rewritten..
Correct?
> See also:
> http://www.postfix.org/postconf.5.html#remote_header_rewrite_domain
> http://www.postfix.org/postconf.5.html#local_header_rewrite_clients
>
> Wietse
Rocco