Security and privacy

iptables firewall stops email messages to SMTP host

Picture of Adrian Scarle
Re: iptables firewall stops email messages to SMTP host

Hi Ken,

Thanks for the additional info. I find the official Debian documentation well intentioned, but sometimes you're just not sure if it's relevant or out of date.

I'm not sure what package Moodle uses to send email when using another server as an SMTP host. But it's currently working OK for me now and I'm getting Moodle update notifications and user-to-user messages via email.

A quick look suggests that it's exim4, but I'm not sure that Moodle's using it.

I'm sure my iptables config is OK now (as in my last post) and not too open on the local network. I'm glad I'm not trying to do anything too complicated with it.


Average of ratings: -
Picture of Ken Task
Re: iptables firewall stops email messages to SMTP host
Particularly helpful Moodlers

Yes, tried to suggest that about the link found for Debian.  In your IP Tables config, you don't show port 25 (the smtp port) as being liberally allowed as the other ports ... last statement there denies all that are not listed.  Think that's why some messages not being received.  Moodle was attempting to send, but blocked by the local MTA/IP Tables.

Consider installing Webmin on your server.  Perl based so even if apache/mysql/moodle down, one has access. Has lots of tools to help admin a Linux server (including exim4, I think) - even helps one find things is not known ... like the mail logs, etc.. and backup DB. etc..

'spirit of sharing', Ken


Average of ratings: -