Warning: The author of this contribution does not provide support for it anymore.

phpBB Digests

Problems sending mail since server move - phpBB Digests

Problems sending mail since server move

by nathan-snaffle » Mon Jul 13, 2015 10:46 pm

Hi Mark,

I've recently moved a website running the Digests mod to a new server and all of a sudden the digests have stopped sending out.

I've been banging my head against the hosting companies support team who are telling me that they've changed their spam filtering and the emails aren't going out because a "valid envelope sender" hasn't been set - which sounds like absolute rubbish to me, particularly given the same script is running on a couple of their other servers.

Nonetheless, I wanted to run it it past you so I can eliminate it and go back and tell them they're idiots :)

Copy of their response is as follows:

I would like you to inform you that we have enabled some filtering on
our mail servers which will drop mail with invalid sender addresses. The
filtering was put in place to filtering out spam, as the majority of
spam scripts which get used also have this problem and don't set a
sender correctly.

Luckily the fix is quite easy and is just a matter of modifying the
mail() function to include a 5th argument for your envelope sender.

Your PHP mail() function needs to use 5th argument for your envelope
sender as ‘-f [email protected]’ to properly send the sender address.

So the mail() function would have:
mail('[email protected]', 'the subject', 'the message', null);

It needs to be changed to:
mail('[email protected]', 'the subject', 'the message', null, '-f
[email protected]');


As I send, sounds like rubbish to me but I want to be able to say I've contact the developer and that's not the problem.

Thanks in advance.

Nathan
nathan-snaffle
Registered User
Posts: 11
Joined: Mon May 09, 2011 5:07 am

Re: Problems sending mail since server move

by MarkDHamill » Sun Nov 29, 2015 3:23 am

I am not sure if this solution will work on all email servers so it would need a lot of real world testing to make sure the email will go out regardless. It may be an option to be enabled in the ACP digests interface. It will have to wait for the digest extension and will probably not be in an initial release.
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA

Re: Problems sending mail since server move

by MarkDHamill » Wed Jan 20, 2016 7:33 pm

Please also note that digests does not directly email anything, but it calls the phpBB routine that does this, which is function send in includes/functions_messenger.php. I suggest putting in a bug report since I don't believe phpBB 3.1 has made any real changes to the email program. https://tracker.phpbb.com/secure/Dashboard.jspa
Need phpBB services or a phpBB consultant? I offer most phpBB services. Getting lost managing phpBB? Buy my book, Mastering phpBB Administration. Covers through phpBB 3.3.7. eBook and paper versions available.
User avatar
MarkDHamill
Registered User
Posts: 4933
Joined: Fri Aug 02, 2002 12:36 am
Location: Florence, MA USA