Freepbx Postfix sending emails from [email protected] and mails are not sending to the email inbox

with the same configurations I am able to send email to every domain other than the domain which is configured at

main.cf

myorigin = abc.com
inet_interfaces = localhost
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
debug_peer_level = 3
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
mailbox_size_limit = 111200000
smtp_tls_policy_maps = hash:/etc/postfix/tls_policy

relayhost = [abc-com.mail.protection.outlook.com]:25
sender_canonical_maps = hash:/etc/postfix/sender_canonical
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

so with the above configurations I am not able to send email or voicemail to abc.com but can send to gmail.com, or any another email adresses.

Due to this I am unable to receive any voicemails to abc.com which is my official domain addresses.

maillogs:

Jan 26 19:48:46 abc postfix/pickup[6639]: B7072612CFDF: uid=0 from=
Jan 26 19:48:46 abc postfix/cleanup[11292]: B7072612CFDF: message-id=[email protected]
Jan 26 19:48:46 abc postfix/qmgr[6640]: B7072612CFDF: from=[email protected], size=275, nrcpt=1 (queue active)
Jan 26 19:48:46 abc postfix/local[11294]: B7072612CFDF: to=[email protected], relay=local, delay=0.04, delays=0.02/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 26 19:48:46 abc postfix/cleanup[11292]: BD9E5612DDF1: message-id=[email protected]
Jan 26 19:48:46 abc postfix/qmgr[6640]: BD9E5612DDF1: from=<>, size=1818, nrcpt=1 (queue active)
Jan 26 19:48:46 abc postfix/bounce[11295]: B7072612CFDF: sender delivery status notification: BD9E5612DDF1
Jan 26 19:48:46 abc postfix/qmgr[6640]: B7072612CFDF: removed
Jan 26 19:48:46 abc postfix/local[11294]: BD9E5612DDF1: to=[email protected], relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Jan 26 19:48:46 abc postfix/qmgr[6640]: BD9E5612DDF1: removed

Can’t find the email in quarantine and spam or junk.

From MAILER-DAEMON Fri Jan 26 19:48:46 2024
Return-Path: <>
X-Original-To: [email protected]
Delivered-To: [email protected]
Received: by abc.com (Postfix)
id BD9E5612DDF1; Fri, 26 Jan 2024 19:48:46 +0000 (UTC)
Date: Fri, 26 Jan 2024 19:48:46 +0000 (UTC)
From: [email protected] (Mail Delivery System)
Subject: Mail Delivery Status Report
To: [email protected]
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary=“B7072612CFDF.1706298526/abc.com”
Message-Id: [email protected]

This is a MIME-encapsulated message.

–B7072612CFDF.1706298526/abc.com
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host abc.com.

Enclosed is the mail delivery report that you requested.

               The mail system

[email protected]: delivery via local: delivered to mailbox

–B7072612CFDF.1706298526/abc.com
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; abc.com
X-Postfix-Queue-ID: B7072612CFDF
X-Postfix-Sender: rfc822; [email protected]
Arrival-Date: Fri, 26 Jan 2024 19:48:46 +0000 (UTC)

Final-Recipient: rfc822; [email protected]
Action: delivered
Status: 2.0.0
Diagnostic-Code: X-Postfix; delivery via local: delivered to mailbox

–B7072612CFDF.1706298526/abc.com
Content-Description: Message Headers
Content-Type: text/rfc822-headers

Return-Path: [email protected]
Received: by abc.com (Postfix, from userid 0)
id B7072612CFDF; Fri, 26 Jan 2024 19:48:46 +0000 (UTC)
Subject: Test Email
Message-Id: [email protected]
Date: Fri, 26 Jan 2024 19:48:46 +0000 (UTC)
From: [email protected] (root)

–B7072612CFDF.1706298526/abc.com–

Guys I get this worked by adding relay host in the transport.

vim /etc/postfix/transport

abc.com relay:[abc-com.mail.protection.outlook.com]:25

sudo postmap /etc/postfix/transport

vim /etc/postfix/main.cf

relayhost = [abc-com.mail.protection.outlook.com]:25
transport_maps = hash:/etc/postfix/transport
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

this fixed the issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.