It took us almost a week to figure out the problem between phpBB and the authenticated SMTP server (mail.authsmtp.com); but we did it! Now, two days after that, I almost forgot how we solved it. So, I want to write about it so that I don’t forget.
First, I tried to get phpBB configured to work directly with the SMTP server. I wasn’t successful with that, so I decided to go with the default way phpBB sends emails. The default way uses sendmail to send emails. We configured sendmail to relay on postfix and then to relay on mail.authsmtp.com; that got us really close.
Up to that point, phpBB was sending the email requests through sendmail to postfix and finally to mail.authsmtp.com; but the ‘from address’ was getting rejected. I was 100% sure that the ‘from address’ was getting set correctly; but it was still trying to send the emails as “apache@123.123.123.123″ (or something like that)
What we had to do is change the /etc/php.ini file to have this line:
After that, I restarted Apache, tried again and it worked! (lets say that etagwerker@aycron.com was an authorized ‘from address’ for mail.authsmtp.com, but it was something different)
Even after figuring this out, I kept seeing errors in the mail.authsmtp.com control console. That was because the postfix deferred queue were full with wrongly constructed email requests. After clearing that (see previous post); the problem was solved!
phpBB + authenticated SMTP problem
It took us almost a week to figure out the problem between phpBB and the authenticated SMTP server (mail.authsmtp.com); but we did it! Now, two days after that, I almost forgot how we solved it. So, I want to write about it so that I don’t forget.
First, I tried to get phpBB configured to work directly with the SMTP server. I wasn’t successful with that, so I decided to go with the default way phpBB sends emails. The default way uses sendmail to send emails. We configured sendmail to relay on postfix and then to relay on mail.authsmtp.com; that got us really close.
Up to that point, phpBB was sending the email requests through sendmail to postfix and finally to mail.authsmtp.com; but the ‘from address’ was getting rejected. I was 100% sure that the ‘from address’ was getting set correctly; but it was still trying to send the emails as “apache@123.123.123.123″ (or something like that)
What we had to do is change the /etc/php.ini file to have this line:
sendmail_path = /usr/sbin/sendmail -t -i -fetagwerker@aycron.com
After that, I restarted Apache, tried again and it worked! (lets say that etagwerker@aycron.com was an authorized ‘from address’ for mail.authsmtp.com, but it was something different)
Even after figuring this out, I kept seeing errors in the mail.authsmtp.com control console. That was because the postfix deferred queue were full with wrongly constructed email requests. After clearing that (see previous post); the problem was solved!