Hi,
[1] http://www.postfix.org/header_checks.5.html
Do I need to check both Content-(Type|Disposition) ?
from what I can see, an attachment is always identified by its filename,
as in:
Content-Disposition: attachment;
filename=bla_bla.docx; size=168097;
On 2015-08-18 18:51, nico...@devels.es wrote:
Even more useful than checking the Subject, I use header_checks to check
some properties on attachments. In fact, I've picked Wietse's example on
the header_checks (5) man page [1] and tuned it to my needs. This allows
one to reject mails based on
On 18 Aug 2015, at 11:43, Nicolás wrote:
If you plan blocking incoming e-mails based on the From header,
probably check_sender_access is more suitable in this case:
This is incorrect. check_sender_access does not operate on any header,
it operates on the SMTP envelope sender address.
Hi,
I'm trying to match a pattern in a header_checks pcre file and can't
figure out why it's not matching. In /etc/postfix/header_checks.pcre,
I have:
/^From:.*exampleuser@gmail\.com$/ REJECT
# postmap -q 'exampleuser' pcre:/etc/postfix/header_checks.pcre
#
postconf -m shows pcre among the
El 2015-08-18 17:33, Alex escribió:
Hi,
If that is the preferred method, what is the real purpose of
header_checks? Solely for Subject and To?
Even more useful than checking the Subject, I use header_checks to check
some properties on attachments. In fact, I've picked Wietse's example on
El 2015-08-18 16:15, Alex escribió:
Hi,
I'm trying to match a pattern in a header_checks pcre file and can't
figure out why it's not matching. In /etc/postfix/header_checks.pcre,
I have:
/^From:.*exampleuser@gmail\.com$/ REJECT
# postmap -q 'exampleuser' pcre:/etc/postfix/header_checks.pcre
#
- On 18 Aug, 2015, at 17:15, Alex mysqlstud...@gmail.com wrote:
I'm trying to match a pattern in a header_checks pcre file and can't
figure out why it's not matching. In /etc/postfix/header_checks.pcre,
I have:
/^From:.*exampleuser@gmail\.com$/ REJECT
That regular expression matches
El 18/08/15 a las 16:15, Alex escribió:
Hi,
I'm trying to match a pattern in a header_checks pcre file and can't
figure out why it's not matching. In /etc/postfix/header_checks.pcre,
I have:
/^From:.*exampleuser@gmail\.com$/ REJECT
# postmap -q 'exampleuser'