|
ru.linux- RU.LINUX --------------------------------------------------------------------- From : Yuriy Talakan' 2:5042/13 14 Aug 2007 09:10:16 To : Andrew V. Scherbacov Subject : отправлять почту с указанного IP-адреса --------------------------------------------------------------------------------
13 Aug 07 17:56, you wrote to all:
AS> Задача - принимать и ОТПРАВЛЯТЬ почту только с адреса x.y.z.w.
AS> Первая часть задачи легко решается прописываением данного адреса в
AS> inet_interfaces, а вот как решить вторую часть - не понимаю.
http://www.postfix.org/postconf.5.html#smtp_bind_address
======
smtp_bind_address (default: empty)
An optional numerical network address that the Postfix SMTP client should bind
to when making an IPv4 connection.
This can be specified in the main.cf file for all SMTP clients, or it can be
specified in the master.cf file for a specific client, for example:
/etc/postfix/master.cf:
smtp ... smtp -o smtp_bind_address=11.22.33.44
Note 1: when inet_interfaces specifies no more than one IPv4 address, and that
address is a non-loopback address, it is automatically used as the
smtp_bind_address. This supports virtual IP hosting, but can be a problem on
multi-homed firewalls. See the inet_interfaces documentation for more detail.
Note 2: address information may be enclosed inside [], but this form is not
required here.
======
Если верить Note1, прописывание единственного адреса в inet_interfaces
автоматически решает обе части задачи.
Yuriy
--- chubais@sveta.net
* Origin: -=*Cool YurTa*=- (2:5042/13)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.linux/179946c0e568.html, оценка из 5, голосов 10
|