On Tue, 2024-10-15 at 17:13 -0700, Mark Sapiro wrote:
> On 10/15/24 15:24, Bill Oliver wrote:
> > 
> > Yeah, I saw that, too.   The double db files are created by
> > postmap.  I
> > haven't worried about it too much yet, since the permissions are
> > the
> > same.   I don't know why postmap does this, but it's next on my
> > list of
> > things to fix.
> 
> 
> You should not be running postmap manually and never on a *.db file
> in 
> any case. Mailman should be creating postfix_domains, postfix_lmtp
> and 
> postfix_vmap and calling postmap on those to create the .db files.

> 
> > In my main.cf postfix_lmtp is mentioned four  times:
> > 
> > virtual_mailbox_maps =
> >     proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf,
> >    
> > proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_map
> > s.cf
> > #added 20241009 for mailman
> >     hash:/opt/mailman/mm/var/data/postfix_lmtp ${dovecot}
> > 
> > virtual_alias_maps =
> >     proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
> >    
> > proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
> >    
> > proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_ma
> > ps.c
> > f
> > #added 20241009 for mailman
> >     hash:/opt/mailman/mm/var/data/postfix_vmap
> > 
> > #Mailman transport stuff
> > transport_maps =
> >      hash:/opt/mailman/mm/var/data/postfix_lmtp
> > local_recipient_maps =
> >      hash:/opt/mailman/mm/var/data/postfix_lmtp ${dovecot}
> 
> 
> Are you adding ${dovecot} to the local_recipient_maps and 
> virtual_mailbox_maps mailman entries or was that there before?


Thanks. The reason I created them by hand is that they are not being
created automatically it seemed. If I remove them and restart things, I
get the following errors in /var/log/mail.err:

2024-10-15T12:43:31.060478-04:00 mail postfix/smtpd[961837]: error:
open database /opt/mailman/mm/var/data/postfix_domains.db: No such file
or directory
2024-10-15T12:43:31.060874-04:00 mail postfix/smtpd[961837]: error:
open database /opt/mailman/mm/var/data/postfix_lmtp.db: No such file or
directory
2024-10-15T12:43:31.069450-04:00 mail postfix/smtpd[961837]: error:
open database /opt/mailman/mm/var/data/postfix_vmap.db: No such file or
directory


However.... I just looked at the /opt/mailman/mm/var/data directory and
the (single) db files are now there, and that error occurs only once.
 So, I probably over-reacted to it.

Unfortunately, I'm back to the permission declined error:

2024-10-15T22:31:31.973125-04:00 mail postfix/virtual[3497]: error:
open database /opt/mailman/mm/var/data/postfix_lmtp.db: Permission
denied



As far as the addition of ${dovecot} goes, I did it myself  because of
the instructions at:

https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.html#postfix-dovecot


Dovecot is having a hard time authenticating mailinglist users. I
figured that problem arose because it can't use any of the mailman .db
files, but I don't know. In any case, a dovecot error message that
happens when a user (who has an account on the local machine) sends
mail to the mailing list includes:

2024-10-15T21:50:45.231465-04:00 mail dovecot: auth-worker(5669):
Debug: conn unix:auth-worker (pid=3690,uid=111): auth-worker<1>:
pam(oli...@billoblog.com,129.222.252.225): lookup service=dovecot

2024-10-15T21:50:45.234036-04:00 mail dovecot: auth-worker(5669):
Debug: conn unix:auth-worker (pid=3690,uid=111): auth-worker<1>:
pam(oli...@billoblog.com,129.222.252.225): #1/1 style=1 msg=Password:

2024-10-15T21:50:46.716360-04:00 mail dovecot: auth-worker(5669): conn
unix:auth-worker (pid=3690,uid=111): auth-worker<1>:
pam(oli...@billoblog.com,129.222.252.225): pam_authenticate() failed:
Authentication failure (Password mismatch?) (given password: XXXXXXX)

2024-10-15T21:50:46.716497-04:00 mail dovecot: auth-worker(5669):
Debug: conn unix:auth-worker (pid=3690,uid=111): auth-worker<1>:
pam(oli...@billoblog.com,129.222.252.225): Finished passdb lookup

2024-10-15T21:50:46.716562-04:00 mail dovecot: auth-worker(5669):
Debug: conn unix:auth-worker (pid=3690,uid=111): auth-worker<1>:
Finished: password_mismatch


It should be noted that mail works fine for that user, and this error
arises *only* when mail is sent to the mailinglist address.  Dovecot
does not complain if I send mail elsewhere.  Mail is received and
delivered to and from this address without a problem. 

The other thing I did was add an alias domain when I set up the domain
in postorius, again because it seemed from reading the instructions
that this was advisable on a server with multiple virtual domains.


Thanks.
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/K5J3YNXRGZNMFVFIUH4NL2VXGN35S6V6/

This message sent to arch...@mail-archive.com

Reply via email to