User Tools

Site Tools


протокол_smtp_и_mail_transfer_agent

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
протокол_smtp_и_mail_transfer_agent [2009/06/17 15:01]
val
протокол_smtp_и_mail_transfer_agent [2010/09/27 13:27]
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 161: Line 160:
 === postfix (Ubuntu) === === postfix (Ubuntu) ===
 <​code>​ <​code>​
-root@server:​~#​ apt-get install postfix ​mailx+root@server:​~#​ apt-get install postfix ​mailutils
   General type of mail configuration:​ Internet Site   General type of mail configuration:​ Internet Site
   System mail name: server.corpX.un   System mail name: server.corpX.un
Line 184: Line 183:
 [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'​)
 MAILER(local) MAILER(local)
Line 193: Line 192:
  
 [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 206: 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 219: Line 216:
 </​code>​ </​code>​
  
-Примечание+Альтернативы
-Использование DNS View позволяет для внешних хостов указывать один почтовый сервер,​ а внутри другой. ​Это ​позволит обойтись без задержек при ​отправке ​почты.+  ​* ​Использование DNS View позволяет для внешних хостов указывать один почтовый сервер,​ а внутри другой. 
 +  * /​etc/​mail/​mailertable ​позволяет явно переправить почту с gate на server
  
 === Запуск MTA почтового домена server.corpX.un (FreeBSD) === === Запуск MTA почтового домена server.corpX.un (FreeBSD) ===
Line 234: 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 264: Line 269:
 <​code>​ <​code>​
 ... ...
-root: rootroot@gate.isp.un+root: studentval@gate.isp.un
 ... ...
 </​code><​code>​ </​code><​code>​
Line 281: Line 286:
 ... ...
 server ​     A       ​192.168.X.10 server ​     A       ​192.168.X.10
-        ​MX   ​2 ​ gate.corpX.un.+            ​MX   ​2 ​ gate
 ... ...
 </​code>​ </​code>​
Line 322: 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 332: 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 360: Line 364:
 gate# mail –u mailuser gate# mail –u mailuser
 </​code>​ </​code>​
-