筆記-新的Mail Server 套件 - Modoboa
本文于1602天之前發表,文章內容可能已經過時。
預設安裝完成後,寄信 OK,但是收信會有問題
在 /var/log/maillog 會看到
postlogin: Error: could not find a “psql” to execute
解法:修改/usr/local/bin/postlogin.conf,加入psql的完整路徑
把原本的
psql -c "UPDATE core_user SET last_login=now() WHERE username='$USER'" > /dev/null
改成
/usr/bin/psql -c "UPDATE core_user SET last_login=now() WHERE username='$USER'" > /dev/null
在/var/log/maillog 會看到 error 550 5.5.1 protocol error
解法:修改 /etc/postfix/main.cf 的 mynetworks 值,加入LAN IP Range (原本只有 127.0.0.1)
mynetworks = 127.0.0.0/8,192.168.70.0/24
測試用新建立的user登入,收發信件 OK。
修改SSL憑證,改用 Letsencrypt
yum update -y
yum list > yum.txt
cat yum.txt |grep certbot
yum install certbot -y
certbot –nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested nginx plugin does not appear to be installed
yum install python2-certbot-nginx.noarch -y
接下來跳過,因為這台web沒有對外,所以要不到憑證
UPDATE
改成前面用一台 Apache 作 reverse proxy ,雖然可以導進來,但是憑證還是錯誤..
附加檔案大小判斷有問題,明明檔案就很小,還是會出現檔案太大的錯誤。
預設只有 2048 (沒有單位) 所以是 2048 byte?What the Fuck ?
用 admin 登入,到 Modoboa頁面–>Parameters–>Webmail 修改
INBOX 信件數量顯示錯誤
postfix SSL