Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: Jazzl on April 22, 2016, 08:17:47 AM

Title: Roundcube emails sent via yahoos imap no longer being sent
Post by: Jazzl on April 22, 2016, 08:17:47 AM
Dear All,

Recently, 3-4 weeks ago, sending emails with roundcube via ssl://imap.mail.yahoo.com:993 stopped working.

The emails do appear in the sent folder, but never reach the beneficiary. I also see the sent emails if logging on via mail.yahoo.com.
Can I conclude that this is all yahoos fault then, or is roundcube able to put the mail in the sent folder without sending it? Do other people have this problem?

My version of rc is 1.0.5. I tried installing the latest build to see if that would fix it, but get the following NOT OK:

Net_IDNA2:  NOT OK(Failed to load class Net_IDNA2 from pear.php.net; See http://pear.php.net/package/Net_IDNA2)
allow_url_fopen:  NOT OK(is '', could be '1')
register_globals:  NOT OK(is '1', could be '0')

I´m using ipage.com as my host, FYI...

Thanks in advance and have a good weekend

Best regards

Jazzl


PS: If you´re going to ask me to show something from a log file, exactly which logfile located where would that be then?
Title: Re: Roundcube emails sent via yahoos imap no longer being sent
Post by: SKaero on April 22, 2016, 10:39:00 AM
Thats you IMAP setting, SMTP is used to send mail. Check to make sure your SMTP settings match Yahoo's https://help.yahoo.com/kb/SLN4075.html
Title: Re: Roundcube emails sent via yahoos imap no longer being sent
Post by: Jazzl on April 23, 2016, 12:25:27 PM
Hmm, as far as I know these I never had to set.. yahoo would automatically know what to do once I´d logged in using the IMAP settings on the log on page.
Also, I would assume that adding to the SMTP config can be done per user, but in the settings, when logged into yahoo from roundcube, there´s nothing regarding SMTP.
Otherwise, it´d require me to amend the defaults.inc.php file, but in that case regardless of which mail provider I´m using, it´d always send via yahoo, right?
I´ve used roundcube for 2-3 years now and never had to do this before.
Title: Re: Roundcube emails sent via yahoos imap no longer being sent
Post by: JohnDoh on April 24, 2016, 01:19:47 PM
Quote
Hmm, as far as I know these I never had to set.. yahoo would automatically know what to do once I´d logged in using the IMAP settings on the log on page.
automatically? no. you need to configure it. imap and smtp are separate things, you cannot guess one from the other
 
Quote
Also, I would assume that adding to the SMTP config can be done per user, but in the settings, when logged into yahoo from roundcube, there´s nothing regarding SMTP.
again, no. smtp settings are defined for the server. in standard roundcube these are not user level settings

Quote
Otherwise, it´d require me to amend the defaults.inc.php file, but in that case regardless of which mail provider I´m using, it´d always send via yahoo, right?
you should never change any settings in defaults.inc.php but rather do it in config.inc.php otherwise your settings could be overwritten when you update your version of roundcube. there are a number of different ways of defining the smtp server, including macros based on the imap host, these are explained in the comments in the config file. so, depending on how you configure it then it would not always use the yahoo smtp servers

Quote
I´ve used roundcube for 2-3 years now and never had to do this before.
if you leave smtp_server setting blank then the php mail() function is used, may be that is what you have been doing.
Title: Re: Roundcube emails sent via yahoos imap no longer being sent
Post by: Jazzl on April 24, 2016, 03:01:48 PM
Thanks for you reply,

Yes, I´ve left it alone as you said in your last comment. But why would it then stop working now? Could it be that yahoo changed something on their side? In that case, it´s still weird that my sent box - also if logged in via http://mail.yahoo.com in the browser - keeps the messages in it as if they´d been sent.
Title: Re: Roundcube emails sent via yahoos imap no longer being sent
Post by: JohnDoh on April 25, 2016, 02:49:10 AM
The PHP mail() function is an unreliable way of sending emails. Using it for an internal mail system where you control the delivery process is one thing but using it to send emails to a third party will be problematic. Mail sent this way has a higher chance of being treated as spam.

Roundcube placed the message into your sent box after the php mail() function reported it was sent. The fact it never arrived in the recipients inbox is going to be because the recieving mail server thought it was spam.
Title: Re: Roundcube emails sent via yahoos imap no longer being sent
Post by: Jazzl on April 25, 2016, 05:20:23 AM
The PHP mail() function is an unreliable way of sending emails. Using it for an internal mail system where you control the delivery process is one thing but using it to send emails to a third party will be problematic. Mail sent this way has a higher chance of being treated as spam.

Roundcube placed the message into your sent box after the php mail() function reported it was sent. The fact it never arrived in the recipients inbox is going to be because the recieving mail server thought it was spam.

Thanks, so you´re suggesting that yahoo mail started treating all emails sent via php as spam now? I´ve only tested it between my own yahoo mail accounts, so that´d be the conclusion.

Update: Went into config.inc.php and added the following:

$config['smtp_server'] = 'ssl://smtp.mail.yahoo.com';
$config['smtp_port'] = 465;
$config['smtp_user'] = '%u';
$config['smtp_pass'] = '%p';

Seemed to do the trick, cheers big time!