On 04 Sep 2013, at 10:07 , Phil Daws <[email protected]> wrote: > a little help please. I have a text file which includes all the headers and > MIME entities that I would like to pass through Postfix but for some reason > when I am using sendmail -t it appears to completely bypass the HOLD header > check I have in place and just gets delivered. Is it due to running the > sendmail command on the actual Postfix server itself ? What would be the best > way to send the email through Postfix as I need to test this particular > emails content.
How are you checking? main.cf: mime_header_checks = pcre:$config_directory/mime_headers.pcre $ cat /etc/postfix/mim_headers.pcre /^\s*Content-(Disposition|Type).*name\s*=\s*"?(.*\.(ade|adp|bas|bat|chm|cmd|com|cpl|crt|dll|exe|hlp|hta|inf|ins|isp|js|jse|lnk|mdb|mde|mdt|mdw|msc|msi|msp|mst|nws|ops|pcd|pif|prf|reg|scf|scr\??|sct|shb|shs|shm|swf|vb[esx]?|vxd|wsc|wsf|wsh))(\?=)?"?\s*(;|$)/x REJECT Attachment name "$2" may not end with ".$3" That file was last modified in 2004 (to add swf and pif, IIRC). The check nearly never hits anymore (It has not hit at all in over a week). -- Why would I ever want to go outside the Beltway?
