Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Simulate 550 Recipient address rejected: User unknown in relay recipient table errors #1265

Closed
PDunbarCGI opened this issue Jan 29, 2024 · 4 comments

Comments

@PDunbarCGI
Copy link

For functional application testing purposes, it would be helpful to be able to simulate delivery failures that occur for specific addresses such as:
550 Recipient address rejected: User unknown in relay recipient table;

where mail sent to a local address not recognized by the MTA is rejected.

@andy250
Copy link

andy250 commented Mar 12, 2024

Related: #165
I am considering giving it a try and sending a PR. It should be fairly simple. One way to control this would be to recognized some special code/string in the subject (configurable in appsettings). E.g. if subject contains configured code (e.g. [SMTP_ERROR:xxx]) then return error xxx.

@rnwood
Copy link
Owner

rnwood commented Mar 12, 2024 via email

@andy250
Copy link

andy250 commented Mar 12, 2024

Yes, scripting would be very nice. Requires more effort though and understanding of bigger part of the app. I can't invest that much into this project atm, sorry. A rigid config-approach could be good enough for a start also, until scripting is adopted. I'll start with a fork and see how it goes.

@rnwood
Copy link
Owner

rnwood commented Apr 13, 2024

Implemented. See RecipientValidationExpression in the settings file (and also in the settings dialog in the UI).

@rnwood rnwood closed this as completed Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants