Re: sender_bcc_maps / ignore a specific user

2022-02-21 Thread Viktor Dukhovni
On Mon, Feb 21, 2022 at 11:27:07PM -0500, billy noah wrote: > Can I use alternation in the negation pattern to match multiple addresses > to exclude? > > if !/^(nobody|noreply|noone)@/ http://www.postfix.org/pcre_table.5.html http://www.postfix.org/regexp_table.5.html -- Viktor.

Re: sender_bcc_maps / ignore a specific user

2022-02-21 Thread billy noah
Can I use alternation in the negation pattern to match multiple addresses to exclude? if !/^(nobody|noreply|noone)@/ On Mon, Feb 21, 2022 at 11:15 PM billy noah wrote: > Thank you so much Viktor. > > Yes this instance only sends mail for a small handful of domains in our > organization and do

Re: sender_bcc_maps / ignore a specific user

2022-02-21 Thread billy noah
Thank you so much Viktor. Yes this instance only sends mail for a small handful of domains in our organization and does not accept or relay any mail. That said, your suggestions about the regex are well advised and I will make some adjustments. I had no idea that the regex table could take condi

Re: sender_bcc_maps / ignore a specific user

2022-02-21 Thread Viktor Dukhovni
On Mon, Feb 21, 2022 at 08:17:17PM -0500, billy noah wrote: > /^([^@]+)@[a-zA-Z0-9_]+\.[a-zA-Z0-9_]+$/ $1...@example.com > > This works great, however I have an email address nob...@example.com that > I'd like to *exclude* from this configuration. How can I configure > sender_bcc_maps to *comple

Re: Postmap fails with unspecified application error

2022-02-21 Thread Nathan Van Ymeren
Interesting. If I make a direct query as per your example I am presented with an "unsupported dictionary type" error, which I guess means that the version of postfix that freebsd packages doesn't support postgres? On Mon, Feb 21, 2022 at 4:42 PM Wietse Venema wrote: > > Nathan Van Ymeren: > > po

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Phil Biggs
Tuesday, February 22, 2022, 11:27:30 AM, post...@ptld.com wrote: >> There doesn't appear to be a way to say "here is user and this is his >> email address". It seems to be assumed that user "Fred" will have an >> email >> address of "fred@..." and no way to override that. > That is not how do

sender_bcc_maps / ignore a specific user

2022-02-21 Thread billy noah
I have sender_bcc_maps set up and working with postfix so that outgoing mail gets bcc'd to the sender's address. My configuration is more or less: *main.cf * sender_bcc_maps = regexp:/etc/postfix/regexp_sender_bcc *regexp_sender_bcc* /^([^@]+)@[a-zA-Z0-9_]+\.[a-zA-Z0-9_]+$/ $1..

Re: Postmap fails with unspecified application error

2022-02-21 Thread Wietse Venema
Nathan Van Ymeren: > postmap: dict_proxy_lookup: > table=pgsql:/usr/local/etc/postfix/pgsql-virtual-mailbox-domains.cf > flags=warn_dup|lock|utf8_request key=example.org -> status=2 result= > postmap: fatal: table > proxy:pgsql:/usr/local/etc/postfix/pgsql-virtual-mailbox-domains.cf: > query error:

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread postfix
> There doesn't appear to be a way to say "here is user and this is his > email address". It seems to be assumed that user "Fred" will have an > email > address of "fred@..." and no way to override that. That is not how dovecot works. Dovecot goes "here is this authenticated user and they are

Postmap fails with unspecified application error

2022-02-21 Thread Nathan Van Ymeren
I am trying to set up postfix virtual domains via postgresql database, and I have come up against an error I can't resolve. I am running FreeBSD 13, using postfix and postgresql from the FreeBSD packages. I created the file pgsql-virtual-mailbox-domains.cf: # cat pgsql-virtual-mailbox-domains.cf

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Ralph Seichter
* Phil Biggs: > There doesn't appear to be a way to say "here is user and this is his > email address". It seems to be assumed that user "Fred" will have an > email address of "fred@..." and no way to override that. https://doc.dovecot.org/configuration_manual/authentication/user_database_extra_f

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Phil Biggs
Tuesday, February 22, 2022, 8:58:32 AM, Jaroslaw Rafa wrote: > Dnia 22.02.2022 o godz. 08:00:44 Phil Biggs pisze: >> >> This is the thing that I could not figure out from the Dovecot >> documentation - mapping between Dovecot login names and mailboxes. > As far as I understand, Dovecot "userdb

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Jaroslaw Rafa
Dnia 22.02.2022 o godz. 08:00:44 Phil Biggs pisze: > > This is the thing that I could not figure out from the Dovecot > documentation - mapping between Dovecot login names and mailboxes. As far as I understand, Dovecot "userdb" specifies this: https://doc.dovecot.org/configuration_manual/authent

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Phil Biggs
Monday, February 21, 2022, 11:23:11 PM, Jaroslaw Rafa wrote: > Dnia 21.02.2022 o godz. 13:09:19 Alexey Shpakovsky pisze: >> On Mon, February 21, 2022 12:59, Jaroslaw Rafa wrote: >> > >> > The part I am wondering about is exactly "Dovecot accepts". As far as I >> > know, Dovecot does not need to "

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Phil Biggs
Monday, February 21, 2022, 10:59:10 PM, Jaroslaw Rafa wrote: > Dovecot comes into play only when user logs in to IMAP account. It keeps its > own mapping between login names (which do not need to be email addresses, > they can be just any names) and mailboxes corresponding to these users. > Use

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Rob McGee
On 2022-02-20 01:49, Phil Biggs wrote: I have virtual_mailbox_maps in use with reject_unlisted _recipent and use virtual_alias_maps to translate a validated address into a single matching address for the corresponding dovecot user. For example: /usr/local/etc/postfix/vmailbox validu...@e

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Jaroslaw Rafa
Dnia 21.02.2022 o godz. 13:09:19 Alexey Shpakovsky pisze: > On Mon, February 21, 2022 12:59, Jaroslaw Rafa wrote: > > > > The part I am wondering about is exactly "Dovecot accepts". As far as I > > know, Dovecot does not need to "accept" anything, because it does not > > receive mail. > > > At lea

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Jaroslaw Rafa
Dnia 21.02.2022 o godz. 22:30:31 Phil Biggs pisze: > > Dovecot only accepts email for addresses for which it has a matching user > account. As you say, it is just used a message store. However, I wasn't able > to find a way to have a dovecot user receive mail addressed to any address > other t

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Phil Biggs
Monday, February 21, 2022, 9:08:41 PM, Jaroslaw Rafa wrote: > Dnia 21.02.2022 o godz. 13:10:45 Phil Biggs pisze: >> >> - emails sent to (external) validuser@ addresses are validated >> as present in virtual_mailbox_maps >> - validuser@ addresses are translated to (internal) dovecotuser@ >>

Re: virtual_mailbox_maps & virtual_alias_maps

2022-02-21 Thread Jaroslaw Rafa
Dnia 21.02.2022 o godz. 13:10:45 Phil Biggs pisze: > > - emails sent to (external) validuser@ addresses are validated > as present in virtual_mailbox_maps > - validuser@ addresses are translated to (internal) dovecotuser@ > via virtual_alias_maps > - only dovecotuser@ addresses are accepted