Hi there,

I am currently in the testing phase of replacing Gordano with a Postfix
solution. First time RHEL user - so this has proven quite a challenge for
me!

This server is being spun up as a mail server for an enterprise application. 

I believe I have gotten everything working, but would like to implement the
ability to block ALL attachments - regardless of what they are. Our
application does not accept attachments of any shape/form. Is something like
this possible?

I've looked around online quite a bit and have seen that you can block
specific types of files - and even found a forum post here
(http://postfix.1071664.n5.nabble.com/blocking-all-attachments-td14552.html),
but unfortunately, this solution did not work for me. When implementing this
in my mime_header_checks file, I am receiving the following in my
/var/log/maillog file:

Mar 11 08:26:05 postfix/cleanup[16783]: error: open
/etc/postfix/mime_header_check: No such file or directory
Mar 11 08:26:05 postfix/smtpd[16781]: D71E01E01EE:
client=unknown[10.1.10.45]
Mar 11 08:26:05 postfix/cleanup[16783]: warning:
regexp:/etc/postfix/mime_header_check is unavailable. open
/etc/postfix/mime_header_check: No such file or directory
Mar 11 08:26:05 postfix/cleanup[16783]: warning:
regexp:/etc/postfix/mime_header_check lookup error for "MIME-Version: 1.0"
Mar 11 08:26:05 postfix/cleanup[16783]: warning: D71E01E01EE:
mime_header_checks map lookup problem -- message not accepted, try again
later
Mar 11 08:26:05 postfix/cleanup[16783]: D86AB1E01EE:
message-id=<20140311132605.D86AB1E01EE@localhost>
Mar 11 08:26:05 postfix/qmgr[16780]: D86AB1E01EE:
from=<double-bou...@localhost.fqdn>, size=957, nrcpt=1 (queue active)

Here is my current Postfix configuration:

>>postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd
$daemon_directory/$process_name $process_id & sleep 5
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps =
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mime_header_checks = regexp:/etc/postfix/mime_header_check
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = mydomain
myhostname = myserver
mynetworks = 10.1.1.0/24, 127.0.0.0/24, 10.1.10.0/24
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
notify_classes = resource, software, bounce
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.11.0/README_FILES
relay_domains = $mydomain
sample_directory = /usr/share/doc/postfix-2.11.0/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = /etc/postfix/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmaps
virtual_minimum_uid = 1000
virtual_uid_maps = static:5000

Please let me know if I can provide anything else to assist. Thanks for your
time in reviewing this with me.

Joey



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/Possible-to-block-all-attachments-tp65917.html
Sent from the Postfix Users mailing list archive at Nabble.com.

Reply via email to