Can't access Hmail from outside network (Internet)

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-20 22:42

Hey all -

I'm beating my head against a wall at this point.

Followed this guide on how to setup hMailServer - running on windows server 2016.


I've done the following

Created MX Records for mail.wilddragonproductions.com
Create A Record for mail.wilddragonproductions.com
Created TXT v=spf1 include:mail.wilddragonproductions.com -all

Have all the ports forwarded, and the diagnostic on hMailServer shows all green lights. I setup forwarding on the one account I have to just forward to my gmail when it receives mail and I can't seem to get that to work, nor can I add a account to a client like windows mail or the iphone mail.

Any insight...? I'm guessing i'm doing somthing incredibly stupid.

User avatar
jimimaseye
Moderator
Moderator
Posts: 8175
Joined: 2011-09-08 17:48

Re: Can't access Hmail from outside network (Internet)

Post by jimimaseye » 2019-09-20 22:49

Are you receiving email? (How do you know?)

How are you setting up forwarding?

How do you know it is not working? (Looked in gmail spam)?

With replies, run this and post the results: https://www.hmailserver.com/forum/viewt ... 20&t=30914

[Entered by mobile. Excuse my spelling.]
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-20 22:55

I am receiving mail, I can send messages from my Gmail to the server and the processed messages goes up - but I don't think its able to send messages, just receive them at the moment.


Domain DNS Settings : https://i.imgur.com/9DtFMTH.png

Diagnostic file : https://www.dropbox.com/s/il80zhy1e9utnpk/diag.txt?dl=0
Last edited by acsriot on 2019-09-20 23:03, edited 1 time in total.

User avatar
jimimaseye
Moderator
Moderator
Posts: 8175
Joined: 2011-09-08 17:48

Re: Can't access Hmail from outside network (Internet)

Post by jimimaseye » 2019-09-20 22:59

Please post the results as text to the thread so i can refer to them.
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-20 23:03

I am receiving messages, the processed messages goes up a tick when I send emails from my gmail to the server.

Heres the text file

Code: Select all

2019-09-20   Hmailserver: 5.6.7-B2425

DOMAINS

   "Domain1.com" - wixxxxxxxxxxxxxxxxxxx.com      Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False   
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:     False
-----------------------------------------------------------------------------------------------

IP RANGES

IP: 127.0.0.1 - 127.0.0.1     Priority: 15     Name: My computer

  Allow connections                         Other
     SMTP:   True                              Antispam :   True !! 'Spam tests' not enabled !!
     POP3:  False                              Antivirus:   True !! ANTIVIRUS NOT CONFIGURED !!
     IMAP:  False                              SSL/TLS:    False

  Allow Deliveries from                     Require Authentication from
     Local To Local       -  True              Local To Local       - False
     Local To External    -  True              Local To External    - False
     External To Local    -  True              External To Local    - False
     External To External -  True              External To External - False


IP: 0.0.0.0 - 255.255.255.255     Priority: 10     Name: Internet

  Allow connections                         Other
     SMTP:   True                              Antispam :   True !! 'Spam tests' not enabled !!
     POP3:  False                              Antivirus:   True !! ANTIVIRUS NOT CONFIGURED !!
     IMAP:  False                              SSL/TLS:    False

  Allow Deliveries from                     Require Authentication from
     Local To Local       -  True              Local To Local       - False
     Local To External    -  True              Local To External    - False
     External To Local    -  True              External To Local    - False
     External To External -  True              External To External - False


------------------------------------------------------
AUTOBANNED Local Addresses:
    No entries

-----------------------------------------------------------------------------------------------

AUTOBAN
  Autoban Enabled: True       Max invalid logon attempts:      3
                              Minutes Before Reset:           30  (0.50 hours, 0.02 days)
                              Minutes to Autoban:             60  (1.00 hours, 0.04 days)

No problems were found in the IP range configuration.
-----------------------------------------------------------------------------------------------

INCOMING RELAYS
   No entries
-----------------------------------------------------------------------------------------------

MIRRORING         Disabled
-----------------------------------------------------------------------------------------------

PROTOCOLS

SMTP
GENERAL             DELIVERY                  RFC COMPLIANCE            ADVANCED
No. Connections:  0  No Retries:  4 Mins: 60   Plain Text:        False  Bind: 
                     Host: EXTERNAL.TLD        Empty sender:       True  Batch recipients:   100
Max Msg Size: 20480  Relay:-                   Incorrect endings:  True  Use STARTTLS:      True
                     (none entered)            Disc. on invalid:  False  Delivered-To hdr: False
                                                                         Loop limit:           5
                                                                         Recipient hosts:     15
  Routes:
     No routes defined.

POP3
  No. Connections: 0

IMAP
 GENERAL                   PUBLIC FOLDERS                    ADVANCED
  No. Connections:   0      Public folder name: #Public       IMAP sort:  True
                                                              IMAP Quota: True
                                                              IMAP Idle:  True
                                                              IMAP ACL:   True
                                                              Delim: "."
-----------------------------------------------------------------------------------------------

ANTISPAM

GENERAL                              SPAM TESTS              Score   SPAMASSASSIN
  Spam Mark:                  5       Use SPF:           False        Use Spamassassin:   False
  Add X-HmailServer-Spam:     True    Check HELO host:   False    
  Add X-HmailServer-Reason:   True    Check MX records:  False    
  Add X-HmailServer-Subject: False    Verify DKIM:       False    

  Spam delete threshold: 20         Maximum message size: 1024

DNSBL ENTRIES:
   No 'enabled' entries

SURBL ENTRIES:
   No 'enabled' entries

GREYLISTING:
  Greylisting:  False

WHITELISTING
   No entries
-----------------------------------------------------------------------------------------------

ANTIVIRUS:  No application configured.

  Block Attachments: False
-----------------------------------------------------------------------------------------------

SSL CERTIFICATES
   No entries
-----------------------------------------------------------------------------------------------

SSL/TLS
             SSL 3.0 :  False
             TLS 1.0 :   True
             TLS 1.1 :   True
             TLS 1.2 :   True                Verify Remote SSL/TLS Certs:   True
SslCipherList  :

ECDHE-RSA-AES128-GCM-SHA256     - ECDHE-ECDSA-AES128-GCM-SHA256   - ECDHE-RSA-AES256-GCM-SHA384     
ECDHE-ECDSA-AES256-GCM-SHA384   - DHE-RSA-AES128-GCM-SHA256       - DHE-DSS-AES128-GCM-SHA256       
kEDH+AESGCM                     - ECDHE-RSA-AES128-SHA256         - ECDHE-ECDSA-AES128-SHA256       
ECDHE-RSA-AES128-SHA            - ECDHE-ECDSA-AES128-SHA          - ECDHE-RSA-AES256-SHA384         
ECDHE-ECDSA-AES256-SHA384       - ECDHE-RSA-AES256-SHA            - ECDHE-ECDSA-AES256-SHA          
DHE-RSA-AES128-SHA256           - DHE-RSA-AES128-SHA              - DHE-DSS-AES128-SHA256           
DHE-RSA-AES256-SHA256           - DHE-DSS-AES256-SHA              - DHE-RSA-AES256-SHA              
AES128-GCM-SHA256               - AES256-GCM-SHA384               - ECDHE-RSA-RC4-SHA               
ECDHE-ECDSA-RC4-SHA             - AES128                          - AES256                          
RC4-SHA                         - HIGH                            - !aNULL                          
!eNULL                          - !EXPORT                         - !DES                            
!3DES                           - !MD5                            - !PSK;                           
-----------------------------------------------------------------------------------------------

TCPIP PORTS                                         Connection Sec
               0.0.0.0         / 25    / SMTP   -   None                
               0.0.0.0         / 110   / POP3   -   None                
               0.0.0.0         / 143   / IMAP   -   None                
               0.0.0.0         / 587   / SMTP   -   None                
-----------------------------------------------------------------------------------------------

LOGGING      Logging Enabled: False

  Paths:-
    Error:    C:\Program Files (x86)\hMailServer\Logs\ERROR_hmailserver_2019-09-20.log
    Event:    C:\Program Files (x86)\hMailServer\Logs\hmailserver_events.log - Not present
    Awstats:  C:\Program Files (x86)\hMailServer\Logs\hmailserver_awstats.log
-----------------------------------------------------------------------------------------------

SYSTEM TESTS

Database type: MSSQL Compact

IPv6 support is available in operating system.

Backup directory C:\Users\Administrator\Documents\hmailBackup is writable.

Relative message paths are stored in the database for all messages.

-----------------------------------------------------------------------------------------------

HMAILSERVER.INI

[Directories]
Program folder:  C:\Program Files (x86)\hMailServer\
Database folder: C:\Program Files (x86)\hMailServer\Database
Data folder:     C:\Program Files (x86)\hMailServer\Data
Log folder:      C:\Program Files (x86)\hMailServer\Logs
Temp folder:     C:\Program Files (x86)\hMailServer\Temp
Event folder:    C:\Program Files (x86)\hMailServer\Events

[Database]
Type=              MSSQLCE
Username=           
PasswordEncryption=1
Port=              0
Server=             
Internal=          1
-----------------------------------------------------------------------------------------------

Generated by HMSSettingsDiagnostics v1.96, Hmailserver Forum.

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-20 23:10

Nevermind.... its sending and receiving (Sending via the forward option) . I'm just having issues adding it to a client outside the vps.

User avatar
jimimaseye
Moderator
Moderator
Posts: 8175
Joined: 2011-09-08 17:48

Re: Can't access Hmail from outside network (Internet)

Post by jimimaseye » 2019-09-20 23:19

your machine is an open relay:

Code: Select all

IP: 0.0.0.0 - 255.255.255.255     Priority: 10     Name: Internet

  Allow connections                         Other
     SMTP:   True                              Antispam :   True !! 'Spam tests' not enabled !!
     POP3:  False                              Antivirus:   True !! ANTIVIRUS NOT CONFIGURED !!
     IMAP:  False                              SSL/TLS:    False

  Allow Deliveries from                     Require Authentication from
     Local To Local       -  True              Local To Local       - False
     Local To External    -  True              Local To External    - False
     External To Local    -  True              External To Local    - False
     External To External -  True              External To External - False
Note the lack of authentication. Set all except external to local to need authentication and disable external to external completely.

[Entered by mobile. Excuse my spelling.]
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-20 23:36

Alright, got those ticked.

So my hostname should be mail.wilddragonproductions.com , and outgoing smtp.wilddragonproductions.com ?

User avatar
jimimaseye
Moderator
Moderator
Posts: 8175
Joined: 2011-09-08 17:48

Re: Can't access Hmail from outside network (Internet)

Post by jimimaseye » 2019-09-20 23:39

Both can be mail.wild.....

[Entered by mobile. Excuse my spelling.]
HMS 5.6.6 B2383 on Win Server 2008 R2 Foundation, + 5.6.7-B2415 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-21 00:38

Still can't get it to work.


Using mail.wilddragonproductions.com for both outgoing and host, and my username / email and password.

Mail still can't be sent.

User avatar
mattg
Moderator
Moderator
Posts: 20305
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Can't access Hmail from outside network (Internet)

Post by mattg » 2019-09-21 00:42

Please enable all logging, rename todays logs, try to send again, wait 90 seconds, and then post any logs created
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
jim.bus
Senior user
Senior user
Posts: 304
Joined: 2011-05-28 11:49
Location: US

Re: Can't access Hmail from outside network (Internet)

Post by jim.bus » 2019-09-21 09:38

I am not a DNS expert by any means but the DNS settings you provided in your link look screwy to me.

I am not sure they would prevent you from sending and receiving but they look confusing.

1. Since you don't tell us this, I am assuming your Domain Name is wilddragonproductions.com and www.wilddragonproductions.com with the IP Address of both being 123.456.789.999 (made up IP). The two A Records for these seemingly define the Domain with this IP Address. However, I find you don't necessarily need an A Record for the Domain Name.
2. You have another A Record defining a subdomain of mail.wilddragonproductions.com.
3. You have another A Record presumably defining a subdomain of mail.wilddraggonproductions.com.wilddragonproductions.com (your printout of your DNS cuts off the Name field of the A Record for this one so I can't tell for sure what it is).
4. You have an MX Record which points mail.wilddragonproductions.com.

Without knowing why you set it up exactly this way, I would think the following changes might be in order whether or not this DNS setup works.

1. I don't believe you need the A Record I reference in item 3 above and it might be causing something to not work right (I don't know). My understanding of how the Zone File Editor probably works is the Name you entered in this A Record gets appended in front of the Domain name just as it did in the A Record I recference in item 2 which is ok as far as it should be as far as I know.
2. I don't know this is even possible for it to work the way you set it up (again I am not an expert in DNS) for this since you haven't shown what your actual Domain name is but assuming it is wilddragonproductions.com then:
a. The IP Address of your Domain, wilddragonproductions.com appears to be 123.456.789.999.
b. The IP address of your subdomain, mail.wilddragonproductions.com appears to be 123.456.789.999.
c. The IP Address of your hMailSever appears to be 123.456.789.999.

I know you changed your outgoing email server name to mail.wilddragonproductions.com but if you had left it as smtp.wilddragonproductions.com as you originally had it, from what you showed of your DNS it never would have worked because it wasn't defined in the DNS.

I, also, am assuming Domain Name wilddraggonproductions.com is made up because apparently I can't find your mail server hostname mail.wilddraggonproductions.com.

Now on the issue of sending email:
1. You state all the ports are being forwarded but you don't tell us exactly which Ports are being forwarded (Port Numbers going to IP Address of hMailSerer, etc.)
2. Even if you forwarded all the Ports correctly did you remember (as I sometimes forget myself) to make sure all the ports are open on the Firewall of the hMailServer computer (you won't be able to send or receive email from an Email Client without these Ports open on the hMailServer computer Firewall):
a. Port 25 (unencrypted SMTP)
b. Port 110 (unencrypted POP3).
c. Port 465 (encrypted SSL SMTP).
d. Port 587 (encrypted TLS SMTP).
c. Port 995 (Encrypted SSL POP3).

Now as to receiving messages, I don't see how you know you are receiving because I don't see where you ever say you actually received the message by looking at it with an email client especially since you said you were having trouble setting up the email client. To me it looks like while you may be receiving the message on hMailSevrer, you won't be able to see the email message with an Email Client (Outlook, Thunderbird, Windows 10 Mail, etc.) because you don't have POP3 enabled in hMailServer. You need POP3 for an Email Client to be able to download the messages from hMailServer. You might be able to view the message once it is forwarded to GMail but not with a direct connection to hMailServer using an Email Client as far as I can tell.

User avatar
Dravion
Senior user
Senior user
Posts: 1492
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Can't access Hmail from outside network (Internet)

Post by Dravion » 2019-09-21 12:58

Maybe this is why nobody accept Emails from your SMTP-Server?
Attachments
or.png

palinka
Senior user
Senior user
Posts: 1303
Joined: 2017-09-12 17:57

Re: Can't access Hmail from outside network (Internet)

Post by palinka » 2019-09-21 13:41

Dravion wrote:
2019-09-21 12:58
Maybe this is why nobody accept Emails from your SMTP-Server?
Naughty, naughty... :lol:

I thought we fixed that already.

Code: Select all

Connecting to 95.217.98.150

220 mail.wilddragonproductions.com ESMTP [719 ms]
EHLO keeper-us-east-1b.mxtoolbox.com
250-mail.wilddragonproductions.com
250-SIZE 20480000
250-AUTH LOGIN
250 HELP [703 ms]
MAIL FROM:<supertool@mxtoolbox.com>
250 OK [734 ms]
RCPT TO:<test@mxtoolboxsmtpdiag.com>
250 OK [719 ms]

LookupServer 4391ms
Still an open relay. Please fix that asap. Require authentication for everything except external to local on every IP range. Also disable external to external.

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-21 18:10

I have no idea what I'm doing wrong, all those boxes are ticked except external to external

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-21 19:29

Alright - I got the open rely fixed now.


still can't add it to mail clients.

Settings -

incoming mail server

hostname : mail.wilddragonproductions.com
username create@wilddragonproductions.com
Password : (The password)

outgoing mail server

hostname : mail.wilddragonproductions.com
Username blank
Password blank


However i've gotten the apple mail to say that the username or password for mail.wilddragonproductions.com is incorrect

palinka
Senior user
Senior user
Posts: 1303
Joined: 2017-09-12 17:57

Re: Can't access Hmail from outside network (Internet)

Post by palinka » 2019-09-21 20:52

Maybe a dumb question, but have you setup create@wilddragonproductions.com account?

Also, did you recently change your mx records fron another mail provider? It could be a propagation issue.

Lastly, you need to authenticate smtp as well as your incoming mail. Use the same account credentials. That may be the simple reason you had the password error.

Very lastly, make sure there are no typos, caps lock, etc. when entering your password in the mail client. This is all basic stuff but we all make those kinds of dumb errors sometimes.

User avatar
jim.bus
Senior user
Senior user
Posts: 304
Joined: 2011-05-28 11:49
Location: US

Re: Can't access Hmail from outside network (Internet)

Post by jim.bus » 2019-09-21 22:00

In my earlier post, I pointed out he doesn't have POP3 enabled on hMailServer. See last paragraph of my last post on Date and Timestamp 2019-09-21 00:38 (UTC -7).

While he may be able to add an email client account (I can with Outlook), he will not be able to receive email using the email client with POP3 Disabled on hMailServer.

User avatar
jim.bus
Senior user
Senior user
Posts: 304
Joined: 2011-05-28 11:49
Location: US

Re: Can't access Hmail from outside network (Internet)

Post by jim.bus » 2019-09-21 23:43

acsriot wrote:
2019-09-21 19:29
Alright - I got the open rely fixed now.


still can't add it to mail clients.

Settings -

incoming mail server

hostname : mail.wilddragonproductions.com
username create@wilddragonproductions.com
Password : (The password)

outgoing mail server

hostname : mail.wilddragonproductions.com
Username blank
Password blank


However i've gotten the apple mail to say that the username or password for mail.wilddragonproductions.com is incorrect
Also besides POP3 not being enabled on hMailServer, he doesn't tell us what Ports his email client is using and whether these Ports are actually open on hMailServer's computer Firewall and he is Forwarding these Ports on his Router. He never answered my prior questions in this regards. If these settings are not set correctly he won't be able to send/receive email with his email Client (though apparently he is able to do a send from his prior postings).

User avatar
Dravion
Senior user
Senior user
Posts: 1492
Joined: 2015-09-26 11:50
Location: Germany
Contact:

Re: Can't access Hmail from outside network (Internet)

Post by Dravion » 2019-09-22 12:08

Don't use blanks for usernanes or passwords!

In hMailServer, your Email Client Username is allways
your complete Email address. Don't use blanks as Password under any circumstances. Even a bad password is better than a blank. Blanks are also seen by diffrent Software as diffrent things. Blanks can have atleast 8 diffrent states.

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-24 18:46

Ports are open in the windows firewall. The router is completely open. I have now enabled POP on the Hmailserver

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-24 19:04

I GOT IT !

So I can now add accounts to my mail clients and send and receive mail, however everything is being put in spam. I'm assuming i'm now dealing with a certificate issue.

User avatar
jim.bus
Senior user
Senior user
Posts: 304
Joined: 2011-05-28 11:49
Location: US

Re: Can't access Hmail from outside network (Internet)

Post by jim.bus » 2019-09-24 19:33

acsriot wrote:
2019-09-24 19:04
I GOT IT !

So I can now add accounts to my mail clients and send and receive mail, however everything is being put in spam. I'm assuming i'm now dealing with a certificate issue.
Assume you mean email you send gets marked as SPAM by receiving email servers. If you are sending to yourself as part of testing you are both the sending and receiving email servers.

Don't believe lack of Security Certificate would mark anything as SPAM that you receive.

You should look at hMailServer Help documentation where it instructs on how to configure/setup hMailServer. I am guessing you didn't identify your Host Name in the SMTP Protocols for one thing (this can add to your SPAM Score on Receiving Email Servers). You should perhaps clean up your DNS as I indicated if in prior post as I think you have a superfluous A Record which I don' believe is a problem but I don't think it accomplishes anything for you unless you had some specific reason for it. You should add a PTR Entry on your SPF TXT Record as this might could be what Receiving Email Servers are using as a criteria to mark it as SPAM.

palinka
Senior user
Senior user
Posts: 1303
Joined: 2017-09-12 17:57

Re: Can't access Hmail from outside network (Internet)

Post by palinka » 2019-09-24 19:43

acsriot wrote:
2019-09-24 19:04
I GOT IT !

So I can now add accounts to my mail clients and send and receive mail, however everything is being put in spam. I'm assuming i'm now dealing with a certificate issue.
A certificate is for encrypting message transmission and has nothing to do with spam.

The receiving server decides what is spam and what is ham.

https://mxtoolbox.com/SuperTool.aspx?ac ... n=toolpage

I just looked and it still says open relay. It's imperative you fix this or you will end up on blacklists. By the way, mxtoolbox is reporting that you are not YET on any blacklists.

Go to settings > advanced > ip ranges and enable authentication on everything except external to local.

After you fix that, have a look at this: https://hmailserver.com/forum/viewtopic ... 21&t=29763

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-24 20:02

So I have all of those boxes checked, I can get the open-relay to be closed if I use the connection security under the TCP/IP Ports - but if I enable that the account stops working on my email clients.

palinka
Senior user
Senior user
Posts: 1303
Joined: 2017-09-12 17:57

Re: Can't access Hmail from outside network (Internet)

Post by palinka » 2019-09-24 21:44

acsriot wrote:
2019-09-24 20:02
So I have all of those boxes checked, I can get the open-relay to be closed if I use the connection security under the TCP/IP Ports - but if I enable that the account stops working on my email clients.
That's because without a certificate, hmail just errors out. Everything breaks, so of course it's not an open relay then! :D
Screenshot_20190924-154025_Microsoft Remote Desktop.jpg
For now, you should leave "Require ssl/tls for authentication" unchecked. Also you should check pop3 and imap if that's how you want to connect. Otherwise, just copy my settings. Do the same for My Computer ip range.

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-25 00:48

Alright , so update : I can add the account to my phone, outlook and Windows mail and SEND mail. But I cannot seem to receive.

User avatar
jim.bus
Senior user
Senior user
Posts: 304
Joined: 2011-05-28 11:49
Location: US

Re: Can't access Hmail from outside network (Internet)

Post by jim.bus » 2019-09-25 02:59

acsriot wrote:
2019-09-25 00:48
Alright , so update : I can add the account to my phone, outlook and Windows mail and SEND mail. But I cannot seem to receive.
Again follow the instruction I gave in two earlier posts and ENABLE POP3. I believe you had checked POP3 as I instructed and then you started receiving Email and now you must have unchecked POP3 again which is causing you to not be able to receive email. If you copied the settings in the Screen Print in palinka's last post you will have UNCHECKED (DISABLED) POP3 which will cause you to not be able to RECEIVE EMAIL. You will also need to Check (Enable) IMAP if you are doing anything with IMAP which I don't believe you are. However, checking IMAP should not hurt anything even if you aren't using IMAP. palinka also advised you to check POP3 if that is how you want to connect and when you receive email you are trying to connect using POP3. POP3 is your Protocol for receiving email. SMTP is your Protocol for Sending Email. Therefore, these Protocols must be ENABLED to be able to do these functions.

Comments below are in relation to a new installation of hMailServer 5.6.7-B2425 (latest official hMailServer Build):

If you installed this hMailServer as a new installation, you would have been better to go with the default settings when it was first installed. When first installed hMailServer is configured so that you wouldn't have some of these problems. Example being is SMTP, POP3, And IMAP were all enabled. When we first started looking at your issue POP3 and IMAP had been Disabled. Your Open Relay issue wouldn't be there unless possibly your ISP blocks Port 25 causing you to be forced to set up a Relay. In my case my ISP does not block Port 25 and therefore eliminates that necessity.
1. When hMailServer first installed it requires I believe very little configuring of the hMailServer settings. One necessary setting is to add the Hostname in SMTP Deliveries. And of course Adding Your Domains and
Accounts.
2, Then test hmailServer to make sure it is running under its Default Settings.
3. Once hMailServer is working (Sending/Receiving Emails) then modify configuration/settings as necessary to accomplish any specific requirements you may have such as adding Security Certificates for Encryption.

Going in changing things before you have made sure your installation was correct, in my opinion, makes the work harder if you are not that sure how the product works. Installing and setting up hMailServer is simpler today than it was 10 years ago when I installed my hMailServer but even then the types of problems you are dealing with now a lot of them were taken care of automatically because the settings were set by default.

User avatar
jim.bus
Senior user
Senior user
Posts: 304
Joined: 2011-05-28 11:49
Location: US

Re: Can't access Hmail from outside network (Internet)

Post by jim.bus » 2019-09-25 03:26

jim.bus wrote:
2019-09-25 02:59
acsriot wrote:
2019-09-25 00:48
Alright , so update : I can add the account to my phone, outlook and Windows mail and SEND mail. But I cannot seem to receive.
Again follow the instruction I gave in two earlier posts and ENABLE POP3. I believe you had checked POP3 as I instructed and then you started receiving Email and now you must have unchecked POP3 again which is causing you to not be able to receive email. If you copied the settings in the Screen Print in palinka's last post you will have UNCHECKED (DISABLED) POP3 which will cause you to not be able to RECEIVE EMAIL. You will also need to Check (Enable) IMAP if you are doing anything with IMAP which I don't believe you are. However, checking IMAP should not hurt anything even if you aren't using IMAP. palinka also advised you to check POP3 if that is how you want to connect and when you receive email you are trying to connect using POP3. POP3 is your Protocol for receiving email. SMTP is your Protocol for Sending Email. Therefore, these Protocols must be ENABLED to be able to do these functions.
Point of clarification for you for my last Post:

I took another look at palinka's last post and screen print and there may be a point of confusion for you about Enabling POP3. There are at least 2 places POP3 must be specified.
1. You must enable the POP3 Protocol on the hMailAdmin Settings> Protocols.
2. You must also Enable POP3 on the IP Ranges setting under 'Allow Connections'. palinka's Screen Print shows only the SMTP Connection checked. You need to check the POP3 connection to be able to receive
email for that IP Range. You must make sure each IP Range Allows these connections for each IP Range which needs these connections to work. Normally I would believe that would be all the default IP Ranges
(MY Computer and Internet IP Ranges).

palinka
Senior user
Senior user
Posts: 1303
Joined: 2017-09-12 17:57

Re: Can't access Hmail from outside network (Internet)

Post by palinka » 2019-09-25 10:47

jim.bus wrote:
2019-09-25 02:59
[POP3 is your Protocol for receiving email. SMTP is your Protocol for Sending Email. Therefore, these Protocols must be ENABLED to be able to do these functions.
Actually, smtp is the protocol for the server to receive and send mail. POP3 and imap are protocols for the server to distribute mail to clients.

I have pop and imap turned off on the internet ip range for a very specific reason and i didn't want to confuse the OP with my non traditional setup. The point was the authentication necessary to not be an open relay.

Here's the mx toolbox smtp diag:

Code: Select all

Connecting to 95.217.98.150

220 mail.wilddragonproductions.com [735 ms]
EHLO keeper-us-east-1c.mxtoolbox.com
250-mail.wilddragonproductions.com
250-SIZE 20480000
250-STARTTLS
250-AUTH LOGIN
250 HELP [734 ms]
MAIL FROM:<supertool@mxtoolbox.com>
530 Must issue STARTTLS first. [735 ms]
RCPT TO:<test@mxtoolboxsmtpdiag.com>
503 must have sender first. [734 ms]

LookupServer 3969ms
Note the 503 error. I'm not really sure what that means but I'm guessing he has default domain enabled? I've never seen that before. For example, my server rejects the connection, not issues a bad command error.

Code: Select all

550 Delivery is not allowed to this address.
OP, please run the script diagnostic again and post the results. https://www.hmailserver.com/forum/viewt ... 20&t=30914

User avatar
jim.bus
Senior user
Senior user
Posts: 304
Joined: 2011-05-28 11:49
Location: US

Re: Can't access Hmail from outside network (Internet)

Post by jim.bus » 2019-09-25 11:27

palinka wrote:
2019-09-25 10:47
jim.bus wrote:
2019-09-25 02:59
[POP3 is your Protocol for receiving email. SMTP is your Protocol for Sending Email. Therefore, these Protocols must be ENABLED to be able to do these functions.
Actually, smtp is the protocol for the server to receive and send mail. POP3 and imap are protocols for the server to distribute mail to clients.
I got sloppy with my terminology. He will not ordinarily be able to receive emails with his email client unless POP3 is enabled is closer to what I meant to say. I indicate this in my earlier post though worded a little differently. Yes he will receive the email on his email Server but if he tries to access the email with his email client my understanding is it will fail unless POP3 is enabled unless he uses IMAP Protocols in which case IMAP must be enabled. I was using his terminology because he kept stating he couldn't receive emails. The email clients he indicated he was using was Windows Mail or iPhone Mail. I know Windows Mail uses POP3 to receive/access email and I believe maybe IMAP as well. Therefore, I was using his terminology. Also earlier he had claimed he was receiving email but it was clear he wasn't actually seeing the email just an indication he had received it so he didn't apparently have his email client configured at the time.

acsriot
New user
New user
Posts: 13
Joined: 2019-09-20 22:37

Re: Can't access Hmail from outside network (Internet)

Post by acsriot » 2019-09-30 00:08

I got it all sorted, it finally works !

Thanks

User avatar
jim.bus
Senior user
Senior user
Posts: 304
Joined: 2011-05-28 11:49
Location: US

Re: Can't access Hmail from outside network (Internet)

Post by jim.bus » 2019-09-30 00:58

acsriot wrote:
2019-09-30 00:08
I got it all sorted, it finally works !

Thanks
I noted earlier that you got it working but a point of interest for me. If I interpreted what I was reading in all the earlier posts, it looked like what was said was happening was what I was pointing out about Route and External Account. The only thing though is I interpreted what I thought you wanted to do was to just set up downloading the email received in the GMail account to hMailServer and that is why I suggested using External Account because that looked like it would do exactly just that.

Not disputing the manner in which you got your end result just explaining how I interpreted what I thought you were asking for.

I seemed to notice in more of the discussion it appeared you wanted to also be able to send to me@example.com in the GMail Account from hMailServer as well and in order to do that you probably would then need the Route. Otherwise you would only be able to do send to email ids that weren't me@example.com. hMailServer would treat any email id defined as an account in hMailServer as Local and therefore send anything to me@example.com to the account defined in hMailServer and any other email account to the GMail account since it wouldn't be defined in hMailServer. From reading the Help Documentation, I interpreted that when the Route defined how to treat the sender and recipient as Local or External that the Local or External designation would apply to how the Sender or Recipient would be treated in the Target SMTP Server. Or to put it more simply the Target SMTP Server would be used as though it were the actual Sending Email Server instead of your hMailServer.

Let me know if you think my above statements are a correct interpretation of how Routes and External Account would work in relation to what I thought you wanted. I would like to know more about Routes and External Account as well as I may want to use probably a Route in a future project of mine when I get around to it.

Thanks.

Post Reply