70行目 コメント解除 使用するホスト名に変更
#myhostname = virtual.domain.tld
↓
myhostname = mail.vps-tora.com
77行目 コメント解除 使用するドメインに変更
#mydomain = domain.tld
↓
mydomain = vps-tora.com
93行目 コメント解除
#myorigin = $mydomain
↓
myorigin = $mydomain
110行目 localhostをallに変更
inet_interfaces = localhost
↓
inet_interfaces = all
410行目 コメント解除
#home_mailbox = Maildir/
↓
home_mailbox = Maildir/
560行目 コメント解除 $mail_nameをunknownに変更
#smtpd_banner = $myhostname ESMTP $mail_name
↓
smtpd_banner = $myhostname ESMTP unknown
最終行へ追記
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
Stopping saslauthd: [ OK ]
Starting saslauthd: [ OK ]
Shutting down sm-client: [ OK ]
Shutting down sendmail: [ OK ]
There are 2 programs which provide ‘mta’.
Selection Command
———————————————–
*+ 1 /usr/sbin/sendmail.sendmail
2 /usr/sbin/sendmail.postfix
Enter to keep the current selection[+], or type selection number: 2 ←2を入力
Starting postfix: [ OK ]
20行目 コメント解除 pop3 pop3sを削除
#protocols = imap imaps pop3 pop3s
↓
protocols = imap imaps
211行目 コメント解除 maildir:~/Maildirを追加
#mail_location =
↓
mail_location = maildir:~/Maildir
Starting Dovecot Imap: [ OK ]