postfix-mysql is installed but getting: unsupported dictionary type: mysql

2023-02-28 Thread Jonathan Capra
This a solution, not a problem. Just wanted to share so it's out there for anyone else searching. Started getting warning: mysql:/etc/postfix/mysql_virtual_alias_maps.cf is unavailable. unsupported dictionary type: mysql apt said that postfix-mysql was installed. The mysql libraries were p

Backup MX Take 3

2023-01-31 Thread Jonathan Capra
GOAL: To have my backup MX only accept for addresses listed in /etc/postfix/relay_recipients(.db). I've gone back to the drawing board and wiped it clean in another attempt to get this working. I'm utterly confounded by what I might be doing wrong. I started fresh with a default copy of main.

Re: Backup MX Take 2

2022-12-08 Thread Jonathan Capra
? On Wed, 7 Dec 2022, Viktor Dukhovni wrote: On Wed, Dec 07, 2022 at 08:47:21PM -0500, Jonathan Capra wrote: I took this to mean I should get rid of relay_domains altogether, and rely solely on relay_recipients. But once I did that, it now rejects all addresses. Hard to imagine how you reache

Re: Backup MX Take 2

2022-12-08 Thread Jonathan Capra
ed, 7 Dec 2022, Viktor Dukhovni wrote: On Wed, Dec 07, 2022 at 08:47:21PM -0500, Jonathan Capra wrote: I took this to mean I should get rid of relay_domains altogether, and rely solely on relay_recipients. But once I did that, it now rejects all addresses. Hard to imagine how you reache

Re: Backup MX Take 2

2022-12-07 Thread Jonathan Capra
I took this to mean I should get rid of relay_domains altogether, and rely solely on relay_recipients. But once I did that, it now rejects all addresses. I want to make sure I am being clear about my ultimate goal: I want Postfix to accept only the addresses in /etc/postfix/relay_recipients

Re: Backup MX Take 2

2022-12-02 Thread Jonathan Capra
-q t...@fongaboo.com /etc/postfix/relay_recipients OK # # postmap -q unkn...@fongaboo.com /etc/postfix/relay_recipients # # On Fri, 2 Dec 2022, Wietse Venema wrote: Jonathan Capra: Thanks. Here you go: # postconf -nf alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases

Re: Backup MX Take 2

2022-12-02 Thread Jonathan Capra
user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} On Fri, 2 Dec 2022, Wietse Venema wrote: Jonathan Capra: OK this is weird. I have in main.cf: relayhost = helix.wtfayla.net relay_recipient_maps = hash:/etc/postfix/relay_recipients relay_domains = hash:/etc

Re: Backup MX Take 2

2022-12-02 Thread Jonathan Capra
icated, defer_unauth_destination}}relay_domains = ${{$compatibility_level} < {2} ? {$mydestination} : {}} I feel like it's somehow not using the main.cf I'm working on somehow?? On Thu, 1 Dec 2022, Jonathan Capra wrote: On Fri, 2 Dec 2022, raf wrote: The parameter smtpd_relay_restrictions was s

Re: Backup MX Take 2

2022-12-01 Thread Jonathan Capra
On Fri, 2 Dec 2022, raf wrote: The parameter smtpd_relay_restrictions was set twice in main.cf. You should decide which one you want, and delete the other (or combine what you want into a single version). The postconf -nf command shown above would just output the one that Postfix ends up usin

Backup MX Take 2

2022-12-01 Thread Jonathan Capra
I've attached the full main.cf to the email. I'm following this tutorial to a T: https://www.linuxbabe.com/mail-server/how-to-set-up-a-backup-email-server-postfix-ubuntu TIA! On Tue, 29 Nov 2022, Jonathan Capra wrote: On Tue, 29 Nov 2022, raf wrote: On Sun, Nov 27, 2022 at 1

Re: Backup MX with MySQL backend

2022-11-29 Thread Jonathan Capra
On Tue, 29 Nov 2022, raf wrote: On Sun, Nov 27, 2022 at 11:40:01PM -0500, Jonathan Capra wrote: smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache Not relevant, but the above line isn't needed (since Postfix 2.11). I commented this out. mydestin

Backup MX with MySQL backend

2022-11-27 Thread Jonathan Capra
I've been trying to set up a Backup MX with a MySQL backend. I have my primary working well with MySQL and Postfixadmin frontend. But up till now, I've always set up my backup MX with a standard Postfix setup using Berkley DB files. I've tried to setup my new Backup MX with MySQL backend. I