ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Postfix open relay
@ 2003-04-20 17:22 Прокопьев Евгений
  2003-04-20 16:34 ` Ilya Palagin
  0 siblings, 1 reply; 7+ messages in thread
From: Прокопьев Евгений @ 2003-04-20 17:22 UTC (permalink / raw)
  To: community

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

Я скорее всего не понимаю каких-то простых вещей, потому что такого 
просто не может быть, но так и есть.

Задача элементарная: разрешить отправлять письма через мой SMTP только 
для localhost.

В main.cf по этому поводу написано следующее:

# cat main.cf | grep mynetworks
# The mynetworks parameter specifies the list of "trusted" SMTP
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
# mynetworks list by hand, as described below.
# Specify "mynetworks_style = host" when Postfix should "trust"
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
mynetworks = 127.0.0.1/32
# - from "trusted" clients whose IP address matches $mynetworks,
#   permit_mynetworks: permit if the client address matches $mynetworks.
smtpd_etrn_restrictions = permit_mynetworks, reject
#   permit_mynetworks: permit if the client address matches $mynetworks.
# smtpd_client_restrictions = permit_mynetworks, reject

Вместо mynetworks = 127.0.0.1/32 первоначально была раскомментирована 
строка #mynetworks = $config_directory/mynetworks, а в файле 
$config_directory/mynetworks было написано 127.0.0.1/32. Я поменял шило 
на мыло просто от отчаяния.

Вот что происходит при отправлении письма не через localhost:

Apr 20 16:49:38 myserver postfix/smtpd[4601]: connect from 
myserver.ru[80.80.122.40]
Apr 20 16:49:38 myserver postfix/smtpd[4601]: 88339343: 
client=myserver.ru[80.80.122.40]
Apr 20 16:49:38 myserver postfix/cleanup[4602]: 88339343: 
message-id=<Pine.LNX.4.53L.0304201649220.4600@myserver.ru>
Apr 20 16:49:38 myserver postfix/qmgr[4596]: 88339343: 
from=<john@myserver.ru>, size=408, nrcpt=1 (queue active)
Apr 20 16:49:38 myserver postfix/smtpd[4601]: disconnect from 
myserver.ru[80.80.122.40]
Apr 20 16:49:38 myserver postfix/local[4605]: 88339343: 
to=<tatiana@myserver.ru>, relay=local, delay=0, status=sent 
("|/usr/bin/procmail -a $DOMAIN -d $LOGNAME")

Что делать?

-- 
С уважением, Прокопьев Евгений



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

end of thread, other threads:[~2003-04-21  7:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-20 17:22 [Comm] Postfix open relay Прокопьев Евгений
2003-04-20 16:34 ` Ilya Palagin
2003-04-21  4:49   ` Прокопьев Евгений
2003-04-21  5:36     ` Прокопьев Евгений
2003-04-21  5:13       ` Aleks Silin
2003-04-21  7:06         ` Прокопьев Евгений
2003-04-21  7:57           ` Aleks Silin

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