+2 votes

How can I get debugging information of, what the cause of the error is? I can send mail with some user/pwd combination and others fail. The accounts are correctly setup and user/pwd are correct. I am not using visual studio. I use the dll as a component with Magic XPA.
Thanks

by
Can you turn on logging:
https://www.limilabs.com/blog/logging-in-mail-dll

What exactly do you mean by problems?
Are you getting any exception?
What is its type, message and stack trace?
I get a 2 back from the call to SendMessage. I am using Kind of Interpreter. There is no stacktrace or such.
Smtp.SendMessage returns SendMessageResult. You probably mean the value of the Status property - it's an enum 2 means SendMessageStatus.Failure. Please examine other properties of this class (such as GeneralErrors, RejectedRecipients, RejectedRecipientsErrors, FromRejected etc) if you need to get the detailed information about the failure.
I get
OK
ICIR37 - unsolicited address for this account
I wrote a simple C# prog, to reproduce the error.

Mail.dll: 10 13:01:06 3.0.15091.1036
Mail.dll: 10 13:01:06 Checking if license file is present.
Mail.dll: 10 13:01:12 Connecting to 'smtp.rackruether.de:25', SSL: False.
Mail.dll: 10 13:01:13 S: 220 mi3 ESMTP
Mail.dll: 10 13:01:13 C: EHLO [127.0.0.1]
Mail.dll: 10 13:01:13 S: 250-mailin03.ims-firmen.de Hello x4d08cbb6.dyn.telefonica.de [77.8.203.182]
Mail.dll: 10 13:01:13 S: 250-SIZE 1048576000
Mail.dll: 10 13:01:13 S: 250-8BITMIME
Mail.dll: 10 13:01:13 S: 250-PIPELINING
Mail.dll: 10 13:01:13 S: 250-AUTH PLAIN LOGIN CRAM-MD5
Mail.dll: 10 13:01:13 S: 250-STARTTLS
Mail.dll: 10 13:01:13 S: 250 HELP
Mail.dll: 10 13:01:21 C: AUTH CRAM-MD5
Mail.dll: 10 13:01:22 S: 334 [REMOVED]
Mail.dll: 10 13:01:22 C: [REMOVED]==
Mail.dll: 10 13:01:22 S: 235 Authentication succeeded
Mail.dll: 10 13:01:41 C: MAIL FROM:<rackruether.de48@rackruether.de>
Mail.dll: 10 13:01:41 C: RCPT TO:<hommel.trading@gmx.de>
Mail.dll: 10 13:01:41 C: NOOP
Mail.dll: 10 13:01:41 S: 250 OK
Mail.dll: 10 13:01:41 S: 537-ICIR37 - unsolicited address for this account
Mail.dll: 10 13:01:41 S: 537 (http://postmaster.config-server.de/ICIR37/77.8.203.182)
Mail.dll: 10 13:01:41 S: 250 OK
Mail.dll: 10 13:01:41 C: RSET
Mail.dll: 10 13:01:41 S: 250 Reset OK
The problem is solved. Thanks for your help.
Great! What was the precise solution?
There was an address filter only for known addresses (SPAM filtering). The customer removed this setting and it works now. Thanks again.

1 Answer

0 votes

You are getting server side error (error that is returned from the server):

ICIR37 - unsolicited address for this account

You should contact your server administrator, or server documentation to get more information on what this error means exactly.

Unfortunately this is all I can say without looking at the full logs.

[Edit]

Your server rejects hommel.trading@gmx.de receipient. Please go to the address provided by your server in the error message. It states:

"ICIR37: Content were found in the e-mail, which is not allowed on this account (can be customized in account configuration)."

[Edit2]

There was an address filter only for known addresses (SPAM filtering).
The customer removed this setting and it works now. Thanks again.

by (297k points)
edited by
...