LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-31-2008, 02:25 PM   #1
utahnix
Member
 
Registered: Dec 2006
Location: Utah, USA
Distribution: openSUSE
Posts: 72

Rep: Reputation: 15
Postfix PCRE support in SLES 10


Okay, here's the situation:

I have a SLES 10 SP1 server. Among other things, it does mail. I have a fairly standard Postfix + Cyrus + Amavis + SpamAssassin + ClamAV setup.

I'm trying to get Postfix to let me use PCRE lookup tables for the header_checks filter (in particular, to block various attachments).

The problem is, my Postfix doesn't seem to support PCRE. When I type postconf -m, I get several results, but pcre isn't one of them. Yes, I have regexp, but POSIX regular expressions don't help me in this situation.

All of the PCRE packages are installed. Even the postfix package itself shows it provides dict_pcre.so()(64bit). I'm not quite sure if that means Postfix was compiled with PCRE support, but it sure looks that way to me.

So yes, I have a Novell SUSE Linux Enterprise 10 server, but our support only gives us security updates and bug fixes. We don't get incident support in our support contract, and we can't afford to pay them a wad of money to tell us whether or not Novell's Postfix has PCRE support (we're a small operation).

So what do you think? Where should I go from here?
 
Old 04-01-2008, 07:33 AM   #2
tuliojm
LQ Newbie
 
Registered: Mar 2008
Location: Curitiba
Posts: 18

Rep: Reputation: 2
Re: Postfix PCRE support in SLES 10

Hi,

unfortunately, I cannot find the source package from your exactly version.
But checking in the update packages from SLES 10.2, seems to have pcre support.
Check if the file /usr/lib/postfix/dict_pcre.so exists.
Anyway, postconf -m must show pcre extension, I guess.

You could do a quick test creating a rule as below (you don't need to stop the service):

- create the file /etc/postfix/pcre_test:
/^Subject: test/ REJECT

- and execute:

postmap -q "Subject: test" pcre:/etc/postfix/pcre_test

If the word "REJECT" appears, pcre extension is working.

Regards
 
Old 04-01-2008, 11:27 PM   #3
utahnix
Member
 
Registered: Dec 2006
Location: Utah, USA
Distribution: openSUSE
Posts: 72

Original Poster
Rep: Reputation: 15
I did as you suggested and I get this:

postmap: fatal: dict_open: unsupported dictionary type: pcre: Is the postfix-pcre package installed?

But according to YaST, there is no postfix-pcre package to install. I'm confused!!!
 
Old 04-02-2008, 10:08 PM   #4
utahnix
Member
 
Registered: Dec 2006
Location: Utah, USA
Distribution: openSUSE
Posts: 72

Original Poster
Rep: Reputation: 15
It's fixed. My dynamicmaps.cf was empty. I restored the originals and postmapped dynamicmaps.cf and it works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to load sles in redhat platform using sles image created in nfs server AshishNsearch Red Hat 0 03-28-2008 12:12 AM
Initialized SLES 8 update over OES SLES 9 SP2 by mistake. Kamenko SUSE / openSUSE 4 03-13-2007 05:21 AM
LXer: IBM to support SLES 10, Xen LXer Syndicated Linux News 0 07-26-2006 08:54 PM
Support for swedish characters (se_SV.iso88591) in SuSE SLES? tlwc SUSE / openSUSE 5 12-15-2005 10:09 AM
USB Keyboard Support SLES 9 ch4os SUSE / openSUSE 0 03-03-2005 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration