I have a Qmail installation mostly working, but I'm not receiving any mail. I'm looking for suggestions on how I can trace where the problem is.
I'm trying to get Qmail configured on a test server at my office, before I mess with my production server. My FreeBSD is:
My ports are all up to date. I'm running Apache 2.4.41, and PHP 7.1.32 (not that Apache and PHP affect Qmail directly, but I can open php pages for the 2 subdomains running on the test server)
My test server is connected to an ASUS router in my office, which is connected to a local internet provider. My server has an IP address of 192.168.0.154.
The router is configured to forward all of the relevant ports to the test server.
- I have 2 subdomains configured, with the first being the server's hostname. I don't need to give those out here right?
- I have SSL certs from Letsencrypt configured and working for both subdomains. (I can pull up default html pages in a browser and see the green lock).
- I made a simple web form with PHP and messages from that form ARE being delivered to my external Gmail address.
Here are the qmail and related services running:
I can do this:
and a blank message gets delivered to my gmail account
- I have added the two subdomains and postmaster accounts and they appear in the list when I do the "mkvalidrcptto" command.
- I can connect to the postmaster account using Thunderbird at home and then running the following command shows the connection I made from Thunderbird:
I have replaced my home IP address with xx.xx.xx.xx but you can see both the port 143 connections and my port 22 SSH connection
I also get the following:
So I CAN connect to port 143 locally but not 25. Why?
I've checked the qmail logs. I don't see any error messages. I've checked the permissions of the files and folders and they all look right. Obviously I'm missing something. Everything seems to be MOSTLY working, but I'm not getting any incoming messages.
The emails I send TO my test server from my Gmail account get returned with the same "421 unable to read controls (#4.3.0)" message as when I try to telnet to port 25 locally.
I'm stuck. What should I check next or what tests can I run next?
thanks!
I'm trying to get Qmail configured on a test server at my office, before I mess with my production server. My FreeBSD is:
Code:
FreeBSD 11.2-RELEASE-p9 (GENERIC) #0: Tue Feb 5 15:30:36 UTC 2019
My ports are all up to date. I'm running Apache 2.4.41, and PHP 7.1.32 (not that Apache and PHP affect Qmail directly, but I can open php pages for the 2 subdomains running on the test server)
My test server is connected to an ASUS router in my office, which is connected to a local internet provider. My server has an IP address of 192.168.0.154.
The router is configured to forward all of the relevant ports to the test server.
- I have 2 subdomains configured, with the first being the server's hostname. I don't need to give those out here right?
- I have SSL certs from Letsencrypt configured and working for both subdomains. (I can pull up default html pages in a browser and see the green lock).
- I made a simple web form with PHP and messages from that form ARE being delivered to my external Gmail address.
Here are the qmail and related services running:
Code:
# svstat /service/* /service/*/log
/service/dovecot: up (pid 65049) 1271 seconds
/service/qmail-send: up (pid 61408) 1271 seconds
/service/qmail-smtpd: up (pid 62824) 1271 seconds
/service/qmail-smtpd-ssl: up (pid 63710) 1271 seconds
/service/qmail-smtpd-tls: up (pid 65207) 1271 seconds
/service/qmail-updater: up (pid 59963) 1271 seconds
/service/dovecot/log: up (pid 66430) 1271 seconds
/service/qmail-send/log: up (pid 62347) 1271 seconds
/service/qmail-smtpd-ssl/log: up (pid 64329) 1271 seconds
/service/qmail-smtpd-tls/log: up (pid 65440) 1271 seconds
/service/qmail-smtpd/log: up (pid 65321) 1271 seconds
/service/qmail-updater/log: up (pid 60650) 1271 seconds
I can do this:
Code:
# echo To: fake-address@gmail.com | /var/qmail/bin/qmail-inject
- I have added the two subdomains and postmaster accounts and they appear in the list when I do the "mkvalidrcptto" command.
- I can connect to the postmaster account using Thunderbird at home and then running the following command shows the connection I made from Thunderbird:
Code:
# netstat -anp tcp
Active Internet connections (including servers)
Proto Recv-Q Send-Q Local Address Foreign Address (state)
tcp4 0 0 192.168.0.154.143 xx.xx.xx.xx.43236 ESTABLISHED
tcp4 0 0 192.168.0.154.143 xx.xx.xx.xx.43234 ESTABLISHED
tcp4 0 44 192.168.0.154.22 xx.xx.xx.xx.49704 ESTABLISHED
tcp6 0 0 *.21 *.* LISTEN
tcp4 0 0 *.21 *.* LISTEN
tcp4 0 0 *.443 *.* LISTEN
tcp6 0 0 *.443 *.* LISTEN
tcp4 0 0 *.80 *.* LISTEN
tcp6 0 0 *.80 *.* LISTEN
tcp4 0 0 *.22 *.* LISTEN
tcp6 0 0 *.22 *.* LISTEN
tcp4 0 0 127.0.0.1.3306 *.* LISTEN
tcp4 0 0 127.0.0.1.9000 *.* LISTEN
tcp4 0 0 *.993 *.* LISTEN
tcp4 0 0 *.143 *.* LISTEN
tcp4 0 0 *.995 *.* LISTEN
tcp4 0 0 *.110 *.* LISTEN
tcp4 0 0 192.168.0.154.25 *.* LISTEN
tcp4 0 0 192.168.0.154.587 *.* LISTEN
tcp4 0 0 192.168.0.154.465 *.* LISTEN
I also get the following:
Code:
# telnet 192.168.0.154 25
Trying 192.168.0.154...
Connected to pulp7.
Escape character is '^]'.
421 unable to read controls (#4.3.0)
Connection closed by foreign host.
# telnet 192.168.0.154 143
Trying 192.168.0.154...
Connected to pulp7.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN] MAILHOST IMAP READY.
...
* BYE Logging out
a OK Logout completed (0.001 + 0.000 secs).
Connection closed by foreign host.
So I CAN connect to port 143 locally but not 25. Why?
I've checked the qmail logs. I don't see any error messages. I've checked the permissions of the files and folders and they all look right. Obviously I'm missing something. Everything seems to be MOSTLY working, but I'm not getting any incoming messages.
The emails I send TO my test server from my Gmail account get returned with the same "421 unable to read controls (#4.3.0)" message as when I try to telnet to port 25 locally.
I'm stuck. What should I check next or what tests can I run next?
thanks!