Debug on FreeBSD: tries to open linux style /proc

2024-03-22 Thread Larry Rosenman
Aki,
   Can you comment on this FreeBSD bug I got?
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274540
Either here on in the bugzilla bug.

Thanks!

--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640 (c)     E-Mail: larry...@gmail.com
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: virtual user list in a passwd file (without linux user)

2024-03-22 Thread paul
Thanks again for your help.  It is really appreciated.  

Thanks for the reminder, I did implement the SPF part already.

So, I got it to work by following your suggestion (2).

I also changed a few things based on warnings I got in the logs and after more 
reading:
~~~
   /etc/aliases
  postmaster: root
  nobody: root
  "root@localhost": root
  # redirect all root mails to this:
  root: postmas...@site1.com

   /etc/postfix/main.cf
  # changed the following
  myhostname = mail.site1.com
  mydomain = site1.com
  myorigin = $mydomain

  # removed all domains that were already in virtual_mailbox_domains
  mydestination = localhost.$mydomain, localhost

  virtual_mailbox_domains = site1.com, site2.com, site3.com, 
mail.site1.com, mail.site3.com, mail.site2.com
~~~

Well it is only off-topic when your are an expert at both.  In my case, I am 
not always sure if I have to change something in dovecot or postfix since they 
work together in my setup.

Now on to DKIM...
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: virtual user list in a passwd file (without linux user)

2024-03-22 Thread Markus Winkler

Hi Paul,

On Fri, 22 Mar 2024 at 02:58:00AM -, p...@virtuadv.com wrote:

1.  I got the yahoo/gmail solved but my emails go to their spam...  I will try 
to add DKIM and DMARC next to see if it helps.


yes, and if it not already exists: an SPF record is also helpful.


2.  I am trying different ways to create those abuse and postmaster emails for 
all my web sites with the least amount of email accounts.
I think aliases worked for site1 when I added:
~~~
postmaster: postmas...@site1.com
abuse: postmas...@site1.com
~~~


Please remember that /etc/aliases (alias_maps) has aliases that apply only for 
local recipients on the machine itself.

But I am having trouble forwarding the other sites to site1 in order to have only one email account for all these.  I tried different things and 
the latest I tried is by adding this in file virtual:

~~~
ab...@site2.com  abuse
postmas...@site2.com postmaster
ab...@site3.com  abuse
postmas...@site3.com postmaster
~~~

It seems like it is trying to send to postmas...@mail.site1.com which dovecot 
does not find, and it discards those emails.  Not sure what is the easiest way 
of doing this.


Yes, if you only use 'postmaster' in virtual it will expand to this address as you have 'mydomain = mail.site1.com', and so Dovecot cannot find 
it.


I'd suggest the following, based on your current config:

(1)

Extend your main.cf -> virtual_alias_maps this way:

virtual_alias_maps = hash:/etc/postfix/virtual, pcre:/etc/postfix/virtual_rfc

(BTW, I suggest to use 'hash' instead of 'texthash' you used as with the former Postfix is able to automatically detect changes of these maps and 
a 'Postfix reload' isn't necessary.)


In virtual_rfc something like this:

/^postmaster@/  postmas...@site1.com
/^abuse@/   postmas...@site1.com
/^hostmaster@/  postmas...@site1.com
/^webmaster@/   postmas...@site1.com

(Hint: in contrast to hashed tables (see above) pcre lookup tables are simple text files, so you have to do a 'Postfix reload' after changing 
them.)


or

(2)

Alternatively and instead of such a pcre map you could still use:

virtual_alias_maps = hash:/etc/postfix/virtual

and put all these aliases in the virtual file:

ab...@site1.com postmas...@site1.com
ab...@site2.com postmas...@site1.com
postmas...@site2.compostmas...@site1.com
ab...@site3.com postmas...@site1.com
postmas...@site3.compostmas...@site1.com
ab...@site4.com postmas...@site1.com
postmas...@site4.compostmas...@site1.com
[...]

--> after editing of course a 'postmap /etc/postfix/virtual'

It depends on the number of domains which option is less expensive.

As this all is mostly MTA/Postfix related and so quite off-topic here maybe it's better to switch to direkt e-mail if we have to look at it 
further?


Best regards,
Markus

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: virtual user list in a passwd file (without linux user)

2024-03-22 Thread Benny Pedersen

Aki Tuomi via dovecot skrev den 2024-03-22 08:47:

The recommended way to deal with aliases is on the MTA/MX level, not in 
Dovecot.


would be nice to see lmtp in dovecot can expand virtual_alias tables in 
postfix config, this will elimate postmaster on dovecot is unknown user, 
or even root is unknown and possible reject in dovecot quota policy with 
is check in postfix :/


hope for the better

the OP might dkim sign postmaster with will be invalid when postfix add 
@ to this address :/




___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: virtual user list in a passwd file (without linux user)

2024-03-22 Thread Aki Tuomi via dovecot


> On 22/03/2024 04:58 EET p...@virtuadv.com wrote:
> 
>  
> Thanks for your continued help and for sharing your config.
> 
> 1.  I got the yahoo/gmail solved but my emails go to their spam...  I will 
> try to add DKIM and DMARC next to see if it helps.
> Hotmail is tougher, they refuse my email based on some IP filtering they have 
> for my hosting provider.  So, I am trying to add some ab...@sitex.com and 
> postmas...@sitex.com in order to join their SNDS and JMRP as they suggested.  
> Not sure if it will help.
> 
> 2.  I am trying different ways to create those abuse and postmaster emails 
> for all my web sites with the least amount of email accounts.  
> I think aliases worked for site1 when I added:
> ~~~
> postmaster: postmas...@site1.com
> abuse: postmas...@site1.com
> ~~~
> 
> But I am having trouble forwarding the other sites to site1 in order to have 
> only one email account for all these.  I tried different things and the 
> latest I tried is by adding this in file virtual:
> ~~~
> ab...@site2.com  abuse
> postmas...@site2.com postmaster
> ab...@site3.com  abuse
> postmas...@site3.com postmaster
> ~~~
> 
> It seems like it is trying to send to postmas...@mail.site1.com which dovecot 
> does not find, and it discards those emails.  Not sure what is the easiest 
> way of doing this.

The recommended way to deal with aliases is on the MTA/MX level, not in Dovecot.

Aki
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org