ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Прокопьев Евгений" <john@rmts.donpac.ru>
To: community@altlinux.ru
Subject: [Comm] Postfix open relay
Date: Sun, 20 Apr 2003 21:22:34 +0400
Message-ID: <3EA2D75A.2090002@rmts.donpac.ru> (raw)

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

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

Задача элементарная: разрешить отправлять письма через мой 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")

Что делать?

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



             reply	other threads:[~2003-04-20 17:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-20 17:22 Прокопьев Евгений [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EA2D75A.2090002@rmts.donpac.ru \
    --to=john@rmts.donpac.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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