Blocking emails from script

Post Reply
samuelmf
Junior Member
Posts: 11
Joined: 21 Apr 2008, 16:13

Blocking emails from script

Post by samuelmf »

Hi, i have created a phpmail script that uses smtp auth, when the firewall is disabled the script works fine and the email arrives to the user, but when i enable the firewall the emails are blocked

This is what i found on the log file /var/log/messages
Jul 28 09:08:27 core kernel: Firewall: *TCP_OUT Blocked* IN= OUT=enp5s0 SRC=10.45.18.66 DST=127.0.0.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=50199 DF PROTO=TCP SPT=43869 DPT=465 WINDOW=29200 RES=0x00 SYN URGP=0 UID=1001 GID=1001
Sergio
Junior Member
Posts: 1715
Joined: 12 Dec 2006, 14:56

Re: Blocking emails from script

Post by Sergio »

Do you have port 465 open to send emails?
Have you tried to change that port in your script to be 25 or 587?
Post Reply