Not receiving inbound emails in Virtualmin.

10 posts / 0 new
Last post
#1 Fri, 08/10/2018 - 07:37
youcanfoolsomeo...

Not receiving inbound emails in Virtualmin.

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!

Fri, 08/10/2018 - 08:26
scotwnw

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

Fri, 08/10/2018 - 08:33 (Reply to #2)
youcanfoolsomeo...

thanks for your reply. yes when i do netstat -tuplen | grep 25 , i see an output as so:

tcp        0      0 x.x.x.x:53       0.0.0.0:*               LISTEN      25         192537     7845/named          
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN      25         192535     7845/named          
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN      25         191559     7845/named          
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      0          18895      1095/master         
tcp6       0      0 :::80                   :::*                    LISTEN      0          152632     8253/httpd          
tcp6       0      0 :::53                   :::*                    LISTEN      25         192531     7845/named          
tcp6       0      0 ::1:953                 :::*                    LISTEN      25         191560     7845/named          
tcp6       0      0 :::443                  :::*                    LISTEN      0          152640     8253/httpd          
udp        0      0 x.x.x.x:53       0.0.0.0:*                           25         192536     7845/named          
udp        0      0 127.0.0.1:53            0.0.0.0:*                           25         192534     7845/named          
udp6       0      0 :::53                   :::*                                25         192529     7845/named   



is this good behavior?

...but you cant fool all the people all the time.

Fri, 08/10/2018 - 08:41
scotwnw

"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.

Fri, 08/10/2018 - 08:47
youcanfoolsomeo...

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.

Fri, 08/10/2018 - 09:12
scotwnw

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.

Fri, 08/10/2018 - 09:27
youcanfoolsomeo...

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.

Fri, 08/10/2018 - 09:57
scotwnw

53 is supposed to be there also. Thats for DNS. Restart the mail server not apache.

Fri, 08/10/2018 - 10:14
youcanfoolsomeo...

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.

Fri, 08/10/2018 - 10:14
youcanfoolsomeo...

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.

Fri, 08/10/2018 - 10:14
youcanfoolsomeo...

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.

Topic locked