hello, outgoing emails get sent okay. but inbound emails dont show up when i check emails at domain.com:20000. i used the auto installer on virtualmin download page to install virtualmin on centos 7. i am using the community edition. when i check telnet ipadress 25 i get a connection refused error. i went into firewalld to allow port 25. although i'm sure webmin/virtualmin was smart enough to have already made that adjustment automatically when i installed the system. i restarted the server and did a telnet ipaddress 25 again but still connection refused error and i am still not receiving inbound emails. i had this same problem a few months back and had to wipe out my server to do the reinstall today. and i am still having the same problem. this is the only thing holding me back from using virtualmin to fully manage my websites. i am not sure where the problem is. i have just sent an email to my vps provider to find out if there is anything they can do from their end. as far as webmin/virtualmin go, what can i do to get inbound emails appear in my inbox? thanks a bunch!
If you're getting connection refused, then its not firewall. If it was blocked at firewall, it would just sit at "Trying ip address....."
Have you checked to be sure the mail server is listening on port 25. At terminal...
netstat -tuplen | grep 25
Should look like this or may list the ip instead of 0.0.0.0
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
thanks for your reply. yes when i do
netstat -tuplen | grep 25
, i see an output as so:is this good behavior?
...but you cant fool all the people all the time.
"tcp 0 0 127.0.0.1:25 "
Looks like its only listening on local host. Not main IP.
Not sure what mail server you have but in webmin>servers>postfix> General options... theres box for "Network interfaces for receiving mail'. Should have mainIP,127.0.0.1 in there. Bet you only have 127.0.0.1.
i have "all" in the "Network interfaces for receiving mail" section. and btw my ip address was outputted in the above netstat command. i just replaced it with x.x.x.x. it occurs in 2 places in the output. is it a good indication that my ip address was outputted? thanks a lot for your help.
...but you cant fool all the people all the time.
Your Ip is listed on port 53 not port 25. Also needs to be an x.x.x.x:25.
Try putting your IP in that box instead of the ALL button. x.x.x.x,127.0.0.1. Should look like that. Not sure why ALL doesn't work, but mine has the IPs listed, which was done by virtualmin, not me.
yeah its so strange. i did not change a thing. just installed using the installer and did the post installation wizard walkthrough thats it. not sure why mine has different settings in the postfix area. i have added my ip address,127.0.0.1 to the field and saved and restarted apache. still not budging lol. dont know why my ip is listed on port 53 instead of port 25. do u know how i can fix this port mapping issue? thanks.
...but you cant fool all the people all the time.
53 is supposed to be there also. Thats for DNS. Restart the mail server not apache.
awesome it works now! anyone else who might be having this issue here are steps i took with the help of @scotwnw.
1. i added my server ip address and localhost (127.0.0.1) to webmin > servers > postfix mail server > Network interfaces for receiving mail.
so it should be your.ip.address,127.0.0.1.
2. restart postfix mail server:
sudo systemctl restart postfix
test by sending some emails to and from your virtualmin created email addresses.
thanks a lot for your help @scotwnw
...but you cant fool all the people all the time.
awesome it works now! anyone else who might be having this issue here are steps i took with the help of @scotwnw.
1. i added my server ip address and localhost (127.0.0.1) to webmin > servers > postfix mail server > Network interfaces for receiving mail.
so it should be your.ip.address,127.0.0.1.
2. restart postfix mail server:
sudo systemctl restart postfix
test by sending some emails to and from your virtualmin created email addresses.
thanks a lot for your help @scotwnw
...but you cant fool all the people all the time.
awesome it works now!
anyone else who might be having this issue here are steps i took with the help of @scotwnw.
1. i added my server ip address and localhost (127.0.0.1) to webmin > servers > postfix mail server > Network interfaces for receiving mail.
so it should be your.ip.address,127.0.0.1.
2. restart postfix mail server:
sudo systemctl restart postfix
test by sending some emails to and from your virtualmin created email addresses.
thanks a lot for your help @scotwnw
...but you cant fool all the people all the time.