Problems with configuration

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
Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Problems with configuration

Post by Tracer » 2021-05-04 10:50

Hello. I need help. I want to make a local email server (that's why I'm asking here) that can communicate through the internet. But there is a huge problem. I can't log in or send emails to my server. Configuration is shown below. Does anyone know how to solve it?

https://imgur.com/a/tPknw40
https://imgur.com/a/tOcG631
https://imgur.com/a/hiBZzXN

User avatar
johang
Senior user
Senior user
Posts: 534
Joined: 2008-09-01 09:20

Re: Problems with configuration

Post by johang » 2021-05-04 16:12

Tracer wrote:
2021-05-04 10:50
Hello. I need help. I want to make a local email server (that's why I'm asking here) that can communicate through the internet. But there is a huge problem. I can't log in or send emails to my server. Configuration is shown below. Does anyone know how to solve it?

https://imgur.com/a/tPknw40
https://imgur.com/a/tOcG631
https://imgur.com/a/hiBZzXN
on your server run diagnostics found at: viewtopic.php?f=20&t=30914 and post here so we can see it...

Is you server/computer directly connected to the internet ? if so .. have you opened local firewall with corresponding ports of server/computer?
Is your server/computer connected through a router/firewall to the internet ? if so.. have you done the port forwarding required ?

you state you cant log in..
have you tried installing a emailclient locally on your server.. does that work ?
have you tried connecting with an emailclient in the same LAN does that work ?
have you verified that your server is reachable on the right ports from internet ?
___________________________________________________________end of the line

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

Re: Problems with configuration

Post by mattg » 2021-05-05 02:42

Tracer wrote:
2021-05-04 10:50
Hello. I need help. I want to make a local email server (that's why I'm asking here) that can communicate through the internet.
You need a few things including a real domain, that you own with dns records to match a mail server

Please check your knowledge against the 'technical knowledge' at the bottom of this page
https://www.hmailserver.com/documentati ... quirements
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
johang
Senior user
Senior user
Posts: 534
Joined: 2008-09-01 09:20

Re: Problems with configuration

Post by johang » 2021-05-05 10:40

while i do agree, and that in my opinion you should be in charge of your own domain and use MX records to point to your mailserver.. however..


in https://www.rfc-editor.org/rfc/rfc5321.html#section-5
"If an empty list of MXs is returned, the address is treated as if it was associated with an implicit MX RR, with a preference of 0, pointing to that host."

which gives:
if my ISP points an A Record to my broadband IP i could recieve mail on that host name ( if there are no MX records on that particular subdomain ).

my DHCP ip from ISP : 111.222.333.444
ISP given hostname in DNS: 444-333-222-111-no100.tbcn.telia.com
PTR IN DNS by ISP: 444-333-222-111-no100.tbcn.telia.com

i could set up an emailserver at home responding with for example the emailadress: home.user@444-333-222-111-no100.tbcn.telia.com


of course all other rules apply such as ISP must not block port 25 in/out, any firewall in place has to be set up properly and any portforwarding needed have to be put in operation, and antispam measurements on other mailservers regarding reputation and what not always needs to be considered.
AND given the possibility that my ISP may change IP ( DHCP ) it can brake very easily with the need of a reconfiguration of mail server ( and possibly a "new" maildomain inside the mail server )
___________________________________________________________end of the line

User avatar
SorenR
Senior user
Senior user
Posts: 4581
Joined: 2006-08-21 15:38
Location: Denmark

Re: Problems with configuration

Post by SorenR » 2021-05-05 11:07

johang wrote:
2021-05-05 10:40
while i do agree, and that in my opinion you should be in charge of your own domain and use MX records to point to your mailserver.. however..


in https://www.rfc-editor.org/rfc/rfc5321.html#section-5
"If an empty list of MXs is returned, the address is treated as if it was associated with an implicit MX RR, with a preference of 0, pointing to that host."

which gives:
if my ISP points an A Record to my broadband IP i could recieve mail on that host name ( if there are no MX records on that particular subdomain ).

my DHCP ip from ISP : 111.222.333.444
ISP given hostname in DNS: 444-333-222-111-no100.tbcn.telia.com
PTR IN DNS by ISP: 444-333-222-111-no100.tbcn.telia.com

i could set up an emailserver at home responding with for example the emailadress: home.user@444-333-222-111-no100.tbcn.telia.com


of course all other rules apply such as ISP must not block port 25 in/out, any firewall in place has to be set up properly and any portforwarding needed have to be put in operation, and antispam measurements on other mailservers regarding reputation and what not always needs to be considered.
AND given the possibility that my ISP may change IP ( DHCP ) it can brake very easily with the need of a reconfiguration of mail server ( and possibly a "new" maildomain inside the mail server )
Try adding 444-333-222-111-no100.tbcn.telia.com (orwhateveritreallyis) in the [Names] tab in your domain and send an email to johang(a)444-333-222-111-no100.tbcn.telia.com ;-)

A-Record or Domain literal "[1.2.3.4]" has been in the RFC since 822 ... August 13, 1982 ...
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

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

Re: Problems with configuration

Post by palinka » 2021-05-05 12:58

SorenR wrote:
2021-05-05 11:07
Try adding 444-333-222-111-no100.tbcn.telia.com (orwhateveritreallyis) in the [Names] tab in your domain and send an email to johang(a)444-333-222-111-no100.tbcn.telia.com ;-)
I just tried it and it worked! Message sent from gmail received at test@pool-1.2.3.4.blah.fios.verizon.net. :mrgreen:

Code: Select all

Return-Path: mygmailusername@gmail.com
X-Spam-Checker-Version: SpamAssassin 3.4.2 (svnunknown) on MyServer
X-Spam-Level: 
X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,
 RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,
 RCVD_IN_NSZONES_WL_W,RCVD_IN_SPFBL_WL_W,SPF_HELO_NONE,SPF_PASS autolearn=ham
 autolearn_force=no version=3.4.2
X-Spam-Virus: _CLAMAVRESULT_
Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) by
 mydomain.tld with ESMTPS (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256
 bits=128) ; Wed, 5 May 2021 06:51:47 -0400
Received: by mail-ej1-f41.google.com with SMTP id b25so2124582eju.5 for <test@pool-1.2.3.4.blah.fios.verizon.net>;
 Wed, 05 May 2021 03:51:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to;
 bh=UVJXiWLKNlsJgC8L6s9AxS7pe5mQ5L+Fh3Mr6jlspHE=; b=VVUCFhc/zXpTA9bJRRbp1NblA8a/9W6K1XPPgHdIkTx2K9tS+60zOXk7xN3IdoIt8M
 jX9cgLg8chsC13oCv+z/pH3wCHTCMGkmLn8IOmlile99kSjvLE+joxf1RKnQReLGYaow
 ylwW6DcHasxEm17asASokKRDS1IHARlq6tSkLJCa6NEwbPnIJGi+81WoVqN83eKH46AA
 JH9xaXN1fzN+Ad5OCdRlxYM8Qv83roebgEplvRMR6mUyVNhzsswLkqnN76XQhGCvTANJ
 LDoxGwfVRMFlNGoEGycwVGwFQxOMsuvptdXtQ1T46EukaL4adGk3ib5HJDv5CrZ+uUIQ q4YQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=UVJXiWLKNlsJgC8L6s9AxS7pe5mQ5L+Fh3Mr6jlspHE=; b=CeqRtphbwvFa4NANgec15lFdoHOe47B8bKhNNG0+xxFLpW2GcMsXg17eVAReJ0Gokt
 yuf3DVHqfXYNmFORXt0Y9aHtmzx9OltKlsAPMIO+2p6pGTXJKJ68dGnes3ZpqNx9XH0D
 5Zv4HUiikpZ6uGOU1LQvsmKPcC1IObwD0vd0Xf14SlEv2lG/Udxy4EssDz3SD1WIiJIf
 4URb3WZ5l1zn4H9YSZ3m6hLGDkJv0RLgR/2KxTKbET7zJ37ZzQlHQR0yRIPHRQNV07Z2
 CKnTQ8SF5K696Yj7I/2HLkGpw5jdkZ+OsadI+AFw8UyLbihhwTyK+3BRfq/DUTfxVzIx qA7A==
X-Gm-Message-State: AOAM530MnBjCnyLDJIqTYP4ATyjdKCdLwLjmTp3uGF9zraf/aDBw+WRn
 c92Gwp87Ur7y1ArqMN0KmuSAmnZ9gg53o+5wHX7zO/as
X-Google-Smtp-Source: ABdhPJzI48rIaVMSNBWEia1FJlr3cq+pitT02U8LCKyj6v98lJ21OySMP91f6OLjl+00smSA5G/xLxz3JMNYYEDRmfQ=
X-Received: by 2002:a17:906:c0c3:: with SMTP id bn3mr11907221ejb.498.1620211898020; Wed,
 05 May 2021 03:51:38 -0700 (PDT)
MIME-Version: 1.0
From: My Gmail <mygmailusername@gmail.com>
Date: Wed, 5 May 2021 06:51:27 -0400
Message-ID: <DGF19DOSt8G33GHgUXg2pfh6-fqknuBZWMFQsfjaUC4UW3t1B0g@mail.gmail.com>
Subject: Good morning
To: test@pool-1.2.3.4.blah.fios.verizon.net
Content-Type: multipart/alternative; boundary="000000000000a477ec05c192faed"
X-hMailServer-Reason-Score: 0
oclient: 209.85.218.41##25
X-hMailServer-MsgID: 19022
X-Envelope-IPAddress: 209.85.218.41
X-Envelope-To: test@pool-1.2.3.4.blah.fios.verizon.net
X-Envelope-OriginalTo: test@pool-1.2.3.4.blah.fios.verizon.net
X-Envelope-From: mygmailusername@gmail.com

--000000000000a477ec05c192faed
Content-Type: text/plain; charset="UTF-8"

hello.

--000000000000a477ec05c192faed
Content-Type: text/html; charset="UTF-8"

<div dir="ltr">hello.</div>

--000000000000a477ec05c192faed--

User avatar
SorenR
Senior user
Senior user
Posts: 4581
Joined: 2006-08-21 15:38
Location: Denmark

Re: Problems with configuration

Post by SorenR » 2021-05-05 13:21

palinka wrote:
2021-05-05 12:58
SorenR wrote:
2021-05-05 11:07
Try adding 444-333-222-111-no100.tbcn.telia.com (orwhateveritreallyis) in the [Names] tab in your domain and send an email to johang(a)444-333-222-111-no100.tbcn.telia.com ;-)
I just tried it and it worked! Message sent from gmail received at test@pool-1.2.3.4.blah.fios.verizon.net. :mrgreen:

Code: Select all

Return-Path: mygmailusername@gmail.com
X-Spam-Checker-Version: SpamAssassin 3.4.2 (svnunknown) on MyServer
X-Spam-Level: 
X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,
 RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,
 RCVD_IN_NSZONES_WL_W,RCVD_IN_SPFBL_WL_W,SPF_HELO_NONE,SPF_PASS autolearn=ham
 autolearn_force=no version=3.4.2
X-Spam-Virus: _CLAMAVRESULT_
Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) by
 mydomain.tld with ESMTPS (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256
 bits=128) ; Wed, 5 May 2021 06:51:47 -0400
Received: by mail-ej1-f41.google.com with SMTP id b25so2124582eju.5 for <test@pool-1.2.3.4.blah.fios.verizon.net>;
 Wed, 05 May 2021 03:51:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to;
 bh=UVJXiWLKNlsJgC8L6s9AxS7pe5mQ5L+Fh3Mr6jlspHE=; b=VVUCFhc/zXpTA9bJRRbp1NblA8a/9W6K1XPPgHdIkTx2K9tS+60zOXk7xN3IdoIt8M
 jX9cgLg8chsC13oCv+z/pH3wCHTCMGkmLn8IOmlile99kSjvLE+joxf1RKnQReLGYaow
 ylwW6DcHasxEm17asASokKRDS1IHARlq6tSkLJCa6NEwbPnIJGi+81WoVqN83eKH46AA
 JH9xaXN1fzN+Ad5OCdRlxYM8Qv83roebgEplvRMR6mUyVNhzsswLkqnN76XQhGCvTANJ
 LDoxGwfVRMFlNGoEGycwVGwFQxOMsuvptdXtQ1T46EukaL4adGk3ib5HJDv5CrZ+uUIQ q4YQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=UVJXiWLKNlsJgC8L6s9AxS7pe5mQ5L+Fh3Mr6jlspHE=; b=CeqRtphbwvFa4NANgec15lFdoHOe47B8bKhNNG0+xxFLpW2GcMsXg17eVAReJ0Gokt
 yuf3DVHqfXYNmFORXt0Y9aHtmzx9OltKlsAPMIO+2p6pGTXJKJ68dGnes3ZpqNx9XH0D
 5Zv4HUiikpZ6uGOU1LQvsmKPcC1IObwD0vd0Xf14SlEv2lG/Udxy4EssDz3SD1WIiJIf
 4URb3WZ5l1zn4H9YSZ3m6hLGDkJv0RLgR/2KxTKbET7zJ37ZzQlHQR0yRIPHRQNV07Z2
 CKnTQ8SF5K696Yj7I/2HLkGpw5jdkZ+OsadI+AFw8UyLbihhwTyK+3BRfq/DUTfxVzIx qA7A==
X-Gm-Message-State: AOAM530MnBjCnyLDJIqTYP4ATyjdKCdLwLjmTp3uGF9zraf/aDBw+WRn
 c92Gwp87Ur7y1ArqMN0KmuSAmnZ9gg53o+5wHX7zO/as
X-Google-Smtp-Source: ABdhPJzI48rIaVMSNBWEia1FJlr3cq+pitT02U8LCKyj6v98lJ21OySMP91f6OLjl+00smSA5G/xLxz3JMNYYEDRmfQ=
X-Received: by 2002:a17:906:c0c3:: with SMTP id bn3mr11907221ejb.498.1620211898020; Wed,
 05 May 2021 03:51:38 -0700 (PDT)
MIME-Version: 1.0
From: My Gmail <mygmailusername@gmail.com>
Date: Wed, 5 May 2021 06:51:27 -0400
Message-ID: <DGF19DOSt8G33GHgUXg2pfh6-fqknuBZWMFQsfjaUC4UW3t1B0g@mail.gmail.com>
Subject: Good morning
To: test@pool-1.2.3.4.blah.fios.verizon.net
Content-Type: multipart/alternative; boundary="000000000000a477ec05c192faed"
X-hMailServer-Reason-Score: 0
oclient: 209.85.218.41##25
X-hMailServer-MsgID: 19022
X-Envelope-IPAddress: 209.85.218.41
X-Envelope-To: test@pool-1.2.3.4.blah.fios.verizon.net
X-Envelope-OriginalTo: test@pool-1.2.3.4.blah.fios.verizon.net
X-Envelope-From: mygmailusername@gmail.com

--000000000000a477ec05c192faed
Content-Type: text/plain; charset="UTF-8"

hello.

--000000000000a477ec05c192faed
Content-Type: text/html; charset="UTF-8"

<div dir="ltr">hello.</div>

--000000000000a477ec05c192faed--
Google search: Whatsmyip
If your ip shows as 1.2.3.4 add "[1.2.3.4]" to the Names tab and send mail to test@[1.2.3.4] and see what goes ;-)

If you don't receive the email then your server is NOT RFC compliant!
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Re: Problems with configuration

Post by Tracer » 2021-05-05 19:16

johang wrote:
2021-05-04 16:12
Tracer wrote:
2021-05-04 10:50
Hello. I need help. I want to make a local email server (that's why I'm asking here) that can communicate through the internet. But there is a huge problem. I can't log in or send emails to my server. Configuration is shown below. Does anyone know how to solve it?

https://imgur.com/a/tPknw40
https://imgur.com/a/tOcG631
https://imgur.com/a/hiBZzXN
on your server run diagnostics found at: viewtopic.php?f=20&t=30914 and post here so we can see it...

Is you server/computer directly connected to the internet ? if so .. have you opened local firewall with corresponding ports of server/computer?
Is your server/computer connected through a router/firewall to the internet ? if so.. have you done the port forwarding required ?

you state you cant log in..
have you tried installing a emailclient locally on your server.. does that work ?
have you tried connecting with an emailclient in the same LAN does that work ?
have you verified that your server is reachable on the right ports from internet ?
Is you server/computer directly connected to the internet ? if so .. have you opened local firewall with corresponding ports of server/computer?
Firewall disabled, connected to internet
Is your server/computer connected through a router/firewall to the internet ? if so.. have you done the port forwarding required ?
I don't think so but its not working even locally.

Code: Select all

2021-05-05   Hmailserver: 5.6.7-B2425

DOMAINS

   "Domain1.com" - hoxxxx.17xxxxxxxxx.cixxxxx.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:   True                              Antivirus:   True !! ANTIVIRUS NOT CONFIGURED !!
     IMAP:   True                              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 -  True


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:   True                              Antivirus:   True !! ANTIVIRUS NOT CONFIGURED !!
     IMAP:   True                              SSL/TLS:    False

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


------------------------------------------------------
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: host26.176-107-169.citysat.com.pl
                     Host: Domain1.com         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: True

  Paths:-
    Current:  D:\Program Files (x86)\hMailServer\Logs\hmailserver_2021-05-05.log  - !! NOT PRESENT !!
    Error:    D:\Program Files (x86)\hMailServer\Logs\ERROR_hmailserver_2021-05-05.log
    Event:    D:\Program Files (x86)\hMailServer\Logs\hmailserver_events.log - Not present
    Awstats:  D:\Program Files (x86)\hMailServer\Logs\hmailserver_awstats.log
                        APPLICATION -    True
                        SMTP        -    True
                        POP3        -    True
                        IMAP        -    True
                        TCPIP       -    True
                        DEBUG       -    True
                        AWSTATS     -    True
-----------------------------------------------------------------------------------------------

SYSTEM TESTS

Database type: MSSQL Compact

IPv6 support is available in operating system.

ERROR: Backup directory has not been specified.

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

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

HMAILSERVER.INI

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

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

Generated by HMSSettingsDiagnostics v2.01, Hmailserver Forum.

Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Re: Problems with configuration

Post by Tracer » 2021-05-05 19:17

mattg wrote:
2021-05-05 02:42
Tracer wrote:
2021-05-04 10:50
Hello. I need help. I want to make a local email server (that's why I'm asking here) that can communicate through the internet.
You need a few things including a real domain, that you own with dns records to match a mail server

Please check your knowledge against the 'technical knowledge' at the bottom of this page
https://www.hmailserver.com/documentati ... quirements
Thats the only domain I know. If its not real domain then can I use public IP?

Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Re: Problems with configuration

Post by Tracer » 2021-05-05 19:21

have you tried installing a emailclient locally on your server.. does that work ?
Yes. I cannot connect to email client.
have you tried connecting with an emailclient in the same LAN does that work ?
Nope. Doesnt work.
have you verified that your server is reachable on the right ports from internet ?
Its not reachable from internet.

User avatar
SorenR
Senior user
Senior user
Posts: 4581
Joined: 2006-08-21 15:38
Location: Denmark

Re: Problems with configuration

Post by SorenR » 2021-05-05 19:32

mattg wrote:
2021-05-05 02:42
Tracer wrote:
2021-05-04 10:50
Hello. I need help. I want to make a local email server (that's why I'm asking here) that can communicate through the internet.
You need a few things including a real domain, that you own with dns records to match a mail server

Please check your knowledge against the 'technical knowledge' at the bottom of this page
https://www.hmailserver.com/documentati ... quirements
Actually NO!

RFC-5321

Domain/Hostname -> 2.3.5
Address Literal -> 4.1.3

Minimum requirement is an IP address.
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

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

Re: Problems with configuration

Post by mattg » 2021-05-06 01:08

Protocols >> SMTP >> Advanced >> bind to address = MAKE THIS BLANK
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
mattg
Moderator
Moderator
Posts: 21449
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Problems with configuration

Post by mattg » 2021-05-06 01:22

SorenR wrote:
2021-05-05 13:21
palinka wrote:
2021-05-05 12:58
SorenR wrote:
2021-05-05 11:07
Try adding 444-333-222-111-no100.tbcn.telia.com (orwhateveritreallyis) in the [Names] tab in your domain and send an email to johang(a)444-333-222-111-no100.tbcn.telia.com ;-)
I just tried it and it worked! Message sent from gmail received at test@pool-1.2.3.4.blah.fios.verizon.net. :mrgreen:

Google search: Whatsmyip
If your ip shows as 1.2.3.4 add "[1.2.3.4]" to the Names tab and send mail to test@[1.2.3.4] and see what goes ;-)

If you don't receive the email then your server is NOT RFC compliant!
I tried this

Sending mail from my gmail account, Google removes the square braces. I had to remove the square braces in my hMailserver domain names tab to receive that mail.

Also noted that the this doesn't work for IPv6 addresses. gMail says that the recipient address is malformed
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

mikedibella
Senior user
Senior user
Posts: 500
Joined: 2016-12-08 02:21

Re: Problems with configuration

Post by mikedibella » 2021-05-06 01:39

mattg wrote:
2021-05-06 01:22
I had to remove the square braces in my hMailserver domain names tab to receive that mail.
So, what would the best practice be for setting up an "address-based" domain in hMailServer? Does the domain have to be "[1.2.3.4]" with a Name alias "1.2.3.4", or should the Domain be created as "1.2.3.4" with no Name alias, but the address format remain name@[1.2.3.4]?

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

Re: Problems with configuration

Post by mattg » 2021-05-06 02:12

Maybe add both as 'names' to the primary domain

Would you send email from name@[1.2.3.4] and expect it to be read?
Should that be DKIM signed? should there be an spf record, a DMARC record, a DANE etc

If you going to the trouble of setting up a DNS listing, surely you'd just use a real domain name (assumes that you can actually set these records for a IP address on a DOMAIN NAME Server)
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

mikedibella
Senior user
Senior user
Posts: 500
Joined: 2016-12-08 02:21

Re: Problems with configuration

Post by mikedibella » 2021-05-06 02:31

My guess is this an a use case for intranet alert messaging where the MUA (printer, router, etc) has been over-built and only a destination address can be specified and not a relay. The MAU wants to resolve the relay from the address, like an MTA would, but the authority doesn't want to have to assign a name to the server. A real corner-case to be sure, but worth thinking through nonetheless. I agree that it would be unusual to implement this for Internet messaging.

User avatar
SorenR
Senior user
Senior user
Posts: 4581
Joined: 2006-08-21 15:38
Location: Denmark

Re: Problems with configuration

Post by SorenR » 2021-05-06 08:23

mikedibella wrote:
2021-05-06 02:31
My guess is this an a use case for intranet alert messaging where the MUA (printer, router, etc) has been over-built and only a destination address can be specified and not a relay. The MAU wants to resolve the relay from the address, like an MTA would, but the authority doesn't want to have to assign a name to the server. A real corner-case to be sure, but worth thinking through nonetheless. I agree that it would be unusual to implement this for Internet messaging.
This is the way the internet worked in the beginning!
SørenR.

Algorithm (noun.)
Word used by programmers when they do not want to explain what they did.

Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Re: Problems with configuration

Post by Tracer » 2021-05-06 09:49

Which ports should I open? I can connect to my email client locally but I haven't opened ports yet.

User avatar
johang
Senior user
Senior user
Posts: 534
Joined: 2008-09-01 09:20

Re: Problems with configuration

Post by johang » 2021-05-06 09:52

Tracer wrote:
2021-05-05 19:16
Is you server/computer directly connected to the internet ? if so .. have you opened local firewall with corresponding ports of server/computer?
Firewall disabled, connected to internet
ok. local firewall on PC/Server is disabled, ( yes you might be connected to internet but its a VERY BIG difference in being directly connected to the internet or through a modem/router with NAT, which security wise hides your computer from the internet through its Network Address Translation functionality )

i dont believe your server is directly connected to the internet !
Is your server/computer connected through a router/firewall to the internet ? if so.. have you done the port forwarding required ?
I don't think so but its not working even locally.
your provider citystat delivers internet connection via a modem/router with or without wifi.
https://www.citysat.com.pl/internet/

if you have a Technicolor CGA2121 WiFi-modem look on google how to log in and configure https://www.google.com/search?q=configu ... e&ie=UTF-8

if you have some other equipment.. search on google howto configure it.

I believe your server is connected to the internet via ISP delivered equipment ( modem/router) that uses NAT to connect your home network to the internet
i do not believe you have made the necessary port forwarding required to open for the traffic to reach your server.

Tracer wrote:
2021-05-05 19:21
have you tried installing a emailclient locally on your server.. does that work ?
Yes. I cannot connect to email client.
possibly language barrier here.. ( cannot connect to client says you cant open the program; emailclient do not connect to server indicates you have wrong configuration, i believe your configuration is wrong )
an email client is for example Microsoft Outlook or Mozilla Thunderbird, and it should be locally installed on your server.
you configure your local emailclient to connect to the local IP or local name of your server, if you have an emailclient locally installed on server you can always connect networkwise locally to the IP 127.0.0.1 ( which is localhost )
and if you want to get the IP of your computer/server: open a command prompt, and at the CMD write "ipconfig"; it will show your local IP "IPV4 address", it will also show your "default gateway" which is the IP to your modem/router.
have you tried connecting with an emailclient in the same LAN does that work ?
Nope. Doesnt work.
when inside your LAN ( at home ) you configure clients to use your home local IP addresses of server ( which you know via "ipconfig" command run on server) if you want to test if the server is "working"
have you verified that your server is reachable on the right ports from internet ?
Its not reachable from internet.
I believe you have to configure the City-Sat equipment with port forwarding

Tracer wrote:
2021-05-05 19:17
Thats the only domain I know. If its not real domain then can I use public IP?
it IS a real domain, you can use that hostname.subdomain.domain.com and you can use the public IP; but if your ISP swap the IP ( you are getting the IP and name via DHCP ) it will just stop working ( until you reconfigured mailserver to accept mail on the "new" ip/domain).
BUT it is better to run a server on your own domain, because if you swap ip or service from the ISP ( go from ADSL to fiber ) or swap ISP, you are in charge of the domain name, now if your ISP swaps IP/hostname you have to tell all your emailcontacts to shift emailadress alltogether if it happens since you no longer will be able to get those emails on the old "domain" ( specific hostname.subdomain.domain.com )



IF you want to run a server behind NAT you have to configure your network to always have the same local IP on your server ( otherwise if you reboot server your router may give your server a "new" local IPadress and then the portforwarding will not work anymore )
___________________________________________________________end of the line

User avatar
johang
Senior user
Senior user
Posts: 534
Joined: 2008-09-01 09:20

Re: Problems with configuration

Post by johang » 2021-05-06 10:00

Tracer wrote:
2021-05-06 09:49
Which ports should I open? I can connect to my email client locally but I haven't opened ports yet.
you can always search in forum, this is a good start:
viewtopic.php?t=32867
___________________________________________________________end of the line

Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Re: Problems with configuration

Post by Tracer » 2021-05-06 11:06

ok. local firewall on PC/Server is disabled, ( yes you might be connected to internet but its a VERY BIG difference in being directly connected to the internet or through a modem/router with NAT, which security wise hides your computer from the internet through its Network Address Translation functionality )
Probably yes. I'm connected to my router through ethernet cable which is itself connected to the modem to provide internet over the whole network.
i do not believe you have made the necessary port forwarding required to open for the traffic to reach your server.
I haven't done it yet.
possibly language barrier here.. ( cannot connect to client says you cant open the program; emailclient do not connect to server indicates you have wrong configuration, i believe your configuration is wrong )
an email client is for example Microsoft Outlook or Mozilla Thunderbird, and it should be locally installed on your server.
you configure your local emailclient to connect to the local IP or local name of your server, if you have an emailclient locally installed on server you can always connect networkwise locally to the IP 127.0.0.1 ( which is localhost )
and if you want to get the IP of your computer/server: open a command prompt, and at the CMD write "ipconfig"; it will show your local IP "IPV4 address", it will also show your "default gateway" which is the IP to your modem/router.
I meant connecting to the client email address.
when inside your LAN ( at home ) you configure clients to use your home local IP addresses of server ( which you know via "ipconfig" command run on server) if you want to test if the server is "working"
But I still can use 127.0.0.1 because Im testing it on the same machine.
I believe you have to configure the City-Sat equipment with port forwarding
Thats what Im asking rn. Which ports should I open?
Last edited by Tracer on 2021-05-06 11:11, edited 1 time in total.

Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Re: Problems with configuration

Post by Tracer » 2021-05-06 11:07

johang wrote:
2021-05-06 10:00
Tracer wrote:
2021-05-06 09:49
Which ports should I open? I can connect to my email client locally but I haven't opened ports yet.
you can always search in forum, this is a good start:
viewtopic.php?t=32867
ty. I'll try it now.

Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Re: Problems with configuration

Post by Tracer » 2021-05-06 11:13

Now I opened my ports and it looks like I can send emails but I cannot receive them.

User avatar
johang
Senior user
Senior user
Posts: 534
Joined: 2008-09-01 09:20

Re: Problems with configuration

Post by johang » 2021-05-06 12:13

Tracer wrote:
2021-05-06 11:13
Now I opened my ports and it looks like I can send emails but I cannot receive them.
you can test if your server is reachable on the internet with any online portscanner..
for example https://www.ipfingerprints.com/portscan.php chose range or which ports you want to test

to check answers from an email server there is always https://mxtoolbox.com/SuperTool.aspx , put in your ip or hostname and chose test emailserver

note.
your ip responds to ping, NO ports are open
( either the configuration of the modem/router with portforwarding of TCP port 25 into your server is not right, or your servers local firewall is not opened on TCP port 25 .. or both of these things.. )
___________________________________________________________end of the line

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

Re: Problems with configuration

Post by mattg » 2021-05-06 15:30

mattg wrote:
2021-05-06 01:08
Protocols >> SMTP >> Advanced >> bind to address = MAKE THIS BLANK
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Re: Problems with configuration

Post by Tracer » 2021-05-08 11:41

johang wrote:
2021-05-06 12:13
Tracer wrote:
2021-05-06 11:13
Now I opened my ports and it looks like I can send emails but I cannot receive them.
you can test if your server is reachable on the internet with any online portscanner..
for example https://www.ipfingerprints.com/portscan.php chose range or which ports you want to test

to check answers from an email server there is always https://mxtoolbox.com/SuperTool.aspx , put in your ip or hostname and chose test emailserver

note.
your ip responds to ping, NO ports are open
( either the configuration of the modem/router with portforwarding of TCP port 25 into your server is not right, or your servers local firewall is not opened on TCP port 25 .. or both of these things.. )
Ports 25, 465, 587, 993 and 995 are open but hMailServer is only using ports 25 and 587

Results for MX SMTP domain: https://imgur.com/a/UmUXPcP
Last edited by Tracer on 2021-05-08 11:45, edited 1 time in total.

Tracer
New user
New user
Posts: 10
Joined: 2021-05-04 10:41

Re: Problems with configuration

Post by Tracer » 2021-05-08 11:41

mattg wrote:
2021-05-06 15:30
mattg wrote:
2021-05-06 01:08
Protocols >> SMTP >> Advanced >> bind to address = MAKE THIS BLANK
it is blank

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

Re: Problems with configuration

Post by mattg » 2021-05-08 22:06

Not according to your dianostics
Tracer wrote:
2021-05-05 19:16

Code: Select all

2021-05-05   Hmailserver: 5.6.7-B2425
-----------------------------------------------------------------------------------------------

PROTOCOLS

SMTP
GENERAL             DELIVERY                  RFC COMPLIANCE            ADVANCED
No. Connections:  0  No Retries:  4 Mins: 60   Plain Text:        False  Bind: host26.176-107-169.citysat.com.pl
                     Host: Domain1.com         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: "."
-----------------------------------------------------------------------------------------------
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                
-----------------------------------------------------------------------------------------------
Generated by HMSSettingsDiagnostics v2.01, Hmailserver Forum.
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
johang
Senior user
Senior user
Posts: 534
Joined: 2008-09-01 09:20

Re: Problems with configuration

Post by johang » 2021-05-09 10:23

Tracer wrote:
2021-05-08 11:41
johang wrote:
2021-05-06 12:13
Tracer wrote:
2021-05-06 11:13
Now I opened my ports and it looks like I can send emails but I cannot receive them.
you can test if your server is reachable on the internet with any online portscanner..
for example https://www.ipfingerprints.com/portscan.php chose range or which ports you want to test

to check answers from an email server there is always https://mxtoolbox.com/SuperTool.aspx , put in your ip or hostname and chose test emailserver

note.
your ip responds to ping, NO ports are open
( either the configuration of the modem/router with portforwarding of TCP port 25 into your server is not right, or your servers local firewall is not opened on TCP port 25 .. or both of these things.. )
Ports 25, 465, 587, 993 and 995 are open but hMailServer is only using ports 25 and 587

Results for MX SMTP domain: https://imgur.com/a/UmUXPcP
according to your configuration posted earlier ( i do not know if you have changed it since then )
Tracer wrote:
2021-05-05 19:16

Code: Select all

2021-05-05   Hmailserver: 5.6.7-B2425
-----------------------------------------------------------------------------------------------

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                
-----------------------------------------------------------------------------------------------
Generated by HMSSettingsDiagnostics v2.01, Hmailserver Forum.
your hmailserver is configured to answer on 25 110 143 587, and if you port forward those ports through your modem/router they should answer from internet.

since the ports110 and 143 is not a default choice when using encryption (TLS/SSL) for communcation, many server administrators that run email servers add port 465 ( "secure SMTP" ), add port 995 ("secure POP3") and port 995 ("secure IMAP") and configure them to use STARTTLS, TLS/SSL so clients that connect via internet communicates with encryption so passwords and usernames is not sent in "cleartext" format for others to sniff ( for example in free wifi networks and cafe's and other insecure places ).


a couple of days ago i noticed you had your server up and running and answering on port 25 from internet, but not right now it seems.
___________________________________________________________end of the line

Post Reply