I have initiated an email by using utl_mail.send
begin
utl_mail.send(
sender => <<sender mail>>,
recipients => <<recipient mail>>,
message => 'Hello World'
);
commit;
end;
/
But, the mail is not sent to recipient and stays in inetpub/mailroot/queue.
We verified all smtp server settings and looks fine.
We see that port 25 is also open.
Also, we stopped the smtp, cleared the queue, and re-start the smtp again. Still the issue is not resolved.
Kindly help with your valuable answers and experience. Every individual answer is appreciated.
Thanks in advance,
Subbu
Check the Event Viewer for any logs
For this you need to open the Event Viewer and goto Windows
Logs and then Application.
If its a 4.3.1 error then simply it
means the \inetpud\mailroot\ does not have proper permissions to the mailroot folder ,so give it the IIS_IUSRS and also IIS AppPool\"Your App Pool"
If the problem still persists make sure you have the vmstp setup on the local server , for this you need to have smtpclient installed on the server and go to IIS manager (not inetpub) and add a new VSMTP server .
And in the delivery choose the outbound security and then add your gmail or what ever mail you use.
And also make sure you allow port 25 through the firewall
Use telnet to try and confirm all is will by sending a very plain email. Instructions thanks to wiki (http://www.askstudent.com/techtips/how-to-use-telnet-to-send-email-over-port-25-using-smtp/):
Step # 1: First, open a command prompt. To open a command prompt window, click Start, Run and then type in cmd and press Enter. You can also press the +R to open the Run prompt and then type in cmd in the open text box.
Step # 2: You need to know a remote mail server. If you are still in school or working, there is the excellent opportunity to use your University mail server or your company’s mail server for this.
type in telnet RemoteMailServer 25 at the command prompt. The Remote mail server here in this command is the mail server of your school or company. It is usually mailhost..edu or compmail..com or something on those lines. When you press enter, you are shown a quick prompt that you are connecting to the remote mail server.
Step # 3: Introduce yourself to the mail server. Play around a bit.
type in helo mailhost at the command prompt. The mail server responds back with something like this
250 RemoteMailHost. Hello , pleased to meet you.
Step # 4: You can now enter your email address.
type in mail from: your email id # blah.com
The mail server responds back with a 250 … sender ok
Step # 5: You can now enter your receipient’s email address
type in rcpt to: recipient email id # blah.com
The mail server responds back with a “Recipient OK” message
Step # 6: Now, you are ready to type in the body of the email message.
type in data and press enter.
Now, type your message and then finally press Enter. To end your message type in a single period “.” . Your message is now in the queue
Step # 7: To complete and finish the process, type in quit and press enter. The mail server responds with a “Bye” after which you see a “Connection to host lost” message displaye
I recently ran into the same issue on server 2016. SMTP was configured using the IIS6 manager. Turns out, SMTP also had to be configured in IIS proper as well. Basically, I selected SMTP from the IIS server node, entered credentials for my smtp server and saved it. Immediately items that were stuck in the Queue folder started to get delivered. Not sure why this was necessary because I was accessing the relay from a console app, but the solution did work.
I ran into the same issue on Server 2019. My problem was that "From Email Address" used while sending from client wasn't matching what was setup on SMTP server. Once the client started sending with the correct "From Email Address", the mails were no longer stuck in the Queue.
Related
I have a problem configuring Outgoing Mail Servers.
When I click "Test Connection", I see "Connection test succeeded! Everything seems properly set up!", but when I try to create user, and I click "Send reset password instructions by email", I've got a message "Cannot send email: no outgoing email server configured. You can configure it under Settings/General Settings."
I tried with various smtp servers and I got a clue when trying gmail smtp.
Google asked me:
You can switch to an app made by Google such as Gmail to access your
account (recommended) or change your settings at
https://www.google.com/settings/security/lesssecureapps so that your
account is no longer protected by modern security standards.
When I switched off the "modern security standards" I managed to send reset password instructions, however I can't use gmail for OpenERP.
I run OpenERP on my Synology NAS and there is something that smtp servers don't like. They allow to connect, but wouldn't allow to send emails.
IP is not and issue, as I tried smtp settings from account I actually have set up in my Outlook.
I will welcome any idea to solve it.
Thanks!
I found the reason.
It makes no sense to me and I can't find the logic behind it, but this is causing the problem described.
The Company email has to be the same as ERP email servers.
this actually happens when there is not email provided for the admin user. please provide the admin user the same email address used in outgoing mail server
I had the same problem, but I solved it.
Please follow the below steps.
Go to 'My Account'
Please select the 'Connected apps & sites'
Then you will see the 'Allow less secure apps: ON' Please 'ON' that button.
Please try again to Press 'Test Connection' button.
Hope this will help you.
In my gerrit_config file, I'm specifying an email address builduser#mycompany.com for SMTP. However, when gerrit tries to send the confirmation email to a new user from the WebUI, the log show that the user gerrit2#ubuntu is bouncing off the smtp server! What gives? gerrit2 is only the linux user that installed and hosts the gerrit repos?
In other words, Gerrit seems to be completely ignoring the smtpUser settings in sendemail section.
Thanks!
AJ
I have successfully set up health monitoring for logging errors on my ASP.NET web page to the Windows Event Log, a SQL Server database, and through email (Microsoft Exchange) when I specify a user name and password in the web.config file. However, if I change from specifying a user name and password to defaultCredentials="true" in web.config, I get the following error message in my Windows Event Log when it tries to generate the email:
System.Web.HttpException (0x80004005): Unable to send out an e-mail to the SMTP
server. Please ensure that the server specified in the <smtpMail> section is
valid. ---> System.Net.Mail.SmtpException: Mailbox unavailable. The server
response was: 5.7.1 Client does not have permissions to send as this sender
I am running Windows Vista on a corporate domain. My Windows login is identical to my Microsoft Exchange login. Can anyone provide some insight as to why specifying my login credentials explicitly in the web.config file works, but using defaultCredentials="true" does not? Are there any known solutions so that I can have an automated email sent through healthMonitoring without having to store my user name and password in the web.config file?
Since I earned the tumbleweed badge for this question, I doubt an answer will be of much value to anyone else; but knowing that I will inevitably fall into the same trap at a later date, I thought I would post an answer to my own question...
Authentication is not necessary for sending emails within the same domain; so instead of specifying defaultCredentials="true", I removed all fields related to authentication, and the emails began working again.
Note that this is only a partial solution. I only need to send emails to addresses within the same domain for now. Sending emails outside of this domain will not work without authentication, so if/when that is needed, it will be back to the drawing board...
For the life of me i cannot get this to work. I've spent almost 4 hours on this and it just does not work. I would like to start hudson job when an e-mail is sent to a specific user. I looked and followed the info mentionned here: http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project
but still cannot get it to work.
Here is a summary of what i've done so far:
Modified /etc/aliases such that any email going to usr1 trigger the build as in
usr1: "|wget http://hudson-server/hudson/job/myjob/build"
I reconstructed the aliases db after making the above changes and sent out an e-mail to usr1 but nothing happened.
Our emails run on an exchange server. My hudson server sits on a linux box. I tried to use sendmail to do my testing and cannot get it to work. All of the above changes are done on linux. So i'm not sure if the issue here is with sendmail/exchange server or is something i'm missing.
Has anyone got this to work?
I appreciate your help here guys.
Britney
A couple of things to check:
Make sure that running wget http://hudson-server/hudson/job/myjob/build from the command line successfully starts a build. You may have problems if you have security on the server (or the job).
Make sure your exchange server is forwarding the mail for the email address in question to the mail server running on your linux box. If the mail isn't being received there, the wget command in aliases won't ever get executed.
How are you sending the email to usr1? Are you sending it from the same Linux box where the /etc/aliases is located?
To test your setup, on your Linux machine, send your email like this:
mail -s "test email to usr1" usr1#localhost
If the hudson job got executed, then your /etc/aliases setup works.
I suspect your problem could be your Linux box cannot receive emails. See if this works first before you setup the redirection in /etc/aliases. To check for incoming emails, login as usr1 and run mail at the shell prompt.
I have a server with Plesk installed.
On that I've created a domain, my-domain.com, and added and e-mail account noreply#my-domain.com with access to SMTP for sending e-mails.
With PHPMailer or Swift Mailer I am able to send via the SMTP account noreply#my-domain.com whenever the from address is outside the my-domain.com, for example info#my-second-domain.com.
Whenever I'm using an e-mail address that ends on #my-domain.com it fails.
I've tried to look in the /usr/local/psa/var/log/maillog file, but it only stores the mails that doesn't fail.
Can someone help me figure out where the problems is?
You can try this:
Delete the related domain in the qmail file /var/qmail/control/virtualdomains
Then reload/restart qmail. Now it should work.
More technical background at http://forum.parallels.com/pda/index.php/t-93222.html
Benjamin answer didn't work on my installation (Plesk 11.5), but I found another solution:
just turn off the mail service itself. It might not be the solution for everyone but it was for me (my domain's mx records pointing to another server, with some scripts sending emails here and there).
You can turn off the mail service fairly easily using Plesk GUI.
Then uncheck
However, this won't turn it off for subdomains and secondary domains you might have. No problem, just log in with ssh and run this command:
/usr/local/psa/bin/domain -u mydomain.example.com -mail_service false
And if one day you decide you want to turn it back on just replace false by true.