This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
протокол_smtp_и_mail_transfer_agent [2009/07/15 10:42] val |
протокол_smtp_и_mail_transfer_agent [2010/06/09 13:47] val |
||
---|---|---|---|
Line 49: | Line 49: | ||
=== Ubuntu (postfix) === | === Ubuntu (postfix) === | ||
<code> | <code> | ||
- | root@gate:~# apt-get install postfix mailx | + | root@gate:~# apt-get install postfix mailutils |
General type of mail configuration: Internet Site | General type of mail configuration: Internet Site | ||
System mail name: gate.corpX.un | System mail name: gate.corpX.un | ||
Line 128: | Line 128: | ||
corpX.un | corpX.un | ||
- | [gate:/etc/mail] # make cf | ||
[gate:/etc/mail] # make install | [gate:/etc/mail] # make install | ||
Line 205: | Line 204: | ||
> mynetworks = 127.0.0.0/8 192.168.13.0/24 | > mynetworks = 127.0.0.0/8 192.168.13.0/24 | ||
</code> | </code> | ||
- | |||
==== Настройка MTA на релеинг почты домена server.corpX.un ==== | ==== Настройка MTA на релеинг почты домена server.corpX.un ==== | ||
Line 218: | Line 216: | ||
</code> | </code> | ||
- | Примечание: | + | Альтернативы: |
- | Использование DNS View позволяет для внешних хостов указывать один почтовый сервер, а внутри другой. Это позволит обойтись без задержек при отправке почты. | + | * Использование DNS View позволяет для внешних хостов указывать один почтовый сервер, а внутри другой. |
+ | * /etc/mail/mailertable позволяет явно переправить почту с gate на server | ||
=== Запуск MTA почтового домена server.corpX.un (FreeBSD) === | === Запуск MTA почтового домена server.corpX.un (FreeBSD) === | ||
Line 233: | Line 232: | ||
<code> | <code> | ||
[gate:/etc/mail] # cat access | [gate:/etc/mail] # cat access | ||
+ | ... | ||
server.corpX.un RELAY | server.corpX.un RELAY | ||
[gate:/etc/mail] # make maps | [gate:/etc/mail] # make maps | ||
</code> | </code> | ||
+ | |||
+ | Попробовать команду hoststat | ||
+ | |||
+ | Попробовать To:server.corpX.un RELAY | ||
+ | |||
+ | Для решения этой задачи можно использовать /etc/mail/relay-domains | ||
=== Настройка MTA релея postfix (Ubuntu) === | === Настройка MTA релея postfix (Ubuntu) === | ||
Line 263: | Line 269: | ||
<code> | <code> | ||
... | ... | ||
- | root: root, root@gate.isp.un | + | root: student, val@gate.isp.un |
... | ... | ||
</code><code> | </code><code> | ||
Line 321: | Line 327: | ||
[gate:/etc/mail] # cat gate.corpX.un.mc | [gate:/etc/mail] # cat gate.corpX.un.mc | ||
OSTYPE(freebsd6) | OSTYPE(freebsd6) | ||
- | FEATURE(`use_cw_file') | + | FEATURE(use_cw_file) |
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access') | FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access') | ||
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') | FEATURE(virtusertable, `hash -o /etc/mail/virtusertable') | ||
Line 331: | Line 337: | ||
[gate:/etc/mail] # make maps | [gate:/etc/mail] # make maps | ||
- | [gate:/etc/mail] # make cf | ||
[gate:/etc/mail] # make install | [gate:/etc/mail] # make install | ||
[gate:/etc/mail] # /etc/rc.d/sendmail restart | [gate:/etc/mail] # /etc/rc.d/sendmail restart | ||
Line 359: | Line 364: | ||
gate# mail –u mailuser | gate# mail –u mailuser | ||
</code> | </code> | ||
- |