FreeBSD 5.3, одна сетевая карта c алиасом настроена так:
ifconfig_em0="inet aaa.aaa.aaa.aaa netmask 255.255.255.0"
ifconfig_em0_alias0="inet bbb.bbb.bbb.bbb netmask 255.255.255.0"Повесил EXIM на IP bbb.bbb.bbb.bbb указав в конфиге
local_interfaces=<;127.0.0.1; \
bbb.bbb.bbb.bbb
Exim честно висит только на айпишнике bbb.bbb.bbb.bbb и принимает почту нормально.
Но ОТПРАВЛЯЕТ почту ТОЛЬКО с ааа.ааа.ааа.ааа!!!! :(
Как его заставить отправлять почту с bbb.bbb.bbb.bbb?????????????????
interface
Use: smtp
Type: string list, expanded
Default: unset
This option specifies which interface to bind to when making an outgoing SMTP call. The variables $host and $host_address refer to the host to which a connection is about to be made during the expansion of the string. Forced expansion failure, or an empty string result causes the option to be ignored. Otherwise, after expansion, the string must be a list of IP addresses, colon-separated by default, but the separator can be changed in the usual way. For example:interface = <; 192.168.123.123 ; 3ffe:ffff:836f::fe86:a061
The first interface of the correct type (IPv4 or IPv6) is used for the outgoing connection. If none of them are the correct type, the option is ignored. If interface is not set, or is ignored, the system's IP functions choose which interface to use if the host has more than one.
>interface
>Use: smtp
>Type: string list, expanded
>Default: unset
>
>
>This option specifies which interface to bind to when making an outgoing
>SMTP call. The variables $host and $host_address refer to the host
>to which a connection is about to be made during the
>expansion of the string. Forced expansion failure, or an empty string
>result causes the option to be ignored. Otherwise, after expansion, the
>string must be a list of IP addresses, colon-separated by default,
>but the separator can be changed in the usual way. For
>example:
>
> interface = <; 192.168.123.123 ; 3ffe:ffff:836f::fe86:a061
>
>The first interface of the correct type (IPv4 or IPv6) is used
>for the outgoing connection. If none of them are the correct
>type, the option is ignored. If interface is not set, or
>is ignored, the system's IP functions choose which interface to use
>if the host has more than one.В конфиг eximа
remote_smtp:
driver = smtp
interface = <; bbb.bbb.bbb.bbb
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------ добавил такую строчкуПисьма помещаются в очередь и не уходят. Сообщение в логах такое:
.[поскипано]... R=smarthost T=remote_smtp defer (-53):retry time not reached for any host
> В конфиг eximа
>
>remote_smtp:
> driver = smtp
> interface = <; bbb.bbb.bbb.bbb
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------ добавил такую строчку
>
>Письма помещаются в очередь и не уходят. Сообщение в логах такое:
>.[поскипано]... R=smarthost T=remote_smtp defer (-53):retry time not reached for any host:) :) :) Всё правильно добавил :)
С фаерволом был косяк.....