MyBB Community Forums

Full Version: PHP mail() function working but mails never delivered
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Everyone.

I have installed MyBB 1.6.15 on a vps. Everything works as expected except I am having a weird issue with emails.
I'm talking about notification mails and not registration email because I use MyFacebook Connect for login and signup so I don't require email activation.

What I don't receive is email for new messages for subscripted threads, or email for private messages.

The logs in Admin CP (User Mail Log, System Mail Log), show nothing, completely blank.

I tried the test script at http://docs.mybb.com/Help-Mail and I can correctly receive mail to my email address.

From what I see in /var/log/mail.log it seems that the mail messages have correctly been sent:

Quote:Sep 10 14:33:52 vpsXXXXXX postfix/anvil[19447]: statistics: max connection rate 1/60s for (smtp:unknown) at Sep 10 14:30:32
Sep 10 14:33:52 vpsXXXXXX postfix/anvil[19447]: statistics: max connection count 1 for (smtp:unknown) at Sep 10 14:30:32
Sep 10 14:33:52 vpsXXXXXX postfix/anvil[19447]: statistics: max cache size 1 at Sep 10 14:30:32
Sep 10 14:35:36 vpsXXXXXX postfix/smtpd[19469]: connect from unknown[unknown]
Sep 10 14:35:36 vpsXXXXXX postfix/smtpd[19469]: lost connection after CONNECT from unknown[unknown]
Sep 10 14:35:36 vpsXXXXXX postfix/smtpd[19469]: disconnect from unknown[unknown]

Sep 10 14:36:15 vpsXXXXXX postfix/pickup[18880]: 6FCC615217AD: uid=33 from=<www-data>
Sep 10 14:36:15 vpsXXXXXX postfix/cleanup[19475]: 6FCC615217AD: message-id=<[email protected]>
Sep 10 14:36:15 vpsXXXXXX postfix/qmgr[2466]: 6FCC615217AD: from=<[email protected]>, size=1586, nrcpt=1 (queue active)
Sep 10 14:36:17 vpsXXXXXX postfix/smtp[19477]: 6FCC615217AD: to=<[email protected]>, relay=examplemx2.example.com[212.52.84.69]:25, delay=1.7, delays=0.08/0.01/1.1/0.53, dsn=2.0.0, status=sent (250 ok:  Message 1395674758 accepted)
Sep 10 14:36:17 vpsXXXXXX postfix/qmgr[2466]: 6FCC615217AD: removed

Sep 10 14:38:56 vpsXXXXXX postfix/anvil[19471]: statistics: max connection rate 1/60s for (smtp:unknown) at Sep 10 14:35:36
Sep 10 14:38:56 vpsXXXXXX postfix/anvil[19471]: statistics: max connection count 1 for (smtp:unknown) at Sep 10 14:35:36
Sep 10 14:38:56 vpsXXXXXX postfix/anvil[19471]: statistics: max cache size 1 at Sep 10 14:35:36
Sep 10 14:40:32 vpsXXXXXX postfix/smtpd[19521]: connect from unknown[unknown]


(I am also trying to figure what are all those other connect from unknown and relative disconnects..)



So... what could it be?? It might be ISP blocking my mail? But then why it gets delivered regularly when I try the PHP mail function?

I hope someone will help unveil this mystery soon Smile
Thanks!




little side question: the theme for MyBB Community is very nice and tidy, is it freely available? Thanks.





I will answer myself so this could possibly be useful to other people too.
The reason why I was not getting emails from my forum is a bit complicated:
I have 2 mail addresses, the first one is the one with which I signed up on my own forum; the second one is configured to retrieve email from the first email box, so I can keep this other email a bit more private.
Now it happened that first email spam filtering was marking as spam the forum mails, so the second mail address could never retrieve those messages.
Actually in all this time I've had this mail setup, it never happened that I did not get forum messages or activations and that the first mail address was marking those as spam...

Or... it happened for some other messages maybe, but of course I did never notice because.. who could think of that.... Well so now I can thank MyBB for making me rethinking about my mail boxes setup.

I think it's very rare that someone else could fall in exactly the same issue.. but it's still possible! So, I thought it was nice to share my story Big Grin

See ya