I want to configure the relay for my Zimbra server
Only allow 127.0.0.0/8 and 10.1.1.0/24
I guess the setup will be place here,
Server settings > MTA > MTA Trusted Networks > 127.0.0.0/8 10.1.1.0/24
But right now I run a test and facing a problem that I configure the SMTP sending mail by using the PHP code, the code similar to below,
The server IP is 192.168.1.10, and send notification using firstname.lastname@example.org and sending email to other mail provider, example email notification.
$mail = new PHPMailer();
$mail->Host = "mail.abc.com";
$mail->CharSet = 'utf-8'; // SET UTF-8
$mail->From = "email@example.com";
$mail->FromName = "ABC Pte Limited";
$mail->Subject = "[Testing]";
and it is send successful.
Here is the question,
I do not add 192.168.1.10 as my relay and why it is able to send? can I disallow the server using our email server to send email out?
Hope someone expert can give me advice on this question.