Squirrelmail with Greenmail ERROR "Bad or malformed request" - email

Greenmail is a SMTP, POP3, IMAP mail mocking service ideal for mail testing to instead of a real mail server you have a stub that holds the mails for later confirmation.
Squirrelmail is a php based webmail interface that i intend to use to access greenmail but...
As soon as i try to open an email from squirrelmail i get:
ERROR: Bad or malformed request.
Query: FETCH 1 BODY[HEADER]
Server responded: Expected:'(' found:'B' Command should be ' UID |||'
That was squirrel 1.4.22, today i even tried installing svn trunk squirrelmail-20140131_0200-SVN.devel.tar.gz and got the exact same error.
Tried other webmail alternatives to squirrel but got similar error too except for atmail trial which is the only webmail client that has been able to open greenmail's mails. Telnet works well but that's too poor for what i'm trying to do here.
So if atmail can do it there must be something to be done here on squirrelmail side or perhaps some configuration related to imap i'm missing here?
Note atmail was tested with the same php 5.3.10, apache2, ubuntu precise 64 stack that squirrelmail.
To reproduce the error i've setup an open source Vagrant VM here
UPDATE 1
I'm using yawebmail web client with some handy updates to make email end-to-end testing stay in the browser. Yawebmail doesn't have the malformed request issue.
UPDATE 2
Great news! Greenmail has been moved to github and this question is now an issue in the official repo

Related

email crash after domain transfer

I'm helping a friend to migrate a website to his server, however, after the domain transfer the client's emails stopped working. I believe their email was hosted on cPanel with the old provider. What does he have to do to get the emails working again? The old service hasn't been terminated yet.
With the limited information I would recommend looking into the following.
Verify the MX records are set correctly.
Verify any subdomains they are using for example mail.domain.com or imap.domain.com etc are still pointed to the proper email server. Can verify old DNS records on previous domain server.
I would also look into the error the mail client is getting. For example is the error an auth error, server not found or something else.
You can use online tools such as https://mxtoolbox.com/ to verify that the dns records are correct.

Emails are not received in Opencart 2.3

I am using Opencart 2.3.0.2 version. I am facing issue with receiving emails from the store. I did the setting from System > Setting > Mail.
I am not getting emails from contact form or for any new order placed in the store.
I tried with SMTP and set hostname as ssl://smtp.gmail.com but in this case, when I submit contact form I am getting error
Warning: fsockopen(): unable to connect to ssl://smtp.gmail.com:465 (Connection refused)
I did search on this issue and found some solution on StackOverflow but none of them worked for me.
I tried simple mail function by creating a test page and that works for me.
I am trying to fix this issue from past 2 days but still didn't found any solution.
Help me to resolve this issue.
Thanks in advance.
It's a common problem that emails somehow don't end up in the inbox they are supposed to when sent from a web server and there are loads of possible explanations but here are 3:
Your server is blocking them on purpose, which can be configured in cPanel as described here: https://www.antropy.co.uk/blog/emails-not-arriving-using-smtp/
Your web server is thinking the destination inbox is on the server itself but you are using a remote mail service: https://www.antropy.co.uk/blog/contact-form-not-sending-email/
Your web server doesn't have very good deliverability and emails are ending up in the spam folder, so use a separate SMTP to send: https://www.antropy.co.uk/blog/how-to-stop-opencart-emails-going-to-spam-by-using-smtp/

Sender dependent relaying on Zimbra 8.7? Can it be done?

I had a server running Zimbra 8.6 and it was configured to send via any one of five external relays based upon which one of my external accounts I was sending from. This worked great until I had a server crash and rebuilt this one using the latest Zimbra 8.7.
I have read and researched and tried everything I had done for my old 8.6 system and I simply cannot get this to work! When I try to send an email from the web client to gmail I get a warning from gmail that my server's IP address and domain are not allowed to relay since they are unauthenticated. According to my postfix configuration I should be authenticating using my own gmail credentials. But, the web client seems to ignore this.
When I try logging in directly on the Zimbra box I can use sendmail with the -tf parameters to mock up an email from one of my addresses to gmail and it works just fine. It is sent and looks like it came from the proper relay domain.
Is sender dependent relaying broken on 8.7? Does it work for anyone?
Welp, I gave up and set my server up to use gmail as the external relay for all accounts, and in my admin console I set my user account to be able to send from all of my external email addresses (specifying each of them there).
Now it properly relays through gmail and still shows each message as coming 'from' the external account I select in the new message window.
Maybe this will help someone with a similar issue.

Connecting to POP3 with gmail fails

when I connect to a POP3 account using Gmail,
It shows POP3 Access Fails for that label
Here I attach a screenshot of the problem.
Error: Server is temporarily unavailable.
Server returned error "Error in RETR command: no such message"
I had this issue today. I connected to the mail server with Thunderbird. Then, I deleted spam, deleted mysterious folders named .ERROR, removed everything in the trash folder, and compacted all folders. This allowed gmail to download my email again and fixed the error.
That´s Yahoo making our lives a little harder. I was able to use during a few months now the Yahoo account from Gmail. But today I started seeing that same error. There´s nothing you can do about it. Yahoo is blocking the Mail Fetcher. Here´s a discussion on that matter --> https://productforums.google.com/forum/#!topic/gmail/oUnb3ASPc0g
You need to skip the corrupt mail:
Set fetch mail of last 30 days (90 days...) on POP setting of your POP3 account email
After that my gmail fetched successfully.
I suggest you to try with a different email client,
I had similar problem with gmail, but i was able to solved that using sparrow in mac.

Installing and configuring a barebones email server on Ubuntu

I've got an unmanaged Linux VPS running ubuntu that I'm using for the web server for a personal website. I'd like to get a barebones email server up and running. All the installation guides I've found so far are for a full-fledged email server with a webmail interface and everything. That's a lot more than I need. There's only two things I need:
My web application needs to be able to send email. Specifically, it'll be emailing me when an exception occurs.
I want all email sent to [anything]#domain.com forwarded to my personal gmail account. The server doesn't even need to retain the email or anything.
I want to reserve resources for the actual web app, so I don't want to install anything I won't need for this.
msmtp or nullmailer sounds like it would fit the bill for the former. You could use google mail for domains for the latter.
I'll Second Postfix. I've been using it since around 2000 - it's not that hard to set up. However, for what you're doing (relaying to your ISP) msmtp or nullmailer as suggested by geocar will probably do the trick - they appear to be specifically designed for this sort of role - although I've never used them so I can't really comment from experience in the way I can with Postfix.
Your web application needs a SMTP server. That server can be a hosted service like Google's or MailHop. If you really want to be an email administrator postfix should be installed HOWTO is here.
If not:
sudo apt-get install postfix