ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] postfix smtpd_sender_restrictions
@ 2003-10-30 12:42 Mike Lykov
  2003-10-31  3:47 ` Maxim.Savrilov
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Lykov @ 2003-10-30 12:42 UTC (permalink / raw)
  To: community

Здравствуйте.

кто подскажет?
у меня стоит postfix-1.1.13-alt0.2 на мастере 2.2 

хочу от спамеров защититься, перечислив в access.db известные мне спамерские 
хосты, и задействовав в конфиге

smtpd_serder_restrictions = hash:/etc/postfix/access_sender, warn_if_reject  

Перепробовал несколько вариантов, такое впечатление, что никакого действия мои 
изменения не оказывают.
 
в access_sender написал текст, разделенный табом (0х09)

netstderr.quantumoffers.com     550 Spammer!
client2.attbi.com       550 Spammer!

postmap на него сделал:
-rw-r--r--    1 root     root         3307 Окт 23 16:20 access_sender
-rw-r--r--    1 root     root        12288 Окт 23 16:59 access_sender.db

в файле 109 доменов перечислено, откуда постоянно спам шлют.

И - ничего! в логе, например, записей о том, что кто-то был отвергнут с 
диагнозом Spammer, нет.

То ли я чего-то не дописал, то ли спамеры исчезли ;) Второе вряд ли, а как 
насчет первого?

-- 
Mike
registered linux user #315334
jabber id: combr@jabber.ru


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] postfix smtpd_sender_restrictions
  2003-10-30 12:42 [Comm] postfix smtpd_sender_restrictions Mike Lykov
@ 2003-10-31  3:47 ` Maxim.Savrilov
  2003-10-31  7:17   ` Mike Lykov
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim.Savrilov @ 2003-10-31  3:47 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 661 bytes --]

On Thu, 30 Oct 2003 16:42:33 +0400
Mike Lykov <combr@vesna.ru> wrote:

> хочу от спамеров защититься, перечислив в access.db известные мне спамерские 
> хосты, и задействовав в конфиге
> 
> smtpd_serder_restrictions = hash:/etc/postfix/access_sender, warn_if_reject  

Вот что у меня стоит

smtpd_client_restrictions = permit_mynetworks,
                            check_client_access hash:/etc/postfix/access,
                            reject_unknown_client,
                            reject_maps_rbl,
                            permit
-- 
No matter how subtle the wizard,
a knife in the shoulder blades will seriously cramp his style.

[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] postfix smtpd_sender_restrictions
  2003-10-31  3:47 ` Maxim.Savrilov
@ 2003-10-31  7:17   ` Mike Lykov
  2003-11-01 13:36     ` Sergey V. Golovin
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Lykov @ 2003-10-31  7:17 UTC (permalink / raw)
  To: community

В сообщении от Пятница 31 Октябрь 2003 07:47 Maxim.Savrilov@socenter.ru 
написал:

> > smtpd_serder_restrictions = hash:/etc/postfix/access_sender,
> > warn_if_reject
>
> Вот что у меня стоит
> smtpd_client_restrictions 

Так это другое. у меня sender, у вас client

# The smtpd_sender_restrictions parameter specifies optional restrictions                                 
# on sender addresses that SMTP clients can send in MAIL FROM commands.  

# The smtpd_client_restrictions parameter specifies optional restrictions                                 
# on SMTP client host names and addresses. 

вот я и хочу - как только мне кто-то сказал MAIL FROM запрещенного хоста, ему 
в ответ 550 Spammer!

а не работает - пропускает

-- 
Mike
registered linux user #315334
jabber id: combr@jabber.ru


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] postfix smtpd_sender_restrictions
  2003-10-31  7:17   ` Mike Lykov
@ 2003-11-01 13:36     ` Sergey V. Golovin
  0 siblings, 0 replies; 4+ messages in thread
From: Sergey V. Golovin @ 2003-11-01 13:36 UTC (permalink / raw)
  To: community

* Mike Lykov <combr@vesna.ru> [31 Oct Fri 11:17]
> В сообщении от Пятница 31 Октябрь 2003 07:47 Maxim.Savrilov@socenter.ru 
> написал:
> 
> > > smtpd_serder_restrictions = hash:/etc/postfix/access_sender,
> > > warn_if_reject
> >

Может быть,

check_sender_access hash:/etc/postfix/access_sender

?

Возможно, нужно еще обратить внимание на 

Reject if result is REJECT or "[45]xx text"
Permit if result is OK or all numerical.

-- 
Sergey V. Golovin



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-11-01 13:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 12:42 [Comm] postfix smtpd_sender_restrictions Mike Lykov
2003-10-31  3:47 ` Maxim.Savrilov
2003-10-31  7:17   ` Mike Lykov
2003-11-01 13:36     ` Sergey V. Golovin

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git