Thu, 23 Feb 2006, by drankin@cox-internet.com:
Sandy, List:
I need a little more help with syntax in my /etc/postfix/recipient_check 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:
[david@bonza ~]$ cat /etc/postfix/recipient_check sales@rankin-bertin.com REJECT assistance@rankin-bertin.com REJECT [..] Is there an easier way to do this??? I plan on adding all system accounts to the file.
Sorry for barging in, but that is absolutely the wrongest way possible to do this. If you don't want mail for a user, be it local or virtual, then just do not put the user in your aliases table, /etc/passdwd file, relay_recipient_maps, local_recipient_maps, virtual_aliases_maps etc and set unknown_local_recipient_reject_code = 550. That way Postfix will tell all unknown users they're not welcome. Do *not* use a catch-all, unless you're willing to deal with the torrents of spam arriving in your mailbox. Don't forget that mail for certain accounts are mandatory to to receive, like abuse and postmaster. Theo -- Theo v. Werkhoven Registered Linux user# 99872 http://counter.li.org ICBM 52 13 26N , 4 29 47E. + ICQ: 277217131 SUSE 9.2 + Jabber: muadib@jabber.xs4all.nl Kernel 2.6.8 + See headers for PGP/GPG info. Claimer: any email I receive will become my property. Disclaimers do not apply.