linux:postfix_install
文書の過去の版を表示しています。
メールサーバの構築
今回は旧学科メールサーバからの転送を受け取るだけのサーバを立てることにする。
- Postfix(SMTPサーバ)
- (imapサーバ)
Postfixのインストール
インストールはapt
一発とはいかない。(Ubuntu Serverの場合)
$ sudo apt install postfix
途中で
Package configuration ┌────────────────────────┤ Postfix Configuration ├────────────────────────┐ │ │ │ Please select the mail server configuration type that best meets your │ needs. │ │ No configuration: │ Should be chosen to leave the current configuration unchanged. │ Internet site: │ Mail is sent and received directly using SMTP. │ Internet with smarthost: │ Mail is received directly using SMTP or by running a utility such │ as fetchmail. Outgoing mail is sent using a smarthost. │ Satellite system: │ All mail is sent to another machine, called a 'smarthost', for │ delivery. │ Local only: │ The only delivered mail is the mail for local users. There is no │ network. │ │ <Ok> │ │ └─────────────────────────────────────────────────────────────────────────┘
のような選択肢が出るので、ここはNo configuration
を選択する。
Setting-up Postfix
設定ファイルは/etc/postfix/main.cf
。雛形が/usr/share/postfix
にある。
sudo cp /usr/share/postfix/main.cf.dist /etc/postfix/main.cf
雛形 | 設定変更 |
---|---|
#mail_owner = postfix | mail_owner = postfix |
#myhostname = host.domain.tld | myhostname = (内部host名).(内部ドメイン名) |
linux/postfix_install.1660884357.txt.gz · 最終更新: 2022/08/23 13:34 (外部編集)