How to Reject email if email address (recipient )doesn't exist?

Hey Nethserverians!

Could anyone guide me on how to reject emails if the email doesn’t exist?

for example:
the email address abc@mydomain.com doesn’t exist but if someone send an email to that address still I receive those emails on root@mydomain.com. I want to implement a mechanism where when someone sends an email to an email address that doesn’t exist on my domain then the mail server should reject email immediately. So, the sender will receive a rejection email.

Thanks a lot!

NethServer Version: NethServer 7.7.1908
Module: Email

hum check the domain settings inside the email application, I guess that you have enabled the Accept unknown recipients to root.

Normally it is the default behaviour to reject unknown email address

Mar 9 12:32:03 prometheus postfix/lmtp[20269]: 3993218D27B8A: to=<4b744246.1050509@domain.com>, relay=domain.com[/var/run/dovecot/lmtp], delay=0.51, delays=0.49/0/0.01/0.02, dsn=5.1.1, status=undeliverable (host domain.com[/var/run/dovecot/lmtp] said: 550 5.1.1 <4b744246.1050509@doamin.com> User doesn't exist: 4b744246.1050509@domain.com(in reply to RCPT TO command))

2 Likes

Thanks!!