Limesurvey notification emails will not send - phpmailer

I've recently noticed an issue with my Limesurvey installation. Until recently, I had a number of surveys set to email the user after submission (using {email} in the "Send detailed admin notification email" box to refer to an email question in the survey). However despite not manually changing anything, they no longer send. Some others do send from within limesurvey, for example from the "Create new admin" option, while token related emails will not.
In the case of token invitations, the debugging there will say emails sent when using php, but the test emails never arrive (multiple emails tested). When using SMTP, I get the below:
SMTP connect() failed... Some emails were not sent because the server did not accept the email(s) or some other error occured.
I should note that while I first noticed this in existing surveys in version 2.73.0, I've since done a fresh install of 3.1 and created a test survey. So this is pointing at a server config issue, but I haven't had any issues with emails sending except in this specific case.
Any suggestions of particular places to look would be much appreciated!

Did you try to change the email method in settings (https://manual.limesurvey.org/Global_settings/en#Email_settings)?
Email method: This determines how emails are being sent. The following options are available:
PHP (default value): uses internal PHP mail function
Sendmail : uses sendmail mailer
SMTP : based on SMTP relaying. Use this setting when you are running LimeSurvey on a host that is not your mail server
Make sure that you are using your SMTP configured email (Global settings -> Email settings) if you use SMTP, otherwise there might be a chance that the following error is displayed: 'SMTP -> ERROR: RCPT not accepted from server: 553 5.7.1 : Sender address rejected: not owned by user'
Qmail : Set this if you are running the Qmail mailer

Related

PHPMailer bounce email address shows in sender mailbox

I am using a PHP script to send emails using PHPMailer (on an ovh web server).
With the following script :
$mail->isMail();
......
$mail->addReplyTo('postmaster#mydomain.fr', 'Site');
$mail->SetFrom('postmaster#mydomain.fr', 'Site');
Emails get delivered to my gmail account BUT not to other addresses (e.g. my Business email).
With the following script :
$mail->isMail();
......
$mail->addReplyTo('postmaster#mydomain.fr', 'Site');
$mail->Sender = 'postmaster#mydomain.fr';
Emails get delivered to other addresses (e.g. my Business email) BUT not to gmail.
Also the sender appears as
bounce-id=D004=U58180. …… .net
which is not so friendly.
Is there a way to solve those issues ?
Using setFrom by itself will result in Sender being set to the same value as your from address (look at the code in the setFrom method). So in your second example you're setting the envelope sender, but not the from address, which is likely not what you want.
You may find it easier to use SMTP to localhost instead of isMail(); just changing that method to isSMTP() should be enough to do that. That way you can set SMTPDebug = 2 and see exactly what your local mail server is saying.
Separately, you don't need to set a reply-to address if it's the same as your from address – PHPMailer will simply ignore it if you try to set them to the same value anyway.

Sending smtp emails with SpringBoot application

I have a basic SpringBoot 2.0.5.RELEASE app. Using Spring Initializer, JPA, embedded Tomcat, Thymeleaf template engine, and package as an executable JAR file.
I've configured the springboot properties as follows:
spring.mail.host=smtp.gmail.com
spring.mail.username=nunet#gmail.com
spring.mail.password=nunet999!
spring.mail.properties.mail.smtp.auth = true
spring.mail.properties.mail.smtp.socketFactory.port = 465
spring.mail.properties.mail.smtp.socketFactory.class = javax.net.ssl.SSLSocketFactory
spring.mail.properties.mail.smtp.socketFactory.fallback = false
spring.mail.propertirs.mail.smtp.ssl.enable = true
and It is working fine when sending emails. I also have an email address from my domain info#nunet.com
I am using Postfix to forward the Emails from info#nunet.com to to nunet#gmail.com and its working fine.
I would like to know if there is a way to do it on the other way around. Send emails from info#nunet.com but using nunet#gmail.com smtp to avoid to install a Mail server.
or basically I would like to know how to extract the smtp properties from my linux server, because from there I can send emails using the command
cat ~/test_message | mail -s 'Test email subject line' nunet#gmail.com
I think you need Google Suite's email feature. With this feature You can create a custom email address using your own domain name then send & receive emails with Gmail (Gmail Suite).
After configuration working with Gmail's SMTP is same as you done before.
Read more: https://digital.com/blog/create-email-using-gmail/#ixzz5Sxusynvb
Basically this is possible with SMTP, but the most SMTP-Hoster don't allow it to avoid spammers to send spam. Furthermore the most E-Mail-Hoster will detected that kind of mails as spam.

Check if email exist with emailjs in node js

I'm trying to use the emailjs (https://github.com/eleith/emailjs) for sending emails in nodejs.
I want to check if email exists before sending it and I do not want to send an email to know this.
So, My question is: How to check if an email address exists on the remote server?
At the network level, receiving and sending email are different operations. In a typical email client (like outlook or a wwebmail program) they appear integrated, but that is an elaborate illusion.
Your question mentioned a npm module to use SMTP to send emails. That's the way email clients do it.
Email clients use the POP3 protocol and sometimes the IMAP protocol to read messages from mailboxes on email servers. Some npm modules handling pop3 are available for node.js, and you can use one. But you will have to create the code to "know this email exists" as you put it in your question. You will read emails from the mailbox -- all of them! -- and examine them for the information you need to "know this email exists." If the inbox you read also belongs to a person, you need to be careful to tell POP3 to leave the messages on the server.

Unable to send email to office 365 via linux command

I am trying to send email via linux command line using following command
echo "This is body part" | mail -s "this is subject" username#domain.com
If I send to gmail it works but if i send to office365 it does not work.
Could you help me?
This can also quite often be because of the mail relay server you are using (where the SMTP mail is routing through from the Linux box) not having been set up properly with public RDNS records. Many mail servers reject mail that comes from a domain without the appropriate RDNS configuration.
User checklist for "non delivered messages"
Checked Junk/Spam folder in the receiving mailbox.
Check sender mailbox for bounce (delivery problem report) mail messages.
You may receive first "warning email" after a few hours (e.g. 4h) of failing delivery attempts.
Some botched anti-spam system throw away messages "classified as spam" without any hint to the sender or the recipient -> ask admin/postmaster of the receiving mail server

Configure postfix to view catch-all address in mail header

I configured catchall for postfix as follows:-
"#vim /etc/postfix/virtual
#example.com test"
So if we send mail to xyzjsdv#example.com will get delivered to test#example.com.
But the problem was it always shows the same user name in the mail header "test#example.com". I created a script for checking the mail header, so that I need the particular user#example should be display at the mail header since I need to differentiate all the users.
Please help me how to configure the postfix, so that I will get this outcome. Sudden answers would be appreciated
Not an answer - but some questions as I have no rep I can't put comments on.
What version of postfix are you running?
I'm doing a similar thing on 2.8, and it is working as expected, ie: the message itself (not the "envelope") has the correct headers - ie: the message is unmodified.
What test message are you sending? I would suggest testing with something simple, using telnet run the following, eg:
telnet <server> 25
Connected to <server>.
Escape character is '^]'.
220 mail.example.com ESMTP
helo test.com
250 nbb-dev.safenetbox.biz
mail from:<somewhere#example.com>
250 2.1.0 Ok
rcpt to: <def#example.com>
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Sender: abc#example.com
Subject: testing
body
.
quit
For me this gives the "letter" message with the sender as "abc#example.com".
Also ensure there are no *header_rewrite* settings, except defaults (I have never used these, but could be related).
How are you getting the message, from a mailbox, or is it getting sent to a program directly? If going to a mailbox, is it getting forwarded?

Resources