I tried to send the error report to my email account using the send error report option available in datapower XB62 appliance but i didn't receive any emails in spite of the action being successful in datapower.
I check the email SMTP settings and it was as follows :
SMTP Setting :
Server name: smtp.office365.com
Port: 587
Encryption method: TLS
In datapower the following details were used in send error report option :
SMTP Server : smtp.office365.com
Subject : TestReport
Email Address : XXXXX#YYY.com
Email Sender Address : ZZZZZ#YYY.com
The below message was displayed when i send the error report :
Send error report to 'XXXXX#YYY.com' using 'smtp.office365.com'?
i confirmed the action, i received a message Action completed successfully.
Still I didn't find anything in my mail box.
Please note that the report can be quite big so it might be size restrictions on your mail. Look in temp log directory of DataPower to find the size of the report.
Related
When our service fails to deliver an email, the rejection notification returned to the sender contains the stack trace of the code that failed. Is there a way to send the delivery notification, without the attached errors?
We have a postfix server that handles incoming emails in a catchall python script. That script uploads the email to one of our services and throws an exception in case it failed.
This is the template we are using
failure_template = <<EOF
Charset: us-ascii
From: MAILER-DAEMON (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
Postmaster-Subject: Postmaster Copy: Undelivered Mail
This is the mail system at host $myhostname.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
EOF
Expected result would be just the template notification, without the strack trace of the catch-all script.
The mail server simply includes in the bounce whatever your Python program displays on its standard error. Maybe call the script via a wrapper which saves the standard error to a sane place (or even discards it, if you are sure it never contains anything useful).
#!/bin/sh
python3 /path/to/deliver.py 2>>/var/log/deliver.log
Your mail server obviously needs to have write access to the log, and you'll probably want to set up periodic log rotation for the file.
Probably a better overall approach is for the Python program to not crash.
EDIT: I found a solution. You can find it here. I had to resort to using mailR. I could never get sendmailR to work with the Office 365 services.
I am trying to send a single email using library(sendmailR) to later send daily automated emails to about 500 people. Unfortunately, I'm suck in step 1.
It is vital that I send these emails from my institution's Outlook account. I have no idea what control settings to use in order to successfully send mails from Outlook. I checked a couple of questions but they are either using the gmail SMPT server or they do not specify the control = ... settings they used. For example:
Use sendmailR with Windows
Sending an email from R
This is what I'm working with:
from <- "<myaccount#institution.org>"
to <- "<boss#institution.org>"
subject <- "Hello from R"
body <- list("It's working.")
sendmail(from, to, subject, body,
control = list(smptServer = "oultook.office.365", port = 443))
And I'm getting the following error message:
Error in wait_for(code) :
SMTP Error: 5.7.57 SMTP; Client was not authenticated to send anonymous mail
during MAIL FROM [SN4PR0501CA0061.namprd05.prod.outlook.com]
I believe I'm not specifying the port correctly. The sendmaiLR documentation is not specific enough, but something tells me I should be writing the port as "port 443"or something along those lines.
Does anyone know what controlsettings I should be using?
I'm using SMTP Authentication Support in Drupal 7 to send mails. I'm getting this message in my watch dog log for some mail ids. "Error sending e-mail from example#example.com to recp#example.com : StartTLS not supported by server or could not initiate session."
What is the possible issue behind this error and how can I resolve this?
It already told you the StartTLS is not supported, call your hosting and let them turn it on. But my guess is they won't. You can use PHPMailer to send the email and don't forget $mail->SMTPAuth = true;
I am using FedEx (Plugin) in nopCommerce.And fill all the Necessary Details.and got error message (meter number in invalid) but when i change the url from https://wsbeta.fedex.com:443/web-services to https://gateway.fedex.com:443/web-services and now new error occur Authentication Failed. I check all the details
Twice.
And when i check admin-> system ->log
and found the the follow Details. Now I Face the problem with Authentication Failed. If u solve this please tell me how.
Log 1:
Log Level : Warning
Short message : Shipping (FedEx). Authentication Failed
Full message:
IP address: 127.0.0.1
Customer:
Page URL:
Referrer URL: /onepagecheckout
Created on: 9/15/2014 12:40:30 PM
Log 2 :
Log Level : Warning
Short message : Resource string (messages.order.product(s).shippingaddress) is not found. Language ID = 1
Full message:
IP address: 127.0.0.1
Customer:
Page URL:
Referrer URL: /onepagecheckout
Created on: 9/15/2014 1:02:52 PM
Thanks
First, make sure that your using your FedEx production credentials (key, password, account, and meter) as your test credentials will not work in their production environment.
Second, try using 'https://ws.fedex.com:443/web-services' instead of 'https://gateway.fedex.com:443/web-services'. From my understanding the 'gateway' endpoint is older.
Third, if your using the FedEx provided WSDL, you'll have to open and modify the endpoint binding located at the bottom on the WSDL file.
I've been getting the following exception when trying to send an e-mail using System.Net.Mail:
Unhandled exception in Service Thread:
System.Net.Mail.SmtpException: Mailbox unavailable. The server response was: Requested action not taken: mailbox unavailable
at System.Net.Mail.DataStopCommand.CheckResponse(SmtpStatusCode statusCode, String serverResponse)
at System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args)
at System.Net.ClosableStream.Close()
at System.Net.Mail.MailWriter.Close()
at System.Net.Mail.SmtpClient.Send(MailMessage message)
Does anyone know what this could be caused by?
This is actually an error code returned by the server you're attempting to deliver to. Usually it means the email address you're attempting to deliver to is invalid, or their mailbox is full and isn't allowed to receive anymore mail.
Either way, this isn't a problem with your code, it needs to be resolved by the admin of the mail server. (I guess unless you chose to send the mail elsewhere)
I believe this just means that the recipient's mail server retuned the response "Mailbox unavailable" i.e. the address does not exist or something along those lines.
The SMTP server is returning an error saying Requested action not taken: mailbox unavailable. Check with the SMTP server and make sure that email address can receive mail.