Hello! I'm configuring a postfix-base mail server (iRedMail) to be a normal mail system with some users that receive and send mails via the Italy PEC providers.
Reading mail and injecting received messages in the local server is done via IMAPS connection to the PEC server with a fetchmail instance and is ok and tested. Sending mail from a PEC-enablead local account (which happens to be identical to the PEC account name) is all alive and well using the maps to select outgoing smtps host based on the sender address and the map to select the smtp auth credentials based on the sender address also. The PEC system is described in RFC-6109 and you can read it at https://tools.ietf.org/html/rfc6109 or at your favorite rfc repository. I have some difficulties sending mail from one local account mapped to the PEC system when the message have more than one recipient. (with exacly one recipient the message sending is ok and verified) in RFC6109 section 3.1.1, bullet four, it is stated that the message must be sent to the PEC smtp server (in this regard my server is acting as the email client in the perspective of the PEC system) and the destination addresses the message needs to be delivered to myst match beteen what is stated in the message headers and what is requested by way of RCPT TO: commands in the smtp transaction. ... but my postfix installation group different destinations in separate smtp deliveries to the SMTP forward path in the envelope is different to what is stated in the message headers and so as per specification the message is discarded by the PEC server. Any thougths on how can i configure postfix to submit the message to the PEC server in one go, in a manner so that the smtp process send to the PEC server *all* the recipient addresses (which are stated in the messafe headers as all To: and all CC: addesses, bcc: are explicitly prohibited and can be ignored from my perspective) in one go in the smtp envelope? -Andrea-