Re: Disabling delivery to local users

2020-09-25 Thread Viktor Dukhovni
On Tue, Sep 22, 2020 at 04:43:22PM +0200, Marek Kozlowski wrote: > Let's imagine that my SMTP server is an MX for 'mydomain.tld' (and some > other ones). I've defined LDAP query for 'virtual_alias_maps', something > like: Tables used with virtual(5) need to implement a mapping between envelope

Re: Meaning of a blank "mydestination" value

2020-09-25 Thread Viktor Dukhovni
On Fri, Sep 25, 2020 at 05:16:26PM +0200, Hans van Zijst wrote: > I might have been a little quick to react. Explicitly setting it to > empty actually makes it an empty value :) Correct. More specifically it ensures that no domains are in the "local" address class. See ADDRESS_CLASS_README. >

Re: fatal: dict_sqlite_lookup: /etc/postfix/sqlite/local-aliases.cf: SQL prepare failed: disk I/O error?

2020-09-25 Thread Viktor Dukhovni
On Fri, Sep 25, 2020 at 01:13:17PM -0500, deoren wrote: > > Don't run non-Postfx programs with Postfix privileges, that > > defeats the purpose of privilege separation. > > This is good advice and normally I wouldn't do that. Free advice, worth every penny... :-) DO NOT use SQLite as a Postfix

Re: fatal: dict_sqlite_lookup: /etc/postfix/sqlite/local-aliases.cf: SQL prepare failed: disk I/O error?

2020-09-25 Thread deoren
On 9/25/2020 12:27 PM, Wietse Venema wrote: deoren: If I run all tasks under the postfix user account, how likely am I to run into issues? Thus far it seems to be working, but I've yet to go a full 6 hours, much less 24 hours. Don't run non-Postfx programs with Postfix privileges, that defeats

Re: Disabling delivery to local users

2020-09-25 Thread Marek Kozlowski
As far as I can see the problem regards only mails sent from this server (from local users). If there is a mail from a remote one it works fine, that is: Recipient address rejected: User unknown in local recipient table error occurs. Hmm? On 9/22/20 4:43 PM, Marek Kozlowski wrote: :-) Well..

Re: fatal: dict_sqlite_lookup: /etc/postfix/sqlite/local-aliases.cf: SQL prepare failed: disk I/O error?

2020-09-25 Thread Wietse Venema
deoren: > If I run all tasks under the postfix user account, how likely am I to > run into issues? Thus far it seems to be working, but I've yet to go a > full 6 hours, much less 24 hours. Don't run non-Postfx programs with Postfix privileges, that defeats the purpose of privilege separation.

Re: Meaning of a blank "mydestination" value

2020-09-25 Thread Hans van Zijst
Hi Erik, I might have been a little quick to react. Explicitly setting it to empty actually makes it an empty value :) What $mydestination means is what domains the machine should accept mail for as its final destination. Explicitly setting it empty would ensure that no mail whatsoever is ever co

Re: Meaning of a blank "mydestination" value

2020-09-25 Thread Richard Laysell
On Fri, 2020-09-25 at 16:37 +0200, Erik Thuning wrote: > Hi! > > I've inherited a server environment where all the servers have local > postfix agents installed, relaying mail to our central email server. > I'm > trying to understand the main.cf settings shared by all our servers, > but > there

Re: Meaning of a blank "mydestination" value

2020-09-25 Thread Erik Thuning
Hi Hans, Thanks for the clarification. Just to make sure I understand correctly, setting "myhostname = " is equivalent to not setting the value at all? The output of 'postconf' vs 'postconf -d' confused me here: # postconf | grep 'mydestination =' mydestination = # postconf -d | grep 'mydesti

Re: Meaning of a blank "mydestination" value

2020-09-25 Thread Hans van Zijst
Hi Erik, If $mydestination is empty, it defaults to $myhostname, which defaults to the FQDN of the machine: http://www.postfix.org/postconf.5.html#mydestination Kind regards, Hans On 25-09-2020 16:37, Erik Thuning wrote: > Hi! > > I've inherited a server environment where all the servers hav

Meaning of a blank "mydestination" value

2020-09-25 Thread Erik Thuning
Hi! I've inherited a server environment where all the servers have local postfix agents installed, relaying mail to our central email server. I'm trying to understand the main.cf settings shared by all our servers, but there is one setting that I can't understand: mydestination = Aka nothin

Re: fatal: dict_sqlite_lookup: /etc/postfix/sqlite/local-aliases.cf: SQL prepare failed: disk I/O error?

2020-09-25 Thread deoren
On 9/24/2020 8:10 PM, Viktor Dukhovni wrote: On Thu, Sep 24, 2020 at 05:34:15PM -0500, deoren wrote: No, just WAL mode means that we haven't opened all the files that might later be needed. If I run all tasks under the postfix user account, how likely am I to run into issues? Thus far it seem