530 SMTP authentication is required

Use this forum if you want to suggest a new feature to hMailServer. Before posting, please search the forum to confirm that it has not already been suggested.
Post Reply
spherefrance
New user
New user
Posts: 4
Joined: 2020-09-02 12:59

530 SMTP authentication is required

Post by spherefrance » 2020-09-02 13:11

Dear all
I have read a lot of posts about this but didn't find something applicable to my issue

Mainly we are currently migrating websites from one server to a brand new one
The old server was using Hmailserver 5.3.3 B1879 and the new one is using 5.6.7 B2425

Dns, web sites and emails domain and accounts are transferred to the new server and here start the issue
Sending emails from the web sites is ok and working
Sending emails from external to local or local to external seems to be ok as well
Local to local is sending me 530 SMTP authentication is required

The allow deliveries from local to local local to external and external to local are allowed external to external is disabled
local to local and local to external require smtp authentification

In Outlook all my accounts have smtp authentication one and testing the account is ok both for pop and smtp

I still have old domain on the old server and sending from a local account to another local account is working find
On the new one still getting 530 SMTP authentication is required....

So for the few domains we have transferred people cannot send emails to each other and this is quite an urgent problem to fix before going ahead with other domains.
I have no more ideas to solve this as comparing both configurations are totally similar so any help or ideas are welcome !

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

Re: 530 SMTP authentication is required

Post by mattg » 2020-09-02 16:37

run this and post the result
viewtopic.php?f=20&t=30914
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

spherefrance
New user
New user
Posts: 4
Joined: 2020-09-02 12:59

Re: 530 SMTP authentication is required

Post by spherefrance » 2020-09-02 17:20

Code: Select all

2020-09-02   Hmailserver: 5.6.7-B2425

DOMAINS

   "Domain1.com" - paxxxxxxxxxxxx.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

   "Domain2.com" - spxxxxxxxxxxx.com              Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False     Catchall: info@Domain2.com
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:     False

   "Domain3.com" - spxxxxxxxxx.com                Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False     Catchall: sales@Domain3.com
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:     False

   "Domain4.com" - spxxxxxxxxxxx.com              Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False     Catchall: info@Domain4.com
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:     False

   "Domain5.com" - vexxx.co.uk                    Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False     Catchall: pforrest@Domain5.com
                   Max message size:        0                      Plus addressing: False
                   Max size of accounts:    0                    
                                                                   Greylisting:     False

   "Domain6.com" - zexxxxx.com                    Enabled: True

SIGNATURE         LIMITS                       DKIM               ADVANCED
  Enabled: False   Max size:                0   Enabled: False     Catchall: info@Domain6.com
                   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:  False                              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 - 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:   True                              Antivirus:   True !! ANTIVIRUS NOT CONFIGURED !!
     IMAP:  False                              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 - 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: True

  Paths:-
    Current:  C:\Program Files (x86)\hMailServer\Logs\hmailserver_2020-09-02.log
    Error:    C:\Program Files (x86)\hMailServer\Logs\ERROR_hmailserver_2020-09-02.log
    Event:    C:\Program Files (x86)\hMailServer\Logs\hmailserver_events.log - Not present
    Awstats:  C:\Program Files (x86)\hMailServer\Logs\hmailserver_awstats.log
                        APPLICATION -    True
                        SMTP        -    True
                        POP3        -    True
                        IMAP        -      .
                        TCPIP       -      .
                        DEBUG       -      .
                        AWSTATS     -      .
-----------------------------------------------------------------------------------------------

SYSTEM TESTS

Database type: MSSQL

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:  C:\Program Files (x86)\hMailServer\
Database folder: 
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=              MSSQL
Username=          sa
PasswordEncryption=1
Port=              0
Server=            DBWXG043
Internal=          0
-----------------------------------------------------------------------------------------------

Generated by HMSSettingsDiagnostics v2.01, Hmailserver Forum.

spherefrance
New user
New user
Posts: 4
Joined: 2020-09-02 12:59

Re: 530 SMTP authentication is required

Post by spherefrance » 2020-09-02 18:16

We did some other tests that clarify a little bit the issue.
So this is a complement of info related to our problem.

On the new server we have several domains migrated and sending from one to the other is ok
On the new server sending an email from one domain to an address on the same domain works too.

On the old server we have our main domain still there.
The domain has been declared already on the new server because websites are relying to the id and password to ensure emails can be send
Sending an email from the old server to an existing address on another domain present in the new server ends in 530 SMTP authentication is required.

no idea if the old and/or new server is estimating in this case adresses being local or not.
Transferred domain to the new server have been removed from the old server as well so target domain are only present in the new server
Only the main domain used for id/password in the website is present in both Hmailservers instances.

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

Re: 530 SMTP authentication is required

Post by johang » 2020-09-02 23:20

spherefrance wrote:
2020-09-02 18:16
We did some other tests that clarify a little bit the issue.
So this is a complement of info related to our problem.

On the new server we have several domains migrated and sending from one to the other is ok
On the new server sending an email from one domain to an address on the same domain works too.

On the old server we have our main domain still there.
The domain has been declared already on the new server because websites are relying to the id and password to ensure emails can be send
Sending an email from the old server to an existing address on another domain present in the new server ends in 530 SMTP authentication is required.

no idea if the old and/or new server is estimating in this case adresses being local or not.
Transferred domain to the new server have been removed from the old server as well so target domain are only present in the new server
Only the main domain used for id/password in the website is present in both Hmailservers instances.




so internally your old server still thinks its the master of "main domain" and when a user try to post from old server to a user in a domain on new server the new server has the "main domain" as well ?? so old server is saying i am "main domain" delviering mail to new server that says .. WTF i a "main domain" try to impersonate me and you will have to autheticate ?

is it like that ?

either you in the old server put in a relay configuration towards new server where you authenticate with a user and password or you simply just use new server all together ..
___________________________________________________________end of the line
spam filter appliance gateway: www.mailcleaner.org

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

Re: 530 SMTP authentication is required

Post by mattg » 2020-09-03 05:50

until the new server is fully online, create a route for any domains that are partially stored on both servers
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

spherefrance
New user
New user
Posts: 4
Joined: 2020-09-02 12:59

Re: 530 SMTP authentication is required

Post by spherefrance » 2020-09-04 10:42

We are trying those ideas right now to check if this is working or not

Post Reply