Oracle error on linux server when sending emails using sendmail - linux

The ORACLE application is trying to send email using send mail running on a REDHAT LINUX server and the following error comes up, I don't have access to the code being a LINUX ADMIN and the application team sits on a remote location, just want to know what this error means exactly.
> ORA-29279: SMTP permanent error: 503 5.0.0 Need RCPT (recipient)
When I check the mail Log files around the same time, I see the line below, kindly guide me through to solve this issue.
sendmail[1812]: r6P80BgT001812: lost input channel from localhost.localdomain [127.0.0.1] to Daemon0 after data

Related

Getting "Server temporarily unavailable. AUP#MXRT" while sending bulk emails (Deferred Emails)

I have a VPS server with CPanel on my domain (say mydomain.com). I have a SuiteCRM installed on a subdomain (say sub.mydomain.com) and I am sending mass emails from it in a batch of 90 every hour.
While sending the emails from the CRM (Authenticated SMTP mode) the emails are getting deferred with the error:
SMTP error from remote mail server after MAIL FROM:< myemail#mydomain.com> SIZE=562346: 451 <myemail#mydomain.com> server temporarily unavailable. AUP#MXRT
The SPF, DKIM and DMARC everything is fine.
I am suspecting it could be a max rate warning/failure (MaXRaTe hence MXRT) from the remote/recepient mail server. It is failing/deferring emails for Gmail, Yahoo and other email providers not for any company-specific emails like someone#somecompany.com
There seems a limit on emails for Gmail and other vendors. I had gone through these where Gmail specifically pointing out the limits and do's and don'ts:
https://support.google.com/mail/answer/22839?hl=en#zippy=%2Cyou-have-reached-a-limit-for-sending-mail
https://support.google.com/mail/answer/81126
In my case, I find myself well under the limit. So, why I am getting this error?
Second thought: It could be due to that I am sending 90 emails in one go. If I send emails one-by-one after a delay (say 3-5 seconds) then there won't be any problem. Enlighten me on this too.
I later realized that, even any one-to-one email I am sending via Thunderbird from my server (SMTP), even to a single recepients, is failing. I have checked check.spamhaus.org and intodns.com everything is alright there.
My Environment (Though this hardly matter in context of my problem but just in case):
BigRock's VPS Server with CPanel (Version)
Apache Version: 2.4.53
MySQL Version: 8.0.29
WHM Version: 102.0.18
CentOS Version: 7.9.2009 (Standard KVM)
Note: I haven't mentioned my actual domain name just for the privacy and security since I feel putting everything here will pose risks.

sendmail fail to deliver mail on gmail

I am using sendmail on ubuntu to send the mail from my server.
I am able to deliver the mails on my domain myid#mydoamin.com but unable to get it on myid#gmail.com .
When I checked the mail.log file is showing "stat=Service unavailable" for myid#gmail.com and "stat=Sent (t7D7KdJa029551 Message accepted for delivery" for myid#mydomain.com.
I have two another server and have done the same thing for sendmail and those servers is working very well.
I have proper hostname and host name entry in /etc/hosts file.
What would be the issue?

How to setup test SMTP server for devices on local network

I've been trying to figure this out for a couple days now. I've got a little linux box that should send email alerts and I need to test this functionality. It's a very, very basic linux box (painfully so).
Is it possible to setup a fake SMTP server on my desktop (IP:192.168.0.20) that it (192.168.0.2) can send emails to? I need to confirm that the messages are correct in content, but that's all. I'm perfectly fine having this spit out to the terminal. There's no DNS on the local network, or DHCP, I'm just using static IP addresses so it needs to work within that limitation.
I've been able to confirm with wireshark that the embedded computer is trying to do something over SMTP, but I don't see any message content at all, looks like it's just trying to talk to the server. I've also tried sending a message using "mail" but I keep getting an "SMTPclient: agent: unknown host" error, which I assume means it can't find the SMTP server I'm telling it to find.
I'm using Ubuntu 14.04 on my desktop.
Thanks!
So, as a basic test it works to just have an SMTP server running on your local machine. Installing Postfix should be all that's required. I set up the relay to our local mailserver but it wouldn't relay through. From the error messages I was getting I gather this is a DNS issue, it can't resolve where to direct the message. Watching wireshark you should be able to see the traffic and the attempt to send the message, which is something I guess. I will update when I have a better answer.

ssmtp: queuing emails when smtp server is unreachable

I have ssmtp installed and configured on my linux box. It connects to a remote smtp server provided by my hosting provider and works faultlessly.
My linux box is connected to an APC UPS, and emails are sent from the ups deamon (apcupsd) when the machine looses comms with the UPS, or the battery in the UPS becomes faulty.
apcupsd also sends out "onbattery" or "onmains" emails. The problem is however that the linux box is the only thing on the UPS, things like my router and hub are NOT on the UPS, and so switch off in the event of a power outage.
Is there anyway to have the emails queued up when the linux box is unable to connect to the smtp server, and then deliver them when everything comes online?
if I try "mailq" during a power outage, it states that the queue is empty, even tho I know that an email was generated and failed to be delivered.
Thanks in advance,
Phil.

Mailx setup in Linux - not sure if error message means configuration error

I have a Raspberry Pi that periodically sends email updates of the current IP address whenever it changes. I had it working perfectly a couple of weeks ago, and recently it is no longer sending emails properly. As far as I know I haven't changed any of the configuration files for the setup, so I cannot figure out why it no longer works. I looked in the mail logs and found this error
----- Transcript of session follows -----
554 5.0.0 MX list for emc.com. points back to mailhub.lss.emc.com
554 5.3.5 Local configuration error
550 5.1.1 password... User unknown
I know this says local configuration error, but everywhere I looked the user/password combination looks correct. What is the MX list? Thanks!

Resources