Postfix Server Plain Text Email ONLY?
I currently have a huge SPAM problem running POSTFIX on my Linux server simply because I had to disable spamd (Spamassassin) for the time being. I am getting all kinds of lovely images (HTML) embedded into the messages from SPAMMERS and was wondering how in Postfix I restrict all incoming and outgoing emails to plain text only. I see no need to HTML encoded email.
Is there a simple solution in Postfix and where does this parameter live to enable both incoming and outgoing email via Postfix? Thanks for your support and I did check the postfix FAQ and could not find anything. The Postfix mailing group is useless for me. My questions never have been answered there. |
You can use mime_header_checks.
mime_header_checks regexp:/etc/postfix/mime_headers Code:
/^[C,c]ontent-[T,t]ype: text\/html/ REJECT HTML messages are not allowed on this server. |
So I ran the following command on my email server:
Code:
vim /etc/postfix/mime_header_checks.regexp Code:
/filename=\"?(.*)\.(bat|chm|cmd|com|do|exe|hta|jse|rm|scr|pif|vbe|vbs|vxd|xl)\"?$/ Code:
/^[C,c]ontent-[T,t]ype: text\/html/ |
You need to add the REJECT statement so postfix knows what to do with it.
|
Quote:
How would that look like in the last entry I added to my mime file? I did the following and still was able to send... Code:
/^[C,c]ontent-[T,t]ype: text\/html/ |
Code:
/^[C,c]ontent-[T,t]ype: text\/html/ REJECT We don't allow HTML email - Please resend in plain text |
Quote:
|
All times are GMT -5. The time now is 01:41 PM. |