2

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

2 Answers 2

3

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.

1
  • Cool. I was hoping for something like an m4 variable but didn't see any listed in the sendmail docs. Thanks for the prompt reply.
    – Mike B
    Apr 21, 2010 at 16:54
1

Once upon a time I wrote $#random, a mailer that returns random exit codes. You maybe interested in modifying that to your purpose.

1
  • This is a clever idea!
    – Mike B
    May 24, 2012 at 14:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .