DOH it's in the changelog notes
2004-10-26 David F. Skoll <[EMAIL PROTECTED]>
* Version 2.46-BETA-1 released.
* mimedefang.c: Add IP address of scanning host to X-Scanned-By:
header.
Can we have a switch for it? maybe at compile time to disable it, as it's a
great way of giving out ip addressess that you may not want to (eg my natted
IP's)??
I guess for now, it's a patch and re-compile (gonna have to remember all
these changes lol!)
Cheers
Mack
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mack
Sent: 05 June 2005 22:38
To: [email protected]
Subject: ***SUSPECTED SPAM*** [Mimedefang] -x is adding Milter add:
header: X-Scanned-By: MIMEDefang 2.52 on x.x.x.x ?
having upgraded to mimedefang 2.52 on a new build box with my old milter
(after changing it)
no matter what i change the -x to in the start script, it always puts 'on
x.x.x.x' after it,
I've never seen this before, and a quick look through the mimedefang.c gives
me this (in FUNCTION: eom)
if (scan_body && *scan_body) {
if (data->myip) {
snprintf(buffer, SMALLBUF, "%s on %s", scan_body, data->myip);
buffer[SMALLBUF-1] = 0;
MD_SMFI_TRY(smfi_addheader, (ctx, "X-Scanned-By", buffer));
} else {
MD_SMFI_TRY(smfi_addheader, (ctx, "X-Scanned-By", scan_body));
}
}
Now I'm guessing the reason is because i'm using ipvsadm (IP Virtual Server)
as part of my load balancing, and the ip address of the machine is not
really the ip address that sendmail is seeing (and of course i don't want
these IP addressess passed out globaly)
Is my only option to patch the mimedefang.c and remove the check ? ie
if (scan_body && *scan_body) {
MD_SMFI_TRY(smfi_addheader, (ctx, "X-Scanned-By", scan_body));
}
or is there another way of doing it ?
Cheers
Mack
_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
This Email Has Been Anti-Virus Scanned
_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
[email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang