On 06.11.20 13:19, Rafael Azevedo wrote:
Huge thanks!!
yes, if you want timply to prevent other servers from sending mail from
your domain, implementing domain in access list is enough.
with my proposal, you could even check which authenticated users are allowed
to send mail from which address.
that might be an overkill, but sometimes useful, so your users aren't
allowed to spoof each other's addresses.
Em sex., 6 de nov. de 2020 às 13:15, Patrick Laimbock <patr...@laimbock.com>
escreveu:
On 06-11-2020 13:48, Rafael Azevedo wrote:
> Hi there,
>
> This is an old issue and I believe it has already focused on older
> discussions.
>
> I'm receiving SPAM from my own address.
>
> Checking server logs, user is not authenticating and the only way this
> spammer can play a trick is by sending an email to its own address (ie:
> from raf...@mydomain.com <mailto:raf...@mydomain.com> to
> raf...@mydomain.com <mailto:raf...@mydomain.com>).
>
> Is there a way to avoid this practice ?
>
> Thanks in advance.
>
> BR,
> Rafael
Hope I get this right. In main.cf you can put a section:
smtpd_sender_restrictions =
...
check_sender_access hash:/etc/postfix/sender_access
...
And in /etc/postfix/sender_access you then add your domain (see man 5
access for more information):
mydomain.com REJECT You are not mydomain.com
Then run postmap
# postmap /etc/postfix/sender_access
And finally
# postfix reload
Note that this only works for MAIL FROM, see
http://www.postfix.org/postconf.5.html#smtpd_sender_restrictions
http://www.postfix.org/postconf.5.html#check_sender_access
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; 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.
Fighting for peace is like fucking for virginity...