Setting mail server di server pribadi.
Case : Connection closed by foreign host
systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor prese>
Active: active (exited) since Wed 2023-01-04 17:59:34 WIB; 2min 4s ago
Docs: man:postfix(1)
Process: 1696 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1696 (code=exited, status=0/SUCCESS)
CPU: 1ms
● postfix.service - Postfix Mail Transport Agent
Loaded: loaded (/lib/systemd/system/postfix.service; enabled; vendor prese>
Active: active (exited) since Wed 2023-01-04 17:59:34 WIB; 2min 4s ago
Docs: man:postfix(1)
Process: 1696 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1696 (code=exited, status=0/SUCCESS)
CPU: 1ms
ufw status
Status: active
To Action From
-- ------ ----
Apache ALLOW Anywhere
80/tcp ALLOW Anywhere # accept Apache
443/tcp ALLOW Anywhere # accept HTTPS connections
22/tcp ALLOW Anywhere # accept ftp
Postfix ALLOW Anywhere
25/tcp ALLOW Anywhere
465/tcp ALLOW Anywhere
Apache (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6) # accept Apache
443/tcp (v6) ALLOW Anywhere (v6) # accept HTTPS connections
22/tcp (v6) ALLOW Anywhere (v6) # accept ftp
Postfix (v6) ALLOW Anywhere (v6)
25/tcp (v6) ALLOW Anywhere (v6)
465/tcp (v6) ALLOW Anywhere (v6)
Status: active
To Action From
-- ------ ----
Apache ALLOW Anywhere
80/tcp ALLOW Anywhere # accept Apache
443/tcp ALLOW Anywhere # accept HTTPS connections
22/tcp ALLOW Anywhere # accept ftp
Postfix ALLOW Anywhere
25/tcp ALLOW Anywhere
465/tcp ALLOW Anywhere
Apache (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6) # accept Apache
443/tcp (v6) ALLOW Anywhere (v6) # accept HTTPS connections
22/tcp (v6) ALLOW Anywhere (v6) # accept ftp
Postfix (v6) ALLOW Anywhere (v6)
25/tcp (v6) ALLOW Anywhere (v6)
465/tcp (v6) ALLOW Anywhere (v6)