SMTP authentication

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
PeterChan
Normal user
Normal user
Posts: 87
Joined: 2018-06-23 15:45

SMTP authentication

Post by PeterChan » 2020-05-04 08:26

Hi,
Is there a way to enable SMTP authentication in hMailserver?

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

Re: SMTP authentication

Post by jimimaseye » 2020-05-04 09:19

Have you ever considered reading the documentation?

https://www.hmailserver.com/documentati ... ce_iprange

[Entered by mobile. Excuse my spelling.]
5.7 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

PeterChan
Normal user
Normal user
Posts: 87
Joined: 2018-06-23 15:45

Re: SMTP authentication

Post by PeterChan » 2020-05-04 10:27

Hi,
Sorry, due to error encountered below
535 Authentication failed. Restarting authentication process
with hMailserver, what needs to be adjusted to the server/user account? I am using correctly the user account with the password.

User avatar
RvdH
Senior user
Senior user
Posts: 1136
Joined: 2008-06-27 14:42
Location: Netherlands

Re: SMTP authentication

Post by RvdH » 2020-05-04 10:54

PeterChan wrote:
2020-05-04 10:27
535 Authentication failed. Restarting authentication process
I am using correctly the user account with the password.
Apparently you do not :shock:
CIDR to RegEx: d-fault.nl/CIDRtoRegEx
DNS Lookup: d-fault.nl/DNSTools
DNSBL Lookup: d-fault.nl/DNSBLLookup
GEOIP Lookup: d-fault.nl/GeoipLookup

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

Re: SMTP authentication

Post by mattg » 2020-05-05 00:21

Use your email address as the username

Username in the form of 'peter@example.com' and NOT just 'peter'
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

PeterChan
Normal user
Normal user
Posts: 87
Joined: 2018-06-23 15:45

Re: SMTP authentication

Post by PeterChan » 2020-05-05 06:24

Hi,
Yes, I used full account details like
oServer.User = "sender@???.com";
oServer.Password = "???";
oServer.ConnectType = SmtpConnectType.ConnectSSLAuto;
I used EASendMail package for this (in .Net application) but support of EASendMail said that current issue is "account authentication problem" and they could not help further.

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

Re: SMTP authentication

Post by mattg » 2020-05-05 09:28

Try connecting with SSL first and see if that works

I've found that .NET SSL settings can often not be what you expect

I don't use EASendMail package though but I have used .NET's built in mail classes
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

PeterChan
Normal user
Normal user
Posts: 87
Joined: 2018-06-23 15:45

Re: SMTP authentication

Post by PeterChan » 2020-05-06 08:33

Hi,
Thanks. Can you share it regarding .NET's built in mail classes?

User avatar
RvdH
Senior user
Senior user
Posts: 1136
Joined: 2008-06-27 14:42
Location: Netherlands

Re: SMTP authentication

Post by RvdH » 2020-05-06 11:04

CIDR to RegEx: d-fault.nl/CIDRtoRegEx
DNS Lookup: d-fault.nl/DNSTools
DNSBL Lookup: d-fault.nl/DNSBLLookup
GEOIP Lookup: d-fault.nl/GeoipLookup

Post Reply