Postfix configuration with phpmailer or mail

OS type and version Rocky latest
Webmin version Latest
Virtualmin version Latest
Related packages Postfix

Trying to setup postfix configuration with phpmailer for a virtual server. Sort of works but still having some issues. Anyone have success with this. Sample of my phpmailer setup below - curious to know what settings should be enabled and disabled on the postfix config:
BTW the main issue I am having here is that when I generate an email it works only if I send it to my main outlook address. If I try to send it to any other email address it doesn’t get received - weird.

Is there a way to reset postfix back to default settings in case I pooch the configuration?

			$mail->SMTPDebug  = 3;
			$mail->Debugoutput = 'html';
			$mail->SMTPOptions = array(
				'ssl' => array(
					'verify_peer' => false,
					'verify_peer_name' => false,
					'allow_self_signed' => true
			$mail->Encoding = "base64";
			$mail->SMTPAuth = true;
			$mail->Host = "";
			$mail->Port = 587;
			//$mail->AuthType = 'LOGIN';
			$mail->Username = "";
			$mail->Password = '--------------------------4';
			$mail->SMTPSecure = 'SSL';           
			$mail->AddAddress($school_email);//verifyable school email
			$mail->Subject    = $emailsubject;

I’m no Postfix maven, but I never had to do anything to make it work.

have you checked you mail logs for errors.

Duplicate of Mail issue: smtp cannot authenticate