Re: [SLE] Postfix - Sandy - 1 more Q re: /etc/postfix/recepient_check
- From: Per Jessen <per@xxxxxxxxxxxx>
- Date: Thu, 23 Feb 2006 16:07:46 +0100
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
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 Jessen
--
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
- Follow-Ups:
- Re: [SLE] Postfix - Sandy - 1 more Q re: /etc/postfix/recepient_check
- From: david rankin
- Re: [SLE] Postfix - Sandy - 1 more Q re: /etc/postfix/recepient_check
- References:
- [SLE] Postfix - Sandy - 1 more Q re: /etc/postfix/recepient_check
- From: david rankin
- [SLE] Postfix - Sandy - 1 more Q re: /etc/postfix/recepient_check
- Prev by Date: Re: [SLE] One Suse 10 (retail Box) For Multiple Installation In Private Organisa
- Next by Date: Re: [SLE] Amarok 1.4.0 on SuSE 9.3
- Previous by thread: [SLE] Postfix - Sandy - 1 more Q re: /etc/postfix/recepient_check
- Next by thread: Re: [SLE] Postfix - Sandy - 1 more Q re: /etc/postfix/recepient_check
- Index(es):
Relevant Pages
|