Re: [SLE] Postfix - Sandy - 1 more Q re: /etc/postfix/recepient_check



Sorry, I forgot to change the To: line to Suse..


From: "Per Jessen" <per@xxxxxxxxxxxx>
david rankin wrote:

file. I have several domains resolving to my IP. I am rejecting
certain common system names using the /etc/postfix/recipient_check
scheme Sandy suggested when my server was getting bombarded a while
back. It works great. But as I need to block more and more of these
accounts, I have to make multiple entries for each domain that points
to my server. Is there any syntax I could use in the file that would
reject mail for all domains, say for support@domain without having to
specifically list support@domain1, support@domain2, etc... in the
recipient_check file? My current recipient_check file is:

Use regular expressions.

You've presumably got something like

recipient_check = hash:/etc/postfix/recipient_check


That is correct.

Create a file called /etc/postfix/recipient_check.pcre :

/^support@[domain1|domain2|domain3....]$/ REJECT

or

/^support@/ REJECT


Then change your recipient_check= line to:

recipient_check = pcre:/etc/postfix/recipient_check.pcre

(You can use plain regex's instead if you prefer).


Per, I think you just told me exactly what I needed, but, unfortunately,
I don't seem to be smart enough to understand what it is you just told
me.... I guess the first point I don't understand is "what is the difference
between recipient_check = hash: and recipient_check = prce: ?" The second
point I'm missing is "why can't I just use the existing recepient_check file
and put "support@ reject" in there?"

man postconf says:

hash An indexed file type based on hashing. This is
available
only on systems with support for Berkeley DB databases.

pcre (read-only)
A lookup table based on Perl Compatible Regular
Expres-
sions. The file format is described in pcre_table(5).

Can't I do something similar with hash?? I don't have a clue about perl.
Assembler, Fortran, C, C++ maybe, but definately not perl.....

Thanks!


--
David C. Rankin, J.D., P.E.
RANKIN LAW FIRM, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax
www.rankinlawfirm.com
--


--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx



Relevant Pages

  • NFS locking
    ... We have a NFS server here with a fairly high load. ... lockd: server xxx.xxx.xxx.xxx not responding, ... # ACPI Support ... # CD-ROM/DVD Filesystems ...
    (Linux-Kernel)
  • NFS problems with through 2.5.x to 2.6.0-test9
    ... When the server is running the ... kernel, as a client the 2.6 series seem to work perfectly, excluding ... Interesting problem arose when I attempted switch the server's kernel to ... with and without nfsv4 support compiled in (was considering testing it at ...
    (Linux-Kernel)
  • Re: Timeout Problem after Switching a DAC unit with OSA in the z10
    ... TN3270 server is a good description for the DAC unit. ... using z/OS Communication Server IP system for TN3270 support. ... The second topic relates to your TELNETDEVICE statements. ... Somehow what you specify is converted into one of the "device-type" codes ...
    (bit.listserv.ibm-main)
  • RE: Backups, VSS and SBS2003 HELP NEEDED!!!
    ... 2K3 server currently, also, I understand that it is better to have a backup ... Support Professional can assist with your request. ... Microsoft CSS Online Newsgroup Support ... >> suggest customers Only install Windows Server 2003 SP1 on their server. ...
    (microsoft.public.windows.server.sbs)
  • RE: Sharpoint Error in SBS 2003
    ... Have you upgraded the Sharepoint WMSDE to SQL server? ... A supported hotfix is now available from Microsoft, ... contact Microsoft Product Support ... Please paste all the accurate errors information in the newsgroup. ...
    (microsoft.public.windows.server.sbs)