reject email with big attachment

English! place to talk about development, programming and coding
Post Reply
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

reject email with big attachment

Post by Giulio Soleni »

Hi,
I would like OTRS automatically reject email with big attachment.
I see that there is a SysConfig parameter in Core::Postmaster PostMasterMaxEmailSize that can be set to cap the size limit for emails to be fetched but I would like to reply to the sender with an auto-message like "the attachment in your last email is too big..." just to make him aware that his email will not be parsed.

Is there a way, possibly with ACLs, to set this?
Any hint?

thank you in advance
Giulio
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: reject email with big attachment

Post by jojo »

You need to do this is the Mailserver (from where you are fetching mails)
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Giulio Soleni
Znuny wizard
Posts: 392
Joined: 30 Dec 2010, 14:35
Znuny Version: 6.0.x and 5.0.x
Real Name: Giulio Soleni
Company: IKS srl

Re: reject email with big attachment

Post by Giulio Soleni »

Hi Jojo,
you mean there's no way to set any filter on OTRS and that you have to configure a filter or something on the mailserver?
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: reject email with big attachment

Post by jojo »

OTRS does not have a spamfilter. It only can check Headers
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply