phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Problems with new topic email notifications for some recipie


 
Search this topic... | Search phpBB2 Discussion... | Search Box
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Author Message
clausl
Board Member



Joined: 27 May 2019

Posts: 18



PostPosted: Fri Aug 28, 2020 9:59 pm 
Post subject: Problems with new topic email notifications for some recipie

Some of the email recipients do no longer get new post notifications for the topics they subscribed to for notifcations.

This is because their host is blocking these email notifications.
This is what the recipient host site is saying on troubleshooting
https://web.de/email/senderguidelines/

I am unsure how to fix this. Single emails (like user signup confirmations) get through, only these new post notifications get blocked. Looking at them, one thing that does not semm to comply with the rules is their is no "to" email adress in the outgoing email (or is there?). Any idea how I fix this problem?
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 357
Location: U.S.A


flag
PostPosted: Mon Aug 31, 2020 7:18 pm 
Post subject: Re: Problems with new topic email notifications for some rec

Who are you using for your outgoing email provider?

Some things to check depending if you are using your own smtp or a third party outgoing SMTP Service.

Setup DKIM and SFP in your DNS Zone records and email server correctly for your outgoing mail server. Doing so will fix most email delivering issues - at least it did for us.

_________________
http://www.jlaforums.com
Back to top
clausl
Board Member



Joined: 27 May 2019

Posts: 18



PostPosted: Tue Sep 01, 2020 12:28 pm 
Post subject: Re: Problems with new topic email notifications for some rec

Webspace is on shared hosting

On phpbb2 board configuration SMTP is off (I tried to switch it on to see if this solves the problem, but it always causes a debug error in smtp.php when trying to send an email, even though I thought I set the smtp up correctly)

Quote:
Setup DKIM and SFP in your DNS Zone records and email server correctly for your outgoing mail server. Doing so will fix most email delivering issues - at least it did for us.

You lost me there. Got a link to a description on what is to be done for this?
Back to top
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 154
Location: Germany


flag
PostPosted: Tue Sep 01, 2020 12:44 pm 
Post subject: Re: Problems with new topic email notifications for some rec

clausl wrote:
Quote:
Setup DKIM and SFP in your DNS Zone records and email server correctly for your outgoing mail server. Doing so will fix most email delivering issues - at least it did for us.

You lost me there. Got a link to a description on what is to be done for this?

If you have shared hosting, it's unlikely that you can change the DNS Zone records. Also might turn on SMTP in phpBB settings to get the debug error message. Most likely it's a security error.
Back to top
JLA
Board Member



Joined: 30 Apr 2009

Posts: 357
Location: U.S.A


flag
PostPosted: Wed Sep 02, 2020 4:45 pm 
Post subject: Re: Problems with new topic email notifications for some rec

clausl wrote:
Webspace is on shared hosting

On phpbb2 board configuration SMTP is off (I tried to switch it on to see if this solves the problem, but it always causes a debug error in smtp.php when trying to send an email, even though I thought I set the smtp up correctly)

Quote:
Setup DKIM and SFP in your DNS Zone records and email server correctly for your outgoing mail server. Doing so will fix most email delivering issues - at least it did for us.

You lost me there. Got a link to a description on what is to be done for this?


Here is one thing that might help explain a bit
https://woodpecker.co/blog/spf-dkim/

_________________
http://www.jlaforums.com
Back to top
clausl
Board Member



Joined: 27 May 2019

Posts: 18



PostPosted: Wed Sep 02, 2020 5:59 pm 
Post subject: Re: Problems with new topic email notifications for some rec

StarWolf3000 , if I turn on SMTP I get this error

Quote:
Ran into problems sending Mail. Response: 535 5.7.8 Error: authentication failed: xxx

DEBUG MODE

Line : 132
File : smtp.php
(I removed the letters where the xxx is beofre posting here)


I can change DNS settings.

Regarding SPF. I want totry if that helps. Before I add the record I want to be sure I get the syntax right.

Would I be correct to set
Code:
v=spf1 a mx ip4:11.12.13.14 -all
with 11.12.13.14 replaced by the actual IP??

Or do I rather use
Code:
v=spf1 mx a ?all
because there already is an A record with the IP??
Back to top
clausl
Board Member



Joined: 27 May 2019

Posts: 18



PostPosted: Fri Sep 04, 2020 12:04 pm 
Post subject: Re: Problems with new topic email notifications for some rec

Okay I enabled SPF. That does not seem to change the situation

So it might be down to this point from the senderguidelines of the recipients https://web.de/email/senderguidelines/
Quote:

Ensure that the following email headers included in your message are syntactically correct: Date, From, Sender, To.
Make sure that the following headers included in your email are limited to just one each: BCC, CC, Date, From, Sender, Subject, To.


Have also enabled DKIM now
Back to top
clausl
Board Member



Joined: 27 May 2019

Posts: 18



PostPosted: Fri Sep 04, 2020 4:01 pm 
Post subject: Re: Problems with new topic email notifications for some rec

I suppose this part in functions_post.pgp (lines 1539 to 1576) would have to be amended somehow??

Code:
               $emailer->from($board_config['board_email']);
               $emailer->replyto($board_config['board_email']);

               $topic_title = (count($orig_word)) ? preg_replace($orig_word, $replacement_word, unprepare_message($topic_title)) : unprepare_message($topic_title);

               @reset($bcc_list_ary);
               while (list($user_lang, $bcc_list) = each($bcc_list_ary))
               {
                  $emailer->use_template('topic_notify', $user_lang);
      
                  for ($i = 0; $i < count($bcc_list); $i++)
                  {
                     $emailer->bcc($bcc_list[$i]);
                  }

                  // The Topic_reply_notification lang string below will be used
                  // if for some reason the mail template subject cannot be read
                  // ... note it will not necessarily be in the posters own language!
                  $emailer->set_subject($lang['Topic_reply_notification']);
                  
                  // This is a nasty kludge to remove the username var ... till (if?)
                  // translators update their templates
                  $emailer->msg = preg_replace('#[ ]?{USERNAME}#', '', $emailer->msg);

                  $emailer->assign_vars(array(
                     'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
                     'SITENAME' => $board_config['sitename'],
                     'TOPIC_TITLE' => $topic_title,

                     'U_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_POST_URL . "=$post_id#$post_id",
                     'U_STOP_WATCHING_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_TOPIC_URL . "=$topic_id&unwatch=topic")
                  );

                  $emailer->send();
                  $emailer->reset();
               }
            }
         }
Back to top
clausl
Board Member



Joined: 27 May 2019

Posts: 18



PostPosted: Fri Sep 04, 2020 5:41 pm 
Post subject: Re: Problems with new topic email notifications for some rec

Solution to the problem

I have replaced the line

Code:
$emailer->bcc($bcc_list[$i]);


by

Code:
$emailer->email_address($bcc_list[$i]);


So far it seems that this has solved the problem mentioned in the first post of this thread. So if anybody has a similar problem, you might want to try it.
What it does is, it sends the notification email to the recipient email adress in the "to" field instead of the "bcc" field.
Back to top
Display posts from previous:   
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0267 seconds using 15 queries. (SQL 0.0017 Parse 0.0009 Other 0.0241)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo