I noticed some of our mails got the wrong return path when the header is writen as: FROM: user@domain.com while it works fine for From: user@domain.com and FROM: <user@domain.com> the problem seams to be in from_strip that uses a case-senstive compare. The following patch should fix that. --------------------- --- ssmtp-2.64/ssmtp.c 2009-11-23 10:55:11.000000000 +0100 +++ ssmtp.c 2013-10-30 13:43:30.000000000 +0100 @@ -433,7 +433,7 @@ (void)fprintf(stderr, "*** from_strip(): str = [%s]\n", str); #endif - if(strncmp("From:", str, 5) == 0) { + if(strncasecmp("From:", str, 5) == 0) { str += 5; } ----------------------
Created attachment 570928 [details, diff] Patch copied from comment The comment included a patch, uploading it as a file