On Sat, Sep 10, 2016 at 10:44:24PM -0300, Marcelo Machado wrote: > I know what I'm asking is not usual, but it is a request of a > customer of the company where I work, and I have to solve this.
If I am hired to do a job because of my expertise, I act like an expert. If a customer's idea is wrong or silly, it's my job to inform the customer (being diplomatic and respectful, of course, but they paid me, so they deserve to know.) What you have is a customer who does not understand email, yet is trying to micromanage it. This won't end well. > In fact, the full request is: in any email that has more than one > recipient, the e-mail server should only consider the first Stop right there. What is the first recipient? Are you talking about what's listed in To: & Cc: headers? The MTA doesn't pay attention to those. BCC recipients are not listed in headers at all. > recipient and discard the others. No error message is needed. > It is possible? No, and it's insane. Postfix is not in the business of deliberately losing mail. > If this is not possible, my request of the first email with a > error message "Too many recipients" is enough. > > I tested it with the parameter "smtpd_recipient_limit = 1", but > I need only on outgoing messages. This part was answered upthread, but still fails the test, "What is the first recipient?" If you can't define that in a reasonable way, this plan is silly. -- http://rob0.nodns4.us/ Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: