So I should change the config to use relay domains instead of virtual mailbox?



The idea behind dropping invalid users is that this is by attrition
Homegrown applications sending reports to people who haven't worked here in 
years.
Better to drop in those cases

Again, this is an internal server and not receiving from Internet, just 
receiving from applications.

Is dropping an option?




-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
On Behalf Of Noel Jones
Sent: Monday, January 04, 2016 4:32 PM
To: postfix-users@postfix.org
Subject: Re: ldap validate

On 1/4/2016 3:11 PM, Gomes, Rich wrote:
> Ok, I have LDAP working in stream although still have a few bugs.
> 
> I found this article:
> 
> http://www.experts-exchange.com/questions/28251757/How-to-configure-LD
> AP-Authentication-for-Incoming-SMTP-Traffic.html
> 
> 
> Basically I added these lines
> 
> virtual_mailbox_domains = example.com, example.org, example.net 
> virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf
> 
> to where I already  had
> virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
> 
> and it worked.

That's correct if you're using virtual_mailbox_domains, but not for 
relay_domains.


> Is there a way to have Postfix DROP the message if the recipient is invalid? 
> As opposed to sending an NDR?


Postfix will reject invalid recipients.  Discarding invalid recipients is a 
terrible idea.




  -- Noel Jones

Reply via email to