Allow relay from certain IPs AND allow only certain senders

2020-01-20 Thread ego...@gmail.com
Hi, I am configuring a Postfix relay hosted on a cloud provider. I would like to allow relay access only to public IPs of my company AND to a precise list of senders. Here are my main.cf configurations: mynetworks = 127.0.0.0/8 1.2.3.4/23 4.5.6.7/32 7.8.9.1/24 smtpd_recipient_restrictions = permit

Re: Allow relay from certain IPs AND allow only certain senders

2020-01-21 Thread ego...@gmail.com
Thanks Viktor, I solved the problem with your advices. Il giorno lun 20 gen 2020 alle ore 11:31 Vu Ngoc VU ha scritto: > > Date: Mon, 20 Jan 2020 11:00:11 > > From: Viktor Dukhovni > > Reply-To: postfix-users@postfix.org > > To: postfix-users@postfix.org > > Subject: Re: Allow relay from certai

Same QueueID if recipients belong to the same domain?

2020-02-05 Thread ego...@gmail.com
Hi everyone, I am using Postfix as mail relay for an Office365 domain. On that Postfix I have set up a custom content_filter to manipulate email headers. Everything works normally, except one particular issue: if the Office365 sender sends an email to two recipients belonging to the same domain (e.

Re: Same QueueID if recipients belong to the same domain?

2020-02-06 Thread ego...@gmail.com
FYI I solved adding fixcc_destination_recipient_limit=1 in main.cf Bye Il giorno mer 5 feb 2020 alle ore 13:12 Wietse Venema ha scritto: > ego...@gmail.com: > > Feb 5 11:35:48 AZN-POSTIFX postfix/smtpd[55568]: connect from > > mail-am5eur03lp2053.outbound.protection.outlook.

Avoid mail loop

2020-03-18 Thread ego...@gmail.com
Hello everybody, I am using a Postfix mail relay to modify sender addresses of emails coming from my company Office 365 cloud-hosted domain: I configured a connector on Office 365 to route all emails to Postfix. Everything works perfectly, except for some recipient domains that are also hosted on o

Re: Avoid mail loop

2020-03-18 Thread ego...@gmail.com
423860caa5...@vi1p195mb0318.eurp222.prod.outlook.com I think I'll try with Dusan advice and let you know. Feel free to suggest something else if comes to your mind. Il giorno mer 18 mar 2020 alle ore 16:40 Wietse Venema ha scritto: > > Dusan Obradovic: > > > > > On Mar 18, 2020,

Re: Avoid mail loop

2020-03-19 Thread ego...@gmail.com
Got it, Wietse. What do you mean with "fix the forwarding at your end"? Can I tweak something different in Postfix? Have a nice day. Il giorno mer 18 mar 2020 alle ore 18:13 Wietse Venema ha scritto: > > ego...@gmail.com: > > Thanks Dusan and Wietse, I searched in postf

Relay based on recipient mail server IP address

2020-04-01 Thread ego...@gmail.com
Hi everybody, is it possible to define a transport map based on recipient mail server address instead of recipient domain? Something like this: cat /etc/postfix/transport 123.456.123.456 smtp:[relayhost.com] Or is there another way to achieve this?

Re: Relay based on recipient mail server IP address

2020-04-02 Thread ego...@gmail.com
Thanks Wietse, it worked! Il giorno mer 1 apr 2020 alle ore 15:58 Wietse Venema ha scritto: > > ego...@gmail.com: > > Hi everybody, is it possible to define a transport map based on > > recipient mail server address instead of recipient domain? > > Postfix reads the trans

Re: Relay based on recipient mail server IP address

2020-04-02 Thread ego...@gmail.com
, 2020 at 10:31:32AM +0200, ego...@gmail.com wrote: > > > Thanks Wietse, it worked! > > Do you have good reason to expect that this will never misroute > multi-recipient email? There's a difference between "it worked > once" (in a simple test-case) and &

Re: Avoid mail loop

2020-04-27 Thread ego...@gmail.com
FYI it was a Microsoft O365 configuration issue, indeed. In our hybrid environment (O365 + Postfix) a routing configuration that is commonly enabled in O365 (called "inbound connector") generated that loop. After a few weeks of mail exchanges with Microsoft support they gave us the solution. If you

“Illegal address syntax”: send error notification

2016-10-17 Thread ego...@gmail.com
Hi everybody, sometimes Outlook users send email through our Postfix mail server with malformed "to" field, with quotes in it: 'recipi...@domain.com' and Postfix writes "warning: Illegal address syntax" error in logs, but it does not send a non delivery notification. But if I send an email to a m

Re: “Illegal address syntax”: send error notification

2016-10-18 Thread ego...@gmail.com
Got it. Thanks for the answer! 2016-10-17 18:21 GMT+02:00 Wietse Venema : > ego...@gmail.com: > > Is it possible to notify a remote sender [for email that the SMTP > > server rejects] > > No. When an SMTP server does not accept a message, it is the > responsibility of t