Re: zendesk and relay denied

2021-05-14 Thread IL Ka
> > I've done a terrible job of explaining this, partly because I don't > fully understand and also don't have all the facts. > Try to gather as much information as possible and draw a diagram on a piece of paper) > > We are trying to provide mail filtering using postfix/amavis for a > company u

Re: zendesk and relay denied

2021-05-13 Thread IL Ka
> > > > We've created an outbound O365 connector to route outbound mail > through our servers before being delivered to their final destination > - I believe this is effectively relaying mail from > outbound.protection.outlook.com: > I am a little bit confused). Zenddesk sends email to the O365,

Re: zendesk and relay denied

2021-05-13 Thread Alex
Hi, > > > This was rejected by "reject_unauth_destination". > > > > Thank you so much. I had included my smtpd_recipient_restrictions > > earlier in this thread, but should have been more complete. This is > > the multi-instance postfix you helped me configure some time ago. Mail > > is first

Re: zendesk and relay denied

2021-05-13 Thread Viktor Dukhovni
On Thu, May 13, 2021 at 03:39:41PM -0400, Alex wrote: > > > May 12 23:02:35 xavier postfix-117/smtpd[3481802]: NOQUEUE: reject: > > > RCPT from > > > mail-dm6nam10lp2107.outbound.protection.outlook.com[104.47.58.107]: > > > 554 5.7.1 : Relay access denied; > > > from= to= proto=ESMTP > > > helo=

Re: zendesk and relay denied

2021-05-13 Thread Viktor Dukhovni
On Thu, May 13, 2021 at 03:39:41PM -0400, Alex wrote: > > This was rejected by "reject_unauth_destination". > > Thank you so much. I had included my smtpd_recipient_restrictions > earlier in this thread, but should have been more complete. This is > the multi-instance postfix you helped me co

Re: zendesk and relay denied

2021-05-13 Thread Alex
Hi, > > > That is not valid relay_domains syntax. For more help, see: > > > > > > http://www.postfix.org/DEBUG_README.html#mail > > > > Just to be clear, I forgot to note that the check_recipient_access was > > part of my smtpd_recipient_restrictions, not relay_domains: > > Posting tiny fragm

Re: zendesk and relay denied

2021-05-13 Thread Viktor Dukhovni
On Thu, May 13, 2021 at 09:02:26AM -0400, Alex wrote: > > That is not valid relay_domains syntax. For more help, see: > > > > http://www.postfix.org/DEBUG_README.html#mail > > Just to be clear, I forgot to note that the check_recipient_access was > part of my smtpd_recipient_restrictions, no

Re: zendesk and relay denied

2021-05-13 Thread IL Ka
> > > So I'm unable to send mail as a...@mydomain.com to any domain other > than the ones managed by our mail server. How do I convince postfix > that it should route mail for mydomain.com from > outbound.protection.outlook.com? > > 1. If you want postfix to route/relay email TO some domain from A

Re: zendesk and relay denied

2021-05-13 Thread Alex
Hi, > > relay_domains = $mydestination, example.com > > check_recipient_access pcre:$config_directory/nnnhelp-zendesk, > > That is not valid relay_domains syntax. For more help, see: > > http://www.postfix.org/DEBUG_README.html#mail Just to be clear, I forgot to note that the check_r

Re: zendesk and relay denied

2021-05-12 Thread Viktor Dukhovni
On Wed, May 12, 2021 at 07:49:13PM -0400, Alex wrote: > relay_domains = $mydestination, example.com > check_recipient_access pcre:$config_directory/nnnhelp-zendesk, That is not valid relay_domains syntax. For more help, see: http://www.postfix.org/DEBUG_README.html#mail -- Vik

Re: zendesk and relay denied

2021-05-12 Thread Alex
Hi, >> I've set up postfix to be the mail relay for a domain so we can >> process it through amavis/spamassassin prior to it being forwarded on >> to our O365 domain. > > You need to add this domain to the "relay_domains" Ah yes, of course. >> I've set up a recipient check to allow relaying for

Re: zendesk and relay denied

2021-05-12 Thread IL Ka
> > > Hi, > Hello, > > I've set up postfix to be the mail relay for a domain so we can > process it through amavis/spamassassin prior to it being forwarded on > to our O365 domain. > You need to add this domain to the "relay_domains" > > I've set up a recipient check to allow relaying for our z