🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
4 messages
4 total messages Started by Anonymous Thu, 03 Mar 2016 16:16
postfix special characters
#280551
Author: Anonymous
Date: Thu, 03 Mar 2016 16:16
1 lines
1498 bytes
  Can someone point me to a list of the meanings of the special character used in postfix?  For instance, I think that $ means 'include anything through the end', as in "/\.jp$/           REJECT" would mean reject any tcp record containing .jp, including .jp/???.  "\" means to take the next character literally, not symbolically.  I think that these special character are called Perl escape characters.  They are apparently also used in bash.
Re: postfix special characters
#280552
Author: Zax
Date: Thu, 03 Mar 2016 17:21
44 lines
2602 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, 3 Mar 2016 17:16:31 +0100, Anonymous wrote in
Message-Id: <41968266769afef02bd32c0a0fd7e2cf@hoi-polloi.org>:

>   Can someone point me to a list of the meanings of the special
>   character used in postfix?  For instance, I think that $ means
>   'include anything through the end', as in "/\.jp$/           REJECT"
>   would mean reject any tcp record containing .jp, including .jp/???.
>   "\" means to take the next character literally, not symbolically.  I
>   think that these special character are called Perl escape
>   characters.  They are apparently also used in bash.

I think you're talking about PCRE (Perl Compatible Regular Expressions).
These are a bit complicated to learn but amazingly powerful filtering
tools.

The "$" sign means match to the end.
/\.jp$/ would only match ".jp"
/\.jp/ would match ".jpg" or indeed ".jpfoobar"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJW2HKfAAoJEC3jHKG+PvqnA84QAJPNrPCoKEy4I3opJL/EJ6ND
r5j8KqJWJ0vN9JiMNjpLSDQqm1zzkUZNwhU9W1Mpib+LwGUvPDr5483IYV0pgPHh
iFlVceg/pX8VgZiuCBcI3BTdBpPjoSZ/ZBO6lAkkdkCx479FzH0V88M8wA5JobJp
F3so3Be3j5j7AoS04s4nAcX9oM08FmfytebjGjmnY/pEEurvR5flk1KnFksFkU6e
lhIave81O9KwyW0W5ErFCUwxXGa93BCdujeZX12mL3Po6AaW82i8UqgQVPPxgr99
oxSpmTnKPJu+eLmjqBmScDBAv0fK0d54f2OBknaO7PvyQ4N4n9jycOKmREVKNekM
GfoTQsWHxnuyQlvNDmg46GMT+J6D2iKb2DoKpZgP0fvj3jZpnxgyCgEcYFiYbpmg
4HpjIrFPC0dvywM1Rk50urPtlRFPxnnVnTS8ExKQFRstW169tUh3VQWzvHbUySC0
fgUd7qywCfF4736L77PtzkqV/vi27ZsNilzgbQl9/kNz5GvDVEIVPWHZLAmzjhMR
lBclOsvYbWvZ3i45FEArpwQlOMVYVsVHLlrfpaOD/SnA5VZAOaKXm5fnsDW30BVb
1/NrwMTYPoOMDfE708a1K/BwW75NMNeYrRA2wlqT7C3GRFJlbZ8Ept6C8UWtQNuJ
tx7LXaYXmvH3ZXhAgM9h
=s6m0
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
sub  4096R/BE3EFAA7  created: 2014-11-14  expires: 2016-11-13  usage: S
Re: postfix special characters
#280559
Author: Jeremy Bentham
Date: Fri, 04 Mar 2016 00:35
31 lines
2153 bytes
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On Thu, 3 Mar 2016 17:16:31 +0100, Anonymous wrote in
> Message-Id: <41968266769afef02bd32c0a0fd7e2cf@hoi-polloi.org>:
> 
> 
>>   Can someone point me to a list of the meanings of the special
>>   character used in postfix?  For instance, I think that $ means
>>   'include anything through the end', as in "/\.jp$/           REJECT"
>>   would mean reject any tcp record containing .jp, including .jp/???.
>>   "\" means to take the next character literally, not symbolically.  I
>>   think that these special character are called Perl escape
>>   characters.  They are apparently also used in bash.
> 
> I think you're talking about PCRE (Perl Compatible Regular Expressions).
> These are a bit complicated to learn but amazingly powerful filtering
> tools.
> 
> The "$" sign means match to the end.
> /\.jp$/ would only match ".jp"
> /\.jp/ would match ".jpg" or indeed ".jpfoobar"

  Yes and I found this here: http://perldoc.perl.org/perlre.html

That answered my question though.  I thought that
/\.jp*/ matched ".jpg" or ".jpfoobar".  Possibly both
work that way.  What I find really lousy is not all postfix types
of restriction will allow PCRE and it is somewhat hard to find
which ones will.
Re: postfix special characters
#280573
Author: Zax
Date: Fri, 04 Mar 2016 09:19
50 lines
2948 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Fri,  4 Mar 2016 01:35:42 +0100 (CET), Jeremy Bentham wrote in
Message-Id: <249fa54de817b638fc54790b73e9e5f9@anemone.mooo.com>:

>> I think you're talking about PCRE (Perl Compatible Regular Expressions).
>> These are a bit complicated to learn but amazingly powerful filtering
>> tools.
>> 
>> The "$" sign means match to the end.
>> /\.jp$/ would only match ".jp"
>> /\.jp/ would match ".jpg" or indeed ".jpfoobar"
>
>   Yes and I found this here: http://perldoc.perl.org/perlre.html
>
> That answered my question though.  I thought that
> /\.jp*/ matched ".jpg" or ".jpfoobar".  Possibly both
> work that way.  What I find really lousy is not all postfix types
> of restriction will allow PCRE and it is somewhat hard to find
> which ones will.

Postfix is a very mature product.  If it doesn't accept regexs for a
specific setting, there's probably a good reason.  Some tests are
expensive in terms of processing time, such as body_checks.  Unless
there's a really pressing need for them, it's better to do that kind of
thing outside the MTA.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJW2VMSAAoJEC3jHKG+PvqnZ8EQAKDJTucxyx8uR/UjxnvhCEUF
2PS5tf36FeC+9zqtscCHmL2eNNfcxKvzd75rsuGEl2An838IVsK2xM8v6NO69U0j
4MvDSKg0VaDdIvr03iz26xGTRnFUbsJCbcAijuhb8zVjoq12k982x4T3pC68bZex
8LSaK8/eFDwSQeCr9rNB3ldaQAIKyYMQi+litHw8XPJsxMc45L8N2MIJyK+ir2sV
ClwFsFgAbk3nByzds2xW1RLdO841wI96FzOzJlchDNH1pK1FFOb+gAganqPqzhnw
8MnD2enCuDW+gBKa1crhF/CAdzVd0DszpTBvghapOVS8WVaj68J1xBr67PlIYkc8
LguKZz0ouvTMZu4AV9evkDQ6LEFyd7L19f2Sz80B/tRuFvUpvcWjUH/N2/zK7Sll
AQVpS3Mfk7ZEUpqUA/x6Jxq1N0AMRXkCoaQ+LcdkHnM8xRRnig9vuszSQzrnolCZ
cm7Nb/GQ5ws5h6QRn+WceMhCoQqlqorlC3rKZOWMorBUT5RHfuyUaug8FTW9JMnO
TocBNUzyT89ubHwWojH71alQ8Vcu1Y36pLY1S83SxXx7WXmpEZ+Tbfrr6KcpCgMH
X8L+r1LLM9z/NgvUl62EKekxeM0xgrm7lQ2hNOOVRTWMZQQLOsjeVkblzc2yErl2
uTSSnFVHDq4lw6XVeUvz
=QkfD
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
sub  4096R/BE3EFAA7  created: 2014-11-14  expires: 2016-11-13  usage: S
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads