Re: another way to block incomming

2021-12-20 Thread postfix
>> You can set "Invalid Recipient Domain" to any error message. >> And don't forget to run "postmap block_domains" > or DISCARD if I dont have send any info That is up to you if you want a reject message or silent discard. If you use a reject then the person sending the email knows it didn't work

Re: another way to block incomming

2021-12-20 Thread natan
W dniu 20.12.2021 o 16:52, post...@ptld.com pisze: >> What is a fastest method to block that recipient domain (because I would >> like it not to ask the ldap server for that account/domain ) > One way to block an entire domain: > > > main.cf >smtpd_recipient_restrictions = check_recipient_acces

Re: another way to block incomming

2021-12-20 Thread postfix
> What is a fastest method to block that recipient domain (because I would > like it not to ask the ldap server for that account/domain ) One way to block an entire domain: main.cf smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/block_domains block_domains subdom

another way to block incomming

2021-12-20 Thread natan
Hi I have user who have domain and subdomain like subdomain.domain.ltd For both domain's cliet set entries MX in DNS for first domain (domain.ltd) client create e-mail accont - thats ok for second (subdomain.domain.ltd) clinet dont create anty accunts and any aliases -  Hi set only rekord mx fo