530 SMTP authentication is required.

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
CrunchyFerrett
New user
New user
Posts: 3
Joined: 2007-02-19 18:35

530 SMTP authentication is required.

Post by CrunchyFerrett » 2007-02-19 18:48

Hello All.

Currently running hMailServer 4.3-B248 with MySQL, Windows 2003 Server.

Recently (over the past 2 or 3 days) several of my employees began reporting " 530 SMTP authentication is required." rejection messages when they try to send email. This happens when sending mail to several domains, and does NOT happen when sending to others.

No changes have been made to my ISP service, or the mail server itself. The only explanation I can seem to find that relates to this error has to do with my IP's being dynamic, when they are in fact static. (I have verified this is the router. Both my Public and Private IP's are static.)

I'm not quite sure whats causing it. Below are the most recent logs (edited for security)

Can someone point me in the right direction?


"TCPIP" 4700 "2007-02-19 10:27:10.468" "Created accept socket 1368 on listening socket 1168"
"SMTPD" 4700 261 "2007-02-19 10:27:10.468" "72.156.170.28" "SENT: 220 Welcome to GCITS Mail Server"
"SMTPD" 4700 261 "2007-02-19 10:27:10.468" "72.156.170.28" "RECEIVED: EHLO CrashPCVista"
"SMTPD" 4700 261 "2007-02-19 10:27:10.468" "72.156.170.28" "SENT: 250-hmailserver[nl]250-SIZE[nl]250 AUTH LOGIN PLAIN"
"SMTPD" 4700 261 "2007-02-19 10:27:10.468" "72.156.170.28" "RECEIVED: MAIL FROM: <crash@gcits.com>"
"SMTPD" 4700 261 "2007-02-19 10:27:10.468" "72.156.170.28" "SENT: 250 OK"
"SMTPD" 4700 261 "2007-02-19 10:27:10.468" "72.156.170.28" "RECEIVED: RCPT TO: <ksingleton@habitathancock.org>"
"SMTPD" 4700 261 "2007-02-19 10:27:10.468" "72.156.170.28" "SENT: 530 SMTP authentication is required."
"SMTPD" 4700 261 "2007-02-19 10:27:10.484" "72.156.170.28" "RECEIVED: RCPT TO: <uno@gcits.com>"
"SMTPD" 4700 261 "2007-02-19 10:27:10.484" "72.156.170.28" "SENT: 250 OK"
"SMTPD" 4700 261 "2007-02-19 10:27:10.484" "72.156.170.28" "RECEIVED: DATA"
"SMTPD" 4700 261 "2007-02-19 10:27:10.484" "72.156.170.28" "SENT: 354 OK, send."
"SMTPD" 4700 261 "2007-02-19 10:27:10.687" "72.156.170.28" "SENT: 250 Queued (0.204 seconds)"
"APPLICATION" 4628 "2007-02-19 10:27:10.687" "SMTPDeliverer - Message 2429: Delivering message from crash@gcits.com to uno@gcits.com. File: C:\Program Files\hMailServer\Data\{D727E0B8-54D5-47DC-BA50-2795495EB911}.eml"
"APPLICATION" 4628 "2007-02-19 10:27:10.718" "SMTPDeliverer - Message 2429: Message delivery thread completed."
"SMTPD" 4704 261 "2007-02-19 10:27:13.984" "72.156.170.28" "RECEIVED: QUIT"
"SMTPD" 4704 261 "2007-02-19 10:27:13.984" "72.156.170.28" "SENT: 221 goodbye"
"TCPIP" 4704 "2007-02-19 10:27:13.984" "Disconnecting socket 1392 for session 261"
"TCPIP" 4704 "2007-02-19 10:30:52.359" "Created accept socket 1392 on listening socket 1192"
"POP3D" 4704 262 "2007-02-19 10:30:52.359" "72.156.170.28" "SENT: +OK Welcome to GCITS Mail Server"
"POP3D" 4700 262 "2007-02-19 10:30:52.359" "72.156.170.28" "RECEIVED: AUTH "
"POP3D" 4700 262 "2007-02-19 10:30:52.359" "72.156.170.28" "SENT: -ERR Invalid command in current state."
"POP3D" 4700 262 "2007-02-19 10:30:52.359" "72.156.170.28" "RECEIVED: USER pudge@gcits.com"
"POP3D" 4700 262 "2007-02-19 10:30:52.359" "72.156.170.28" "SENT: +OK Send your password"
"POP3D" 4700 262 "2007-02-19 10:30:52.359" "72.156.170.28" "RECEIVED: PASS <SECURITY EDIT>"
"POP3D" 4700 262 "2007-02-19 10:30:52.359" "72.156.170.28" "SENT: +OK Mailbox locked and ready"
"POP3D" 4704 262 "2007-02-19 10:30:52.375" "72.156.170.28" "RECEIVED: STAT"
"POP3D" 4704 262 "2007-02-19 10:30:52.375" "72.156.170.28" "SENT: +OK 0 0"
"POP3D" 4704 262 "2007-02-19 10:30:52.500" "72.156.170.28" "RECEIVED: QUIT"
"POP3D" 4704 262 "2007-02-19 10:30:52.500" "72.156.170.28" "SENT: +OK POP3 server saying goodbye..."
"TCPIP" 4704 "2007-02-19 10:30:52.500" "Disconnecting socket 276 for session 262"
"TCPIP" 4700 "2007-02-19 10:31:26.390" "Created accept socket 160 on listening socket 1168"
"SMTPD" 4700 263 "2007-02-19 10:31:26.390" "72.156.170.28" "SENT: 220 Welcome to GCITS Mail Server"
"SMTPD" 4700 263 "2007-02-19 10:31:26.406" "72.156.170.28" "RECEIVED: EHLO CrashPCVista"
"SMTPD" 4700 263 "2007-02-19 10:31:26.406" "72.156.170.28" "SENT: 250-hmailserver[nl]250-SIZE[nl]250 AUTH LOGIN PLAIN"
"SMTPD" 4704 263 "2007-02-19 10:31:26.406" "72.156.170.28" "RECEIVED: MAIL FROM: <crash@gcits.com>"
"SMTPD" 4704 263 "2007-02-19 10:31:26.406" "72.156.170.28" "SENT: 250 OK"
"SMTPD" 4704 263 "2007-02-19 10:31:26.406" "72.156.170.28" "RECEIVED: RCPT TO: <ksingleton@habitathancock.org>"
"SMTPD" 4704 263 "2007-02-19 10:31:26.406" "72.156.170.28" "SENT: 530 SMTP authentication is required."
"SMTPD" 4704 263 "2007-02-19 10:31:29.671" "72.156.170.28" "RECEIVED: QUIT"
"SMTPD" 4704 263 "2007-02-19 10:31:29.671" "72.156.170.28" "SENT: 221 goodbye"
"TCPIP" 4704 "2007-02-19 10:31:29.671" "Disconnecting socket 1368 for session 263"

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2007-02-19 18:57

http://www.hmailserver.com/documentatio ... r_messages
SMTP authentication is required.

You have enabled SMTP authentication for the IP range that the user is connecting from, but the user has not configured his client to use SMTP authentication. There's two ways to solve this problem. Either configure your email client to use SMTP authentication. This setting is normally found in the account settings in your email client. Or, disable SMTP authentication for the IP range. The first solution is recommended since it reduces the risk that anyone will send spam through your server.

By default, hMailServer does not require SMTP authentication for connections coming from localhost / 127.0.0.1. For connections coming from other hosts, SMTP authentication is required for deliveries to external recipients. By default, hMailServer never requires SMTP authentication for deliveries to local accounts, since that would prevent other e-mail servers to deliver email to your installation.

CrunchyFerrett
New user
New user
Posts: 3
Joined: 2007-02-19 18:35

Post by CrunchyFerrett » 2007-02-19 19:13

Wow. Quick response time, I'm impressed.
*adds a mark to the "Send hMail people some money" column.

I forgot that SMTP authentication is handled it two places. I went back and checked the "IP RANGES" section, and noticed that the "external address delivery" box had been checked.

I unchecked it, and all seems to be working again.

This is the first issue I have had with hMailServer in 63 days. If it continues to perform this well for another 27 days, my accounting department will be send you a check.

Thanks again for the quick response.

Crash

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Post by martin » 2007-02-19 19:29

The checkbox should be checked. The proper solution is to enable SMTP authentication in your email client. :)

CrunchyFerrett
New user
New user
Posts: 3
Joined: 2007-02-19 18:35

Post by CrunchyFerrett » 2007-02-19 19:43

Oh yeah, thats what I ended up doing. I just needed a quick fix for folks to send a whole bunch of back logged mail.

Once that finished, changed the server setting back to requiring authentication and set everyone up to use SMTP authent.

Thanks again

Crash

davidm@imcu.com
New user
New user
Posts: 7
Joined: 2009-02-11 22:41

Re: 530 SMTP authentication is required.

Post by davidm@imcu.com » 2009-11-17 21:21

Running this script cause me this same error??

'Bulk Email Script.vbs


'____________________________________________________________________________
'A tool used to blast emails to a XLS list of email address
'Uses CDO to talk to Exchange; it inserts the messages into the PickUp directory for Queue.

'Sam Cayze
'Rollouts
'____________________________________________________________________________

'****************************************************************************
'START - USER EDITABLE VARIABLES
'Where is the XLS located? Note, have the emails in Column A. Full Path, Quotes Needed.
excelPath = "\\10.0.50.4\e$\blat240\full\email250s\email9.txt"
'Which row does the data start / is there a header? If no header, 1; if yes, 2.
intRow = 1
'Sender Address. Example: "Joe User <Joe@Company.com>"
SenderAddress="Members@IMCU.ORG"
'From Address. Example: "Joe User <Joe@Company.com>"
FromAddress="Members@IMCU.COM"
'Testing Address
TestToAddress="davidm@imcu.com"
'Subject Line
Subject="General Fee Disclosure"
'Location of the email template, in HTML format. Use http://tinymce.moxiecode.com/examples/full.php# to create the HTML code.
'Be sure to use the format "file://e:\blat240\full\email.htm"
HTMLPath="file://\\10.0.50.4\e$\blat240\full\Email.htm"
'END - USER EDITABLE VARIABLES
'****************************************************************************
DIM cell
Dim currentWorkSheet
Dim usedColumnsCount
Dim usedRowsCount
Dim row
Dim column
Dim top
Dim left
Dim Cells
Dim curCol
Dim curRow
Dim countSend

Set objExcel = CreateObject("Excel.Application")
Set objExcel = CreateObject("Excel.Application")
objExcel.DisplayAlerts = 0
objExcel.Workbooks.open excelPath, false, true

Set currentWorkSheet = objExcel.ActiveWorkbook.Worksheets(1)
usedColumnsCount = currentWorkSheet.UsedRange.Columns.Count
usedRowsCount = currentWorkSheet.UsedRange.Rows.Count
top = currentWorksheet.UsedRange.Row
left = currentWorksheet.UsedRange.Column

'Loop through each row, and read the first 3 lines.
Cell = objExcel.Cells(1, 1).Value
Cell2 = objExcel.Cells(2, 1).Value
Cell3 = objExcel.Cells(3, 1).Value

Ret=Msgbox("The spreadsheet @ " & vbCRLF & excelPath & vbCRLF & "Contains " & usedRowsCount & " rows. (Including header, if any.) " & vbCRLF & vbCRLF _
& "First 3 Cells:" & vbCRLF & Cell & vbCRLF & Cell2 & vbCRLF & Cell3 & vbCRLF & vbCRLF & "Do you wish to send?",VBYesNo,"Bulk Emailer")
If Ret=6 then
countSend = 0
'Loop through each row, and send the email.
Do Until objExcel.Cells(intRow,1).Value = ""
Cell = objExcel.Cells(intRow, 1).Value
intRow = intRow + 1

Set myMail=CreateObject("CDO.Message")
myMail.Subject=Subject
myMail.Sender=SenderAddress
myMail.From=FromAddress
myMail.To=Cell
myMail.Fields("urn:schemas:mailheader:disposition-notification-to") = "Members@imcu.com"
myMail.Fields("urn:schemas:mailheader:return-receipt-to") = "Members@IMCU.COM"
myMail.DSNOptions = cdoDSNSuccessFailOrDelay
myMail.CreateMHTMLBody HTMLPath
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... /sendusing")=2
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... smtpserver")="10.0.50.11"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... serverport")=25
myMail.Configuration.Fields.Update
myMail.Send
countSend = countSend + 1
Loop
MsgBox countSend & " Email(s) Sent", vbInformation + vbOKOnly, "Bulk Emailer"

Else
Ret=Msgbox("Do you wish to send a test email to " & TestToAddress & "?",VBYesNo,"Bulk Emailer")
If Ret=6 then
countSend = 0
Set myMail=CreateObject("CDO.Message")
myMail.Subject=Subject
myMail.Sender=SenderAddress
myMail.From=SenderAddress
myMail.To=TestToAddress
myMail.Fields("urn:schemas:mailheader:disposition-notification-to") = "Members@imcu.com"
myMail.Fields("urn:schemas:mailheader:return-receipt-to") = "Members@IMCU.COM"
myMail.DSNOptions = cdoDSNSuccessFailOrDelay
myMail.CreateMHTMLBody HTMLPath

myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... /sendusing") = 2
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... smtpserver" ) = "10.0.50.11"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... thenticate") = cdoBasic
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... ndusername") = "members@imcu.org"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... ndpassword") = "Pa$$w0rd"
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... serverport") = 25
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/config ... iontimeout") = 60

myMail.Configuration.Fields.Update
myMail.Send
countSend = countSend + 1
MsgBox countSend & " Email(s) Sent", vbInformation + vbOKOnly, "Bulk Emailer"
end if
end if

objExcel.Quit
set myMail=nothing

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: 530 SMTP authentication is required.

Post by ^DooM^ » 2009-11-17 21:59

'A tool used to blast emails to a XLS list of email address
'Uses CDO to talk to Exchange; it inserts the messages into the PickUp directory for Queue.
hMail is not exchange and hMail has no pickup directory.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

davidm@imcu.com
New user
New user
Posts: 7
Joined: 2009-02-11 22:41

Re: 530 SMTP authentication is required.

Post by davidm@imcu.com » 2009-11-18 14:20

Is there a way to send bulk email through it though?
Last edited by davidm@imcu.com on 2009-11-18 14:53, edited 1 time in total.

westdam
Senior user
Senior user
Posts: 728
Joined: 2006-08-01 21:24
Location: Padova, Italy
Contact:

Re: 530 SMTP authentication is required.

Post by westdam » 2009-11-18 14:32

hmailserver administrator and i believe also in phpwebadmin (not sure on last statement )

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: 530 SMTP authentication is required.

Post by ^DooM^ » 2009-11-18 15:21

David please do not change your question after it has been answered it makes things very confusing.
davidm@imcu.com wrote:Is there a way to send bulk email through it though?
Yes by using a standard SMTP connection. use PHP's mail(); function for instance.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

davidm@imcu.com
New user
New user
Posts: 7
Joined: 2009-02-11 22:41

Re: 530 SMTP authentication is required.

Post by davidm@imcu.com » 2009-11-18 15:35

php mail()
This can be found in which doc?

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: 530 SMTP authentication is required.

Post by ^DooM^ » 2009-11-18 16:23

If at first you don't succeed, bomb disposal probably isn't for you! ヅ

sunzhoujian
New user
New user
Posts: 24
Joined: 2013-08-21 12:35

Re:

Post by sunzhoujian » 2013-11-28 17:44

CrunchyFerrett wrote:Wow. Quick response time, I'm impressed.
*adds a mark to the "Send hMail people some money" column.

I forgot that SMTP authentication is handled it two places. I went back and checked the "IP RANGES" section, and noticed that the "external address delivery" box had been checked.

I unchecked it, and all seems to be working again.

This is the first issue I have had with hMailServer in 63 days. If it continues to perform this well for another 27 days, my accounting department will be send you a check.

Thanks again for the quick response.

Crash
I read this post and It also solved my problem as well. Thanks and hope that it could be collected as FAQ!

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

Re: 530 SMTP authentication is required.

Post by mattg » 2013-11-28 23:25

A four year old thread!!!


Please don't add to an old thread like this.
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Post Reply