Mail server does not recognize my mail as a valid sender - ubuntu-18.04

I am using the ubuntu 18.04 server.
When I am trying to send an email to a particular user, then this error has occurred:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
SMTP error from remote mail server after RCPT TO:<wishtosend#domain.com>:
550-Verification failed for <mymail#example.com>
550-The mail server does not recognize mymail#example.com as a valid sender.
550 Sender verify failed
What is that error?
Is there anything that I can do on my side?

I follow the steps from here and now is working perfectly.

Related

SQL Server 2016 O365 SMTP "Failure sending mail" intermittently?

We have had a recurring problem since about October, where our emails through our SQL 2016 database will intermittently fail throwing this error:
Message The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 3. Exception Message: Cannot send mails to mail server. (Failure sending mail.).
Again, some emails are successfully delivered on the first try, others are delivered on the 2nd try, and some fail to be delivered on both attempts.
We are using smtp.office365.com port 587 with basic authentication, SSL checked.
TLS 1.2 is enabled and showing correctly in email headers, but I am unable to see the cause as to why some emails are failing to go out, while others are successful.
I see no packet loss to the office smtp IP during one of these failures either. The server itself is updated to the most recent .NET framework as well.
Apologies if this information is inadequate, I am not too familiar with this whole concept and trying to learn as I go.

SSIS send email task is not working what am i doing wrong?

I am simply trying to send an email when the process is done running.
I have a simple CSV file transferring to CSV file and I have a send email task with the server name smtp.gmail.com and the port option is not there.
I have inputted all the information and getting this error when I run the whole package.
The error is this:
Error: 0xC002F304 at Send Mail Task, Send Mail Task: An error occurred with the following error message: "Failure sending mail. System.Net.WebException: Unable to connect to the remote server System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 74.125.195.109:25". Task failed: Send Mail Task
I think you have not configure the mail in Database Mail,please check below snapshot for your reference how to configure.
Open SQL SERVER>MANGEMENT>Database Mail>Right Click and Open configure database mail
and then set your Email,SMTP Account and then only you will able to send alert using SendDB Mail Task
Once you configure this in SQL Server it will definitly work for you.

Service Broker behind NAT and port forwarding results in "corrupted message has been received" error

Sending message via SQL Server Service Broker from one machine to another.
Sender - Windows Server 2012 R2 with SQL Server 2014 12.0.4213.0 Standard over NAT that has port forwarding for Service Broker from public IP:port to local SQL Server IP:port. Let's say, for example, the port is 26223 and it forwards to SQL Server 4022.
Receiver - CentOS 7 with SQL Server 2017 RC2 Express as web server with the same specific port opened for Service Broker. (updating to latest SQL Server CU - 14.0.3030.27 did not help)
I sent message from Sender to Receiver and firstly got error in sys.transmission_queue about wrong alghoritm, then I found out that I have encryption key alghoritms different on sender's and receiver's endpoints and changed receiver endpoint key encryption alghoritm to match sender's.
After that, the message I sent appeared in sys.transmission_queue with another error - Service Broker/Database Mirroring network protocol error occurred. In SQL Profiler I found more details:
Broker:Corrupted Message - A corrupted message has been received. The binary message preamble is malformed.
On the Receiver side SQL Profiler shows that:
Audit Broker Login: 4 - Negotiate Failure - An error occurred while receiving data: '996(Overlapped I/O event is not in a signaled state.)'.
Audit Broker Login: 5 - Authentication Failure
Sometimes I also got that error at Receiver side in addition to previous:
Audit Broker Login: 4 - Negotiate Failure - An error occurred while receiving data: '24(The program issued a command but the command length is incorrect.)'.
I have only one message for that instance waiting in sys.transmission_queue on Sender side.
UPDATE:
I used ssbdiagnose utility and here is what it says:
D 29835 MainServer MainDatabase Messages on conversation handle 13c07ab1-6b8d-e711-80c5-002590cb2a25 (conversation id 3a7d0dd0-c957-4fe8-a98e-1cb56713023c) from service sbSenderService to service sbReceiverService cannot be transmitted dues to the following problem: Service Broker/Database Mirroring network protocol error occurred.
An internal exception occurred: No such host is known
D 29933 WebServer WebDatabase The routing address TCP://[NAT ip address was here]:26223 for service sbSenderService does not match any of the IP addresses for MainServer
An internal exception occurred: Value cannot be null.
Parameter name: value
An internal exception occurred: No such host is known
P 29945 Cannot parse the routing address: unknown
So, the new error came into play: The routing address TCP://[NAT ip address was here]:26223 for service sbSenderService does not match any of the IP addresses for MainServer
As I understand it, my MainServer (Sender) does not know the NAT IP Address that is in TCP headers and marks that TCP package malformed, right? How to fix it?
UPDATE2: we set VPN tunnel between servers and the same errors still exists. The test CentOS server had all ports opened and no Selinux. For now I assume that Service Broker does not work between CentOS and Windows.
UPDATE3: updating to latest SQL Server CU on CentOS - 14.0.3030.27 did not help

How to access the Outlook server (to sent sms) from SSIS?

How to access the Outlook server to sent email using SSIS.There is an email account ,which can be used to sms to any mobile number using outlook server.when try to use the smtp server to send sms it gives an error
[Send Mail Task] Error: An error occurred with the following error message: "Mailbox unavailable. The server response was: 5.7.1 Unable to relay".
so,planning to use outlook server instead of smtp.
It seems, Smtp is not allowing the email account(from) to send email/sms to a domain other than internal addresses!?. Though this works perfectly fine with the outlook server
You need to use the email address for the phone number; For example my number on AT&T in USA is read more like 123456789#text.att.net. You should have something similar and you wont have to worry about SMTP or any other setting.

SQL Server DB mail Server Failure

I have a SMTP server by using which I was smoothly sending e-mails using sp db_mail.But now I am not able to send any DB mail using the same profile, all the configuration from SQL Server is fine, but instead getting the following message in Error log
Message
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2016-04-21T04:09:58). Exception Message: Cannot send mails to mail server. (Failure sending mail.).
)
P.S. By using the same SMTP server, I am able to send Mails from another IP.
The telnet thing is getting aborted when I tried it from the command line.
Any ideas?

Resources