Re: How to send mail to mailbox with disabled domain?

2018-09-17 Thread Kai Schaetzl
Thanks for all the replies. I didn't have time to reply earlier. I went with my first proposed solution. Everything else is simply too much hazzle. You would have to set this for every single exception/address/user and so on and you cannot be sure that it doesn't bite you some time later with a

Re: How to send mail to mailbox with disabled domain?

2018-09-12 Thread Gerald Galster
If you want to accept delivery for one address only and reject all other adresses in the domain, you can do this with postfix's access table: http://www.postfix.org/access.5.html A hint to transport tables: us...@example1.com lmtp:$HOW_TO_REACH_THE_MX us...@example1.com

Re: How to send mail to mailbox with disabled domain?

2018-09-12 Thread Jochen Bern
On 09/11/2018 08:20 PM, Kai Schaetzl wrote: > I have to disable mail acceptance for example1.com. > If not, mail sent *from* that server (e.g. from a web form) to that domain > will not leave the server. > However, if I disable example1.com for mail dovecot lmtp will not deliver > mail to this

Re: How to send mail to mailbox with disabled domain?

2018-09-11 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 11 Sep 2018, Kai Schaetzl wrote: Gerald Galster wrote on Tue, 11 Sep 2018 20:49:17 +0200: Is this a dovecot problem on your side? dovecot usually accepts mail from MTA like postfix, so it would be better to remove example1.com from postfix

Re: How to send mail to mailbox with disabled domain?

2018-09-11 Thread Kai Schaetzl
Gerald Galster wrote on Tue, 11 Sep 2018 20:49:17 +0200: > Is this a dovecot problem on your side? dovecot usually accepts mail > from MTA like postfix, so it would be better to remove example1.com from > postfix relaydomains (mailbox domains, alias domains, ...). Then there > is no delivery to

Re: How to send mail to mailbox with disabled domain?

2018-09-11 Thread Gerald Galster
Is this a dovecot problem on your side? dovecot usually accepts mail from MTA like postfix, so it would be better to remove example1.com from postfix relaydomains (mailbox domains, alias domains, ...). Then there is no delivery to dovecot. Most MTAs ignore MX records - if a domain is configured