* [Comm] Postfix -- access
@ 2005-04-05 21:05 Jury Levykin
2005-04-06 5:03 ` Mike Lykov
0 siblings, 1 reply; 7+ messages in thread
From: Jury Levykin @ 2005-04-05 21:05 UTC (permalink / raw)
To: community
ALM 2.4
Я хочу разрешить принимать писма некоторым пользователям
если только они были отправлены из mynetworks, в других случаях отвергать.
В main.cf я добавил строку:
smtpd_client_restrictions = permit_mynetworks, hash:/etc/postfix/access
В /etc/postfix/access одна строка:
username@ REJECT
Выполняю:
# postmap /etc/postfix/access
# service postfix restart
Отправляю письмо с внешнего SMTP на username@mydomain.ru, письмо
принимается.
Что я делаю неправильно?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Postfix -- access
2005-04-05 21:05 [Comm] Postfix -- access Jury Levykin
@ 2005-04-06 5:03 ` Mike Lykov
2005-04-06 6:18 ` Jury Levykin
0 siblings, 1 reply; 7+ messages in thread
From: Mike Lykov @ 2005-04-06 5:03 UTC (permalink / raw)
To: community
В сообщении от Среда 06 Апрель 2005 02:05 Jury Levykin написал:
> В main.cf я добавил строку:
> smtpd_client_restrictions = permit_mynetworks, hash:/etc/postfix/access
> В /etc/postfix/access одна строка:
> username@ REJECT
а что вообще должно быть в этом файле? может, ip-адреса?
--
Mike Lykov
Samara, "Vesna" parfum company, System administrator
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Postfix -- access
2005-04-06 5:03 ` Mike Lykov
@ 2005-04-06 6:18 ` Jury Levykin
2005-04-06 6:42 ` Mike Lykov
0 siblings, 1 reply; 7+ messages in thread
From: Jury Levykin @ 2005-04-06 6:18 UTC (permalink / raw)
To: community
Mike Lykov пишет:
>В сообщении от Среда 06 Апрель 2005 02:05 Jury Levykin написал:
>
>
>
>>В main.cf я добавил строку:
>>smtpd_client_restrictions = permit_mynetworks, hash:/etc/postfix/access
>>В /etc/postfix/access одна строка:
>>username@ REJECT
>>
>>
>
>а что вообще должно быть в этом файле? может, ip-адреса?
>
>
Судя по man 5 access
там могут быть почтовые адреса, домены, сети и ip-адреса.
Но почему на почтовый адрес система не реагирует я понять не могу.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Postfix -- access
2005-04-06 6:18 ` Jury Levykin
@ 2005-04-06 6:42 ` Mike Lykov
2005-04-06 7:11 ` Jury Levykin
0 siblings, 1 reply; 7+ messages in thread
From: Mike Lykov @ 2005-04-06 6:42 UTC (permalink / raw)
To: community
В сообщении от Среда 06 Апрель 2005 11:18 Jury Levykin написал:
> >>smtpd_client_restrictions
> Судя по man 5 access
> там могут быть почтовые адреса, домены, сети и ip-адреса.
> Но почему на почтовый адрес система не реагирует я понять не могу.
а судя по документации на "smtpd_client_restrictions" ?
Я точно не помню, какой за что, но их там много.
--
Mike Lykov
Samara, "Vesna" parfum company, System administrator
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Postfix -- access
2005-04-06 6:42 ` Mike Lykov
@ 2005-04-06 7:11 ` Jury Levykin
2005-04-06 7:53 ` Mike Lykov
0 siblings, 1 reply; 7+ messages in thread
From: Jury Levykin @ 2005-04-06 7:11 UTC (permalink / raw)
To: community
Mike Lykov пишет:
>>Судя по man 5 access
>>там могут быть почтовые адреса, домены, сети и ip-адреса.
>>Но почему на почтовый адрес система не реагирует я понять не могу.
>>
>>
>
>а судя по документации на "smtpd_client_restrictions" ?
>Я точно не помню, какой за что, но их там много.
>
>
Заменил параметр на:
smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access
Postfix перезапустился нормально но после попытки отправить письмо вижу
следующее:
------------------
Apr 6 11:04:12 jsrv postfix/smtpd[29888]: fatal: parameter
"smtpd_recipient_restrictions": specify at l
east one working instance of: check_relay_domains,
reject_unauth_destination, reject, defer or defer_if_
permit
Apr 6 11:04:13 jsrv postfix/master[29835]: warning: process
/usr/lib/postfix/smtpd pid 29888 exit statu
s 1
Apr 6 11:04:13 jsrv postfix/master[29835]: warning:
/usr/lib/postfix/smtpd: bad command startup -- thro
ttling
-----------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Comm] Postfix -- access
2005-04-06 7:11 ` Jury Levykin
@ 2005-04-06 7:53 ` Mike Lykov
2005-04-06 10:51 ` Jury Levykin
0 siblings, 1 reply; 7+ messages in thread
From: Mike Lykov @ 2005-04-06 7:53 UTC (permalink / raw)
To: community
В сообщении от Среда 06 Апрель 2005 12:11 Jury Levykin написал:
> Заменил параметр на:
> smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access
мало
> Apr 6 11:04:12 jsrv postfix/smtpd[29888]: fatal: parameter
> "smtpd_recipient_restrictions": specify at l
> east one working instance of: check_relay_domains,
> reject_unauth_destination, reject, defer or defer_if_
> permit
перевод - должен присутствовать один из параметров:
" check_relay_domains, reject_unauth_destination, reject, defer or defer_if_
permit"
у меня
smtpd_recipient_restrictions = check_sender_access,
hash:/etc/postfix/restricted_senders,
permit_sasl_authenticated,permit_mynetworks, reject_invalid_hostname,
reject_rbl_client relays.ordb.org,
reject_rbl_client dul.ru,
reject_rbl_client opm.blitzed.org,
reject_unauth_destination
--
Mike Lykov
Samara, "Vesna" parfum company, System administrator
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-04-06 10:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-05 21:05 [Comm] Postfix -- access Jury Levykin
2005-04-06 5:03 ` Mike Lykov
2005-04-06 6:18 ` Jury Levykin
2005-04-06 6:42 ` Mike Lykov
2005-04-06 7:11 ` Jury Levykin
2005-04-06 7:53 ` Mike Lykov
2005-04-06 10:51 ` Jury Levykin
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