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 [2024/05/02 15:06]
val [Настройка MTA на релеинг почты на основе аутентификации]
сервис_mta [2026/07/20 16:11] (current)
val [Установка и настройка MTA на обработку почты домена hostname]
Line 6: Line 6:
  
   * [[https://​www.ndchost.com/​wiki/​mail/​test-smtp-auth-telnet|How to Test SMTP AUTH using Telnet]]   * [[https://​www.ndchost.com/​wiki/​mail/​test-smtp-auth-telnet|How to Test SMTP AUTH using Telnet]]
 +  * [[Средства программирования shell#​Отправка email с вложениями]] из bash
 +  * [[Утилита msmtp#​Утилита mail без mta]]
  
 <​code>​ <​code>​
Line 33: Line 35:
 === Debian/​Ubuntu (postfix) === === Debian/​Ubuntu (postfix) ===
 <​code>​ <​code>​
 +root@server:​~#​ echo "​postfix postfix/​main_mailer_type string '​Internet Site'"​ | debconf-set-selections
 +  или
 root@server:​~#​ debconf-set-selections <<<​ "​postfix postfix/​main_mailer_type string '​Internet Site'"​ root@server:​~#​ debconf-set-selections <<<​ "​postfix postfix/​main_mailer_type string '​Internet Site'"​
 root@server:​~#​ debconf-set-selections <<<​ "​postfix postfix/​mailname string corpX.un"​ root@server:​~#​ debconf-set-selections <<<​ "​postfix postfix/​mailname string corpX.un"​
 +
 +root@server:​~#​ debconf-show postfix
  
 root@server:​~#​ apt install postfix root@server:​~#​ apt install postfix
Line 244: Line 250:
 #for kerberos gssapi #for kerberos gssapi
 line_length_limit = 8192 line_length_limit = 8192
-</​code><​code>​+</​code>​ 
 + 
 +[[Thunderbird]] и [[Web интерфейс к почте#​Roundcube]] используют 587-й порт 
 +<​code>​
 # cat /​etc/​postfix/​master.cf # cat /​etc/​postfix/​master.cf
 </​code><​code>​ </​code><​code>​
 ... ...
 smtp      inet  n       ​- ​      ​y ​      ​- ​      ​- ​      smtpd smtp      inet  n       ​- ​      ​y ​      ​- ​      ​- ​      smtpd
-465       ​inet ​ n       ​- ​      ​y ​      ​- ​      ​- ​      smtpd 
 587       ​inet ​ n       ​- ​      ​y ​      ​- ​      ​- ​      smtpd 587       ​inet ​ n       ​- ​      ​y ​      ​- ​      ​- ​      smtpd
 ... ...
Line 362: Line 370:
 # postconf -e '​smtpd_banner = $myhostname ESMTP $mail_name (Windows 2008R2)'​ # postconf -e '​smtpd_banner = $myhostname ESMTP $mail_name (Windows 2008R2)'​
  
-# ###service postfix reload+# service postfix reload
 </​code>​ </​code>​
  
Line 387: Line 395:
 ==== Postfix ==== ==== Postfix ====
 <​code>​ <​code>​
 +# mailq
 +# postqueue -f
 +
 # mailq | grep apache@hoster.bmstu.ru | grep '​*'​ | cut -d'​*'​ -f 1 | postsuper -d - # mailq | grep apache@hoster.bmstu.ru | grep '​*'​ | cut -d'​*'​ -f 1 | postsuper -d -
 </​code>​ </​code>​
  
сервис_mta.1714651607.txt.gz · Last modified: 2024/05/02 15:06 by val