Ibrahim Bazarwala
asked on
Send mail from Postfix to Exchange server
Hello Experts,
I am getting below error when I try to sendmail from CentOS Postfix to Exchange server 2013. In main.cf file relayhost=10.10.1.54 is already added. I can able to telnet to my exchange server 10.10.1.54 but when I put rcpt to: abc@gmail.com, I get the error Unable to relay.
Oct 21 14:44:52 osticket postfix/pickup[2874]: 6A6AC160A7C: uid=48 from=<apache>
Oct 21 14:44:52 osticket postfix/cleanup[2914]: 6A6AC160A7C: message-id=<446e6b729-aAVD jwsDG-quot ation.onli ne@domain. com>
Oct 21 14:44:52 osticket postfix/qmgr[2590]: 6A6AC160A7C: from=<apache@host.domain.c om>, size=808, nrcpt=1 (queue active)
Oct 21 14:44:57 osticket postfix/smtp[2916]: 6A6AC160A7C: to=<abc@gmail.com>, relay=10.10.1.54[10.10.1.5 4]:25, delay=5.2, delays=0.06/0.07/0.02/5, dsn=5.7.1, status=bounced (host 10.10.1.54[10.10.1.54] said: 550 5.7.1 Unable to relay (in reply to RCPT TO command))
Oct 21 14:45:07 osticket postfix/cleanup[2914]: 8F172160D23: message-id=<20141021114507 .8F172160D 23@host.do main.com>
Oct 21 14:45:07 osticket postfix/qmgr[2590]: 8F172160D23: from=<>, size=2744, nrcpt=1 (queue active)
Oct 21 14:45:07 osticket postfix/bounce[2920]: 6A6AC160A7C: sender non-delivery notification: 8F172160D23
Thanks and REgards.
I am getting below error when I try to sendmail from CentOS Postfix to Exchange server 2013. In main.cf file relayhost=10.10.1.54 is already added. I can able to telnet to my exchange server 10.10.1.54 but when I put rcpt to: abc@gmail.com, I get the error Unable to relay.
Oct 21 14:44:52 osticket postfix/pickup[2874]: 6A6AC160A7C: uid=48 from=<apache>
Oct 21 14:44:52 osticket postfix/cleanup[2914]: 6A6AC160A7C: message-id=<446e6b729-aAVD
Oct 21 14:44:52 osticket postfix/qmgr[2590]: 6A6AC160A7C: from=<apache@host.domain.c
Oct 21 14:44:57 osticket postfix/smtp[2916]: 6A6AC160A7C: to=<abc@gmail.com>, relay=10.10.1.54[10.10.1.5
Oct 21 14:45:07 osticket postfix/cleanup[2914]: 8F172160D23: message-id=<20141021114507
Oct 21 14:45:07 osticket postfix/qmgr[2590]: 8F172160D23: from=<>, size=2744, nrcpt=1 (queue active)
Oct 21 14:45:07 osticket postfix/bounce[2920]: 6A6AC160A7C: sender non-delivery notification: 8F172160D23
Thanks and REgards.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Because your connector not permit relay.
You need to run this command on powershell:
Get-ReceiveConnector "Relay _connector_created" | Add-ADPermission -User 'NT AUTHORITY\Anonymous Logon' -ExtendedRights MS-Exch-SMTP-Accept-Any-Re cipient
Ensure your have only postfix ip address on your relay_connector_created, otherwise someone can use your mailserver as a source of spam.
You need to run this command on powershell:
Get-ReceiveConnector "Relay _connector_created" | Add-ADPermission -User 'NT AUTHORITY\Anonymous Logon' -ExtendedRights MS-Exch-SMTP-Accept-Any-Re
Ensure your have only postfix ip address on your relay_connector_created, otherwise someone can use your mailserver as a source of spam.
ASKER
In the above help link. Below is the paragraph
The final step involves granting anonymous users (such as the unauthenticated SMTP connections coming from applications and devices on your network) the ability to send to external recipients.
Do, i need to run the below script. Because it seems that anonymous is already checked through graphic screen.
Get-ReceiveConnector "Relay E15MB1" | Add-ADPermission -User 'NT AUTHORITY\Anonymous Logon' -ExtendedRights MS-Exch-SMTP-Accept-Any-Re c
Regards.
The final step involves granting anonymous users (such as the unauthenticated SMTP connections coming from applications and devices on your network) the ability to send to external recipients.
Do, i need to run the below script. Because it seems that anonymous is already checked through graphic screen.
Get-ReceiveConnector "Relay E15MB1" | Add-ADPermission -User 'NT AUTHORITY\Anonymous Logon' -ExtendedRights MS-Exch-SMTP-Accept-Any-Re
Regards.
ASKER
It worked, yes I must need to run that command through Exchange Management shell only.
Thanks for your help.
Thanks for your help.
ASKER
I created the receive connector and specified the IP address of the postfix server but still getting the same error. The other thing I noticed is when I do telnet to my exchange server when I put rcpt to: abc@gmail.com ,it fails (unable to relay) but when I put rcpt to: abc@ourowndomainuser, it says ok. Even it delivers mail to internal users.
Thanks.