User Tools

Site Tools


сервис_mta

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
сервис_mta [2020/08/31 09:31]
val [Настройка MTA на использование MTA провайдера]
сервис_mta [2023/03/09 09:34] (current)
val [Использование почтовых псевдонимов]
Line 47: Line 47:
  
 root@server:​~#​ postconf -d root@server:​~#​ postconf -d
 +</​code>​
 +
 +=== Exim ===
 +
 +!!! В конфигурации остается запрет отправлять почту на сервера с "​серыми"​ ip (на курсах)
 +
 +<​code>​
 +# dpkg-reconfigure exim4-config
 +...
 +intenet site, все остальное по умолчанию
 +...
 </​code>​ </​code>​
  
Line 111: Line 122:
 ==== Настройка MTA на релеинг почты из LAN ==== ==== Настройка MTA на релеинг почты из LAN ====
  
-=== postfix (Ubuntu) ===+=== postfix (Debian/Ubuntu) ===
 <​code>​ <​code>​
-root@server:~# cat /​etc/​postfix/​main.cf+root@gate:~# cat /​etc/​postfix/​main.cf
 </​code><​code>​ </​code><​code>​
 ... ...
Line 119: Line 130:
 ... ...
 </​code><​code>​ </​code><​code>​
-root@server:~# service postfix reload+root@gate:~# service postfix reload
 </​code>​ </​code>​
  
Line 153: Line 164:
 ... ...
 </​code><​code>​ </​code><​code>​
-root@server:​~# ​/​etc/​init.d/​postfix reload+root@server:​~# ​service ​postfix reload
 </​code>​ </​code>​
  
Line 219: Line 230:
 <​code>​ <​code>​
 # cat /​etc/​postfix/​main.cf # cat /​etc/​postfix/​main.cf
 +</​code><​code>​
 ... ...
 smtpd_tls_cert_file = /​root/​server.crt smtpd_tls_cert_file = /​root/​server.crt
Line 225: Line 237:
 ... ...
 smtpd_relay_restrictions = ... permit_sasl_authenticated ... smtpd_relay_restrictions = ... permit_sasl_authenticated ...
 +...
 smtpd_sasl_path = private/​auth smtpd_sasl_path = private/​auth
 smtpd_sasl_auth_enable = yes smtpd_sasl_auth_enable = yes
 smtpd_sasl_type = dovecot smtpd_sasl_type = dovecot
  
-...+#for kerberos gssapi 
 +line_length_limit = 8192
 </​code>​ </​code>​
  
 ==== Использование почтовых псевдонимов ==== ==== Использование почтовых псевдонимов ====
 +
 +  * [[Регистрация событий в Linux]]
  
 === Debina/​Ubuntu === === Debina/​Ubuntu ===
 <​code>​ <​code>​
 # cat /​etc/​aliases # cat /​etc/​aliases
-</​code>​ +</​code><​code>​
- +
-=== Debian/​Ubuntu === +
-<​code>​+
 ... ...
 root: userX@isp.un root: userX@isp.un
  
-nagios: userX@isp.un+# root: "​|logger -t mail-to-root -p mail.info"​ 
 + 
 +#nagios: userX@isp.un 
 +#nagios: student@corpX.un
  
 support: user1, user2 support: user1, user2
Line 251: Line 266:
 </​code><​code>​ </​code><​code>​
 # newaliases # newaliases
 +
 +# apt install logwatch
 +...
  
 # mail root # mail root
сервис_mta.1598855460.txt.gz · Last modified: 2020/08/31 09:31 by val