How to change default sendmail SMTP error codes, responses, and/or DSN text?
CentOS 5.x - SendMail
Hi Guys,
I'm curious -- is there any way to customize the STMP error codes, response text, and/or DSN body text in sendmail?
If so, where is this stored?
Thanks,
Mike
Solution 1:
It's possible, but probably not worth it.
You can go through the source code (benefit of open source) and modify the interesting parts by hand (most if not all strings seem to be hardcoded).
Fast way to find the strings is to use some recursive grep
.
It would ruin your update path though, so I doubt it's a viable solution really.
Solution 2:
Once upon a time I wrote $#random, a mailer that returns random exit codes. You maybe interested in modifying that to your purpose.