Apache James - E-mail is sent but can't fetch - james

I'm trying to setup a local Apache James mail server to development purposes but it is not working. Here is what I did so far:
Installed Apache James (v3.4.0), started service and added a user 'test#localhost'.
Setup account on Mozila Thunderbird and sent an e-mail to this address.
When I see the log, there is a message that e-mail has been spooled:
INFO 17:18:25,453 | org.apache.james.smtpserver.SendMailHandler | Successfully spooled mail Mail1582834705410-7098b596-e6ff-4536-90cd-1c27618ef0f0 from MaybeSender{mailAddress=Optional[test#localhost]} on 0:0:0:0:0:0:0:1/0:0:0:0:0:0:0:1 for [test#localhost]
But I can't fetch any message.
Is there any additional configuration to be done in order to send and fetch emails to/from local email server?
thanks,

This is a version problem. Same at me with version 3.4.0. Try with version 3.3.0. It works OK.

Related

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.

Limesurvey notification emails will not send

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

How to check a email in linux server automatically?

I have a Ubuntu 14 server, I have to assign a email account to this server, when some person write a email to this account, the server have to open this mail automatically, and check if there are a specific information, if yes some thing happen.
I suppose that the email are stored in a data base o something like that, but I not have any idea how to start.
Any Idea
First you should get confident how mail systems work in general on linux machines. A good start would be to dig into the linux documentation project, particularly the linux electronic mail administrator HOWTO, chapter 3 (how electronic mail works): http://www.tldp.org/HOWTO/Mail-Administrator-HOWTO.html#toc3
Then, you can decide to which extent you want to set up your email account on the ubuntu server (full smtp server, only mail client etc).
As #arkascha mentions in his comment, the least painful way would be to use an existing mail server and fetch mail from there. With scripts, appropriate actions can be taken once a mail has been received.
If I have correctly understood your question, what you need is a mail alias to a command.
The following may depend on the actual mail server that you use, at least it is relevant for good old sendmail, and postfix. The mail system can use an alias database (normally the file /etc/aliases) but can be hashed into a binary version. This files can contains plain aliase that simply redirect a mail address to other mail addresses, and can also contain file aliases (the mail is appended to a local file) and program aliases.
In this last case (lines are like local_address: | /path/to/program), the program is started for each mail, and it receives the message through its standard input. Read the manual for your mail server for more detailed instructions.

How to read email from command line in linux?

I have a server with roundcube installed in it. I tried sending email into it from external email with my username#servername. It turns out that I was not able to read emails (no email pops up in inbox) but when I send email to some external email address from roundcube then it works fine. I was wondering if there is any command-line code to read any emails that any user #server receives.
Yes. There is a nearly 30 yrs old 'mail' command. But an
apt-get install alpine
helped a lot as well.

How can i check mail log error .. php mail in godaddy hosting

PHP mail function is returning true but not sending the mails and I want to check the mailer logs for any bounce back from SMTP..
Godaddy says:
http://support.godaddy.com/help/article/1456/what-if-ive-reached-my-servers-smtp-limit
for vps(VIRTUAL PRIVATE SERVER)
I am having my shared server with dedicated ip.. and I can't see any such folder for mailer logs.
No comments yet.. please provide a sol where i can confirm where exactly it is blocking...
i can't move further without logs

Resources