Questions tagged [pcre]
44 questions
2
votes
1 answer
postfix HOLD Recieved non authenticated
i'm wondering if is possibile to put on hold emails that not have authenticated in Recieved header .
i've tryed with a simple negate operazione with pcre
!/^Received:.*Authenticated*/ HOLD
but don't works , nothing is mentioned about negation in…
![](../../users/profiles/181882.webp)
user147967
- 21
- 2
2
votes
3 answers
Postfix: postmap error with pcre
I am using postfix-pcre on debian linux.
When I run postmap /etc/postfix/smtp_header_checks.pcre and postmap pcre:/etc/postfix/smtp_header_checks.pcre, I get the following error:
postmap: warning: smtp_header_checks.pcre, line 1: record is in "key:…
![](../../users/profiles/78702.webp)
Mike Pennington
- 8,266
- 9
- 41
- 86
1
vote
0 answers
clamav installation with pcre in Amazon Linux
When we install ClamAV in our Amazon Linux ElasticBeanstalk instance with yum install clamav it gets installed without PCRE support, although the libraries are present in the instance.
LibClamAV Warning: cli_loadldb: logical signature for…
![](../../users/profiles/46872.webp)
arod
- 542
- 6
- 19
1
vote
1 answer
dict_pcre.so missing on debian
I've installed postfix as I normally do, using apt-get install postfix, but for some reason it's not including dict_pcre.so in the install. Is there something I've overlooked, or rather how and where do I get this missing package to install with my…
![](../../users/profiles/257735.webp)
Dick Faps
- 13
- 2
1
vote
2 answers
Varnish installer cannot find PCRE when it is already installed
I am trying to install Varnish-Cache 4 on my Mac OS X 10.9.3.
But I get this error:
checking for PCRE... no
configure: error: Package requirements (libpcre) were not met:
No package 'libpcre' found
Consider adjusting the PKG_CONFIG_PATH…
![](../../users/profiles/83602.webp)
jnbdz
- 897
- 5
- 22
- 43
1
vote
2 answers
postfix pcre conditional REPLACE
I need to modify the "From:" header line in incoming e-mail messages only if "Message-Id:" starts with a defined string. So in main.cf I put:
header_checks = pcre:/etc/postfix/header_checks
and header_checks file contains:
if /^Message-Id:…
![](../../users/profiles/71537.webp)
Gabriele
- 331
- 1
- 4
- 13
1
vote
4 answers
greping multiple lines from MySql binlog
I have binlog from MySQL and I need to output certain time frame into a seperate file, how would I do that?
here is sample of what binlog file contains:
# at 460
#130120 0:09:17 server id 1 end_log_pos 487 Xid = 79514636
COMMIT/*!*/;
# at…
![](../../users/profiles/10683.webp)
alexus
- 12,342
- 27
- 115
- 173
1
vote
2 answers
Postfix, sender_bcc - send copy on multiple adress
I have sender_bcc_maps = pcre:/etc/postfix/conf/sender_bcc in my postfix
in this file I have rules such as
/foo@bar.tld/ bcchere@bar.tld
Now i need to send blind copy to more than one email.
I tried use whitespace and comma as delimeter, but…
![](../../users/profiles/115634.webp)
DominikM
- 117
- 1
- 1
- 4
1
vote
1 answer
PCRE isn't UTF8 enabled
I am attempting to run a regex on my site, and I am getting this response:
Compilation failed: support for \P,
\p, and \X has not been compiled at
offset 1
After googling for a bit, I've found that apparently my PCRE on my server is not UTF8…
![](../../users/profiles/26546.webp)
johnnietheblack
- 461
- 2
- 5
- 11
1
vote
2 answers
nginx stream map with wildcard
I am really bad with regex. I am trying to do this in nginx:
stream {
map $ssl_preread_server_name $name {
api.dom1.com dom1_backend;
*.dom2.com dom2_backend;
}
upstream dom1_backend {
server api.dom1.com:443;
…
![](../../users/profiles/578603.webp)
abubin
- 11
- 3
0
votes
1 answer
How to match nginx location block for non-whitespace character
I'm trying to configure a workaround for google's WontFix search behavior in nginx by having a simple subfolder for my searches.
So far this is what I have.
location ~* ^/search/(.*\..*)$ {
return 307 http://$1;
}
location ~* ^/search/(.*)$…
![](../../users/profiles/200560.webp)
Jacob Evans
- 7,636
- 3
- 25
- 55
0
votes
1 answer
Nginx: is there an advantage, real or theoretical, of using "^.+\.ext$" instead of "\.ext$" in a regular expression location block?
Is there any reason, real or theoretical, that:
location ~* ^.+\.js$ {
access_log off;
log_not_found off;
expires max;
}
would be preferable over:
location ~* \.js$ {
access_log off;
log_not_found off;
expires max;
}
I ask…
![](../../users/profiles/449841.webp)
Harold Fischer
- 269
- 3
- 8
0
votes
1 answer
Compile PHP 7.1.5 with PCRE 8.40
I tried to compile a PHP 7.1.5 with PCRE 8.40 on a legacy Ubuntu 12.04.05 LTS:
1, I compiled PCRE 8.40 from source to /usr/local/pcre.
2, configure PHP:
./configure --prefix=/usr/local/php7 --with-pcre-regex=/usr/local/pcre…
![](../../users/profiles/389283.webp)
user7257780
- 11
- 2
0
votes
1 answer
Apache location directive - PCRE negative combinations (match all but..)
Yes, I'm stuck still using apache2.2 on a system and I'm trying to use a PCRE with the apache Location directive looking for any URL not containing any images or similar. Here's some things I've tried and it just doesn't seem to do a negative…
![](../../users/profiles/364322.webp)
MikeyinTN
- 1
- 2
0
votes
2 answers
Blacklisted client: why did Postfix not reject this email?
Answer
The best answer was on the postfix-users mailing list and it is summarized here for the benefit of serverfault's users.
I had forgotten soft_bounce = yes. Always switch it back to no after validating the configuration
When asking for help…
![](../../users/profiles/105102.webp)
Yuv
- 113
- 5