
Originally Posted by
SeijiSensei
To receive mail from all addresses use
Code:
mynetworks = 0.0.0.0/0
Mailq checks the outbound queue.
I'm a bit unclear on how the server is configured. Do you not have a router between the server and the Internet? If so, then the router has the public IP address, and the server likely has a different, private address. If that is the arrangement, then you need to configure "port forwarding" on the router so that traffic arriving on external ports like 25 or 143 are forwarded back to the server. The method for configuring forwarding varies from router to router.
I have changed mynetworks to 0.0.0.0/0 and same result.
I have my server connected to a router. I have an external IP who is public and dynamic (almost static, 2 weeks in a row with the same IP), and i have a different one in my private network who is a static. I have not set a port forwarding in my router for now because i am testing with DMZ.
Right now i have a mail web service installed in this server, and is already working with port forwarding. I have access from outside of this network through the DNS name associated with this IP.
If was a port forwarding problem i could avoid that when i was using DMZ for test right?
If you need any extra info just ask.
Since i have no clue yet, here it goes the DNS table in this server:
http://prntscr.com/d4l4ai
The idea is, the domain A is hosted in a external server, who is my mail domain, and in the subdomain remote.A will be my internal server. Remote.A will be accepting and sending mails from my external server A.
Process's per port:
SMTP:
Code:
remote:Postfix root# netstat -tnlp tcp | grep '\.25 '
remote:Postfix root# netstat -tnlp tcp | grep '\.2525 '
remote:Postfix root# netstat -tnlp tcp | grep '\.465 '
POP3:
Code:
remote:Postfix root# netstat -tnlp tcp | grep '\.110 '
remote:Postfix root# netstat -tnlp tcp | grep '\.995 '
IMAP:
Code:
remote:Postfix root# netstat -tnlp tcp | grep '\.143 '
tcp4 0 0 192.168.1.1.143 192.168.1.1.50825 ESTABLISHED
tcp4 0 0 192.168.1.1.50825 192.168.1.1.143 ESTABLISHED
remote:Postfix root# netstat -tnlp tcp | grep '\.993 '
tcp4 0 0 192.168.1.1.993 192.168.1.1.49455 ESTABLISHED
tcp4 0 0 192.168.1.1.49455 192.168.1.1.993 ESTABLISHED
tcp4 143 0 192.168.1.1.65235 192.168.1.1.993 CLOSE_WAIT
tcp4 0 0 192.168.1.1.993 192.168.1.1.54435 ESTABLISHED
tcp4 0 0 192.168.1.1.54435 192.168.1.1.993 ESTABLISHED
tcp4 0 0 192.168.1.1.993 192.168.1.1.50955 ESTABLISHED
tcp4 0 0 192.168.1.1.50955 192.168.1.1.993 ESTABLISHED
tcp4 0 0 192.168.1.1.993 192.168.1.1.50944 ESTABLISHED
tcp4 0 0 192.168.1.1.50944 192.168.1.1.993 ESTABLISHED
tcp4 0 0 192.168.1.1.993 192.168.1.1.50874 ESTABLISHED
tcp4 0 0 192.168.1.1.50874 192.168.1.1.993 ESTABLISHED
tcp4 0 0 192.168.1.1.993 192.168.1.1.50852 ESTABLISHED
tcp4 0 0 192.168.1.1.50852 192.168.1.1.993 ESTABLISHED
And i was thinking well about what port is used when we are pushing mail from an external server to a local server, through a MX record and i am not sure what protocol is used, but i believe that it could be SMTP since is a connection from a MTA to another MTA. I am telnetting for both IMAP and SMTP, and even POP3 ports, for my public IP and no connection is made.
UPDATE1:
DNS lookup to my mail domain (the 1º pref remote.A is pointed to my local server, that i IP i think that belongs to external mail server):

UPDATE2:
The authentication part of my external server:

UPDATE2:
I have used the wrong DNS name (before, now i have already updated this thread), i have two DNS names, one is directly pointed to my external IP, and with the other i am just able to connect to my local website (port 80), and it is not pointed to my external IP. I ask to my ISP for a DNS name to my public IP and this was what they gave me, is something that i have to change. I just want one DNS name to my external IP pointed to my external IP.
UPDATE3:
SMTP port used: 25
telnet to SMTP from localhost:
Code:
Trying 192.168.1.1...
Connected to remote.X.pt.
Escape character is '^]'.
220 remote.gfe-tec.pt ESMTP Postfix
^Z^X
quit
Connection closed by foreign host.
telnet to SMTP from external IP:
Code:
Trying 93.108.222.X...
telnet: connect to address 93.108.222.X: Connection refused
UPDATE4:
After i add an entry in the firewall of my router to accept connections from my mail external server, i tried again to telnet at port 25 and i was able to connect, i have tried also to telnet from outside of my private network and was able to enter. I didnt expect that i could do this because i have set just to accept connections from my external server IP (not all IPs):

And still, i have not received any mail while i had this port forwarding activated.
Now i am more convinced that this is being caused by my IP provider, because i am using a dynamic IP. I have already contact my ISP for info about this issue. I will leave here the response when i have it.
Bookmarks