|
| 5 msg | postfix/ldap - can one special_result_attribute... | | 2 msg | mailing list goes to bulk / spam folder | | 9 msg | SMTP Auth on multiple instances | | 4 msg | Auto-response, but not vacation | | 4 msg | bypassing reject_rbl_client for certain recipie... | | 12 msg | rewritten log | | 11 msg | Per user SPF and Anti Virus checks | | 9 msg | Instance on policies | | 2 msg | Removing internal mailers from headers | | 7 msg | Open Relay issue | | 1 msg | Messages not picked up from active queue | | 3 msg | Semantics question about myorigin |
| | mime, header_checks question | | \ Jason Bailey, Sun Advocate Webma (31 Mar 2008) | | . \ Magnus Bäck (31 Mar 2008) | | . . \ (Wietse Venema) (31 Mar 2008) | | . . \ Noel Jones (31 Mar 2008) | | . . \ Jason Bailey, Sun Advocate Webma (31 Mar 2008) | | . . . \ Noel Jones (31 Mar 2008) | | . . . . \ Victor Duchovni (31 Mar 2008) | | . . . . . \ Jason Bailey, Sun Advocate Webma (31 Mar 2008) | | . . . . . . \ Victor Duchovni (31 Mar 2008) | | . . . . . . . \ Jason Bailey, Sun Advocate Webma (31 Mar 2008) | | . . . . . . \ Boyd Lynn Gerber (31 Mar 2008) | | . . . . . . . \ Jason Bailey, Sun Advocate Webma (2 Apr 2008) | | . . . . . . . . \ Victor Duchovni (2 Apr 2008) | | . . . . . . . . . \ Jason Bailey, Sun Advocate Webma (2 Apr 2008) | | . . . . . . . . . . \ Victor Duchovni (2 Apr 2008) | | . . . . . . . . . . . \ Jason Bailey, Sun Advocate Webma (2 Apr 2008) | | . . . . . . . . . . . . \ Victor Duchovni (2 Apr 2008) | | . . . . . . . . . . . . . \ Jason Bailey, Sun Advocate Webma (2 Apr 2008) | | . . . . . . . . . . . . . . \ Victor Duchovni (2 Apr 2008) | | . . . . . . . . . . . . . \ Jason Bailey, Sun Advocate Webma (2 Apr 2008) | | . . . . . . \ Bill Cole (3 Apr 2008) | | . . . . . \ Jason Bailey, Sun Advocate Webma (31 Mar 2008) |
| | 3 msg | problem using greylist and gmail | | 9 msg | 451 4.3.0 Error: queue file write error and vir... | | 5 msg | Network_biopair_interop errors | | 1 msg | what means error msg in auth.log (failed to map... | | 5 msg | problem upgrading from 2.4.5 to 2.5.1 | | 5 msg | failover | | 13 msg | smtp_fallback_relay |
| | Subject: | mime, header_checks question | | Group: | Postfix-users | | From: | Jason Bailey, Sun Advocate Webmaster | | Date: | 31 Mar 2008 |
I have a user who has a hisdomain.com.png attachment that he sends out
as part of his email signature. Now, my Postfix installation refuses it
because my mime filter sees the .com and blocks it.
My mime filter contains the following:
/name=[^>]*\.(bat|com|exe|dll|vbs|scr|pif|cpl|shs|shb|zip)/ REJECT
I thought that perhaps it might be advantageous to tweak this so that it
only rejected attachments ending in .com, .exe and so forth... not just
files that contain it.
So I modified it like this:
/name=[^>]*\.(bat|com|exe|dll|vbs|scr|pif|cpl|shs|shb|zip)$/ REJECT
It then lets everything through, regardless. Obviously I'm
mis-interpreting the regexp pattern here.
Now, in my main.cf, I have my mime filter defined like this:
mime_header_checks = regexp:/etc/postfix/mime_filter
I can't replace regexp with pcre... Postfix gives errors and won't parse
the file.
So my question is two-fold:
1) If I were to only reject files that ended in .com, for example,
instead of files that contain .com, how would I do this (given my
existing mime filter)
2) Should I even pursue what I'm proposing in #1 above? Maybe there's a
good reason for NOT doing that?
--
Jason Bailey, Web/IT Administrator
Sun Advocate / Emery County Progress
webmaster / webmaster
(435) 637-0732 (ext 31)
|