On 26/10/2024 15:34, Marc via dovecot wrote:

I am pretty new to Dovecot and totally new to LMTP. I have normal
delivery working but I am struggling with aliases. In my mail queue I am
seeing things like:

But in my /etc/aliases, I am aliasing clamav to nick and
n...@mydomain.com is a valid mail box that can receive normal mail.

The corresponding line in the mail log is:

     2024-10-26T14:55:56.385500+01:00 mail-www dovecot: lmtp(1371485):
     Error: lmtp-server: conn unix:pid=1371484,uid=102 [1]: rcpt
     cla...@mydomain.com: Failed to initialize user: Mail access for
     users with UID 107 not permitted (see first_valid_uid in config
     file, uid from userdb lookup).

How do I get round this issue? I can drop the minimum UID to 0, but then
all system users are deemed valid for mail which is not true. None of
them are.
I think it is more common to have your MTA postfix/sendmail do the translation 
to aliases, so before you deliver it to lmtp. Maybe test if your MTA is indeed 
sending the alias

sendmail -bvt...@example.com
t...@example.com... deliverable: mailer esmtp, host example.com., 
usert...@example.com

Something like this should show the alias.

Weird.

   root@mail-www:~# sendmail -bv n...@mydomain.com
   Mail Delivery Status Report will be mailed to <root>.
   root@mail-www:~# sendmail -bv cla...@mydomain.com
   Mail Delivery Status Report will be mailed to <root>.


But my aliases are:

   # See man 5 aliases for format
   postmaster:    root
   clamav: nick
   # Webmin: Redirect root to nick
   root: nick


'newaliases' has been run and /etc/postfix/main.cf has the line:

   alias_maps = hash:/etc/aliases
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to