Customized response mail server

Hey Nethserverians!!

sorry to keep bugging you guys with stupid questions. but, bear with me :slight_smile:

I want to write a custom response in the mail server if someone sends an email to a non-existent email address. so my domain will reject emails (I’ve disabled receive messages from unknown sources). It is working and sends back the delivery failure email to the user who sends an email to the wrong address.

The response from the remote server was:

550 5.1.1 <email@Mydomain.com>: Recipient address rejected: undeliverable address: User unknown in virtual alias table

The response from the remote server was:

550 5.1.1 <email@Mydomain.com>: Recipient address rejected: undeliverable address: host Mydomain.com[/var/run/dovecot/lmtp] said: 550 5.1.1 <email@Mydomain.com> User doesn’t exist: email@Mydomain.com (in reply to RCPT TO command)

I want to customize the bold fields. I would appreciate it if someone could help me out.

NethServer Version: NethServer 7.7.1908
Module: Mail Server

I found that the error message can be customized with check_recipient_access.

1 Like

Thanks