Re: LMTP rejecting aliased emails

2024-10-26 Thread Noel Butler via dovecot
Benny, go take your meds On 27/10/2024 03:32, Benny Pedersen via dovecot wrote: Nick Howitt via dovecot skrev den 2024-10-26 18:57: Because webmin didn't set it? Looking at the docs: last_valid_uid Default: 0 Values: Unsigned integer This setting and first_valid_uid specify the valid UID

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
On 26/10/2024 18:43, Benny Pedersen via dovecot wrote: Nick Howitt via dovecot skrev den 2024-10-26 19:27: I tested it with two more entries I concealed:    rmsh: rachel    clearos: n...@mydomain.com and both worked. i need proff from logs, both dovecot and postfix that it works use bt

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
On 26/10/2024 19:36, Benny Pedersen via dovecot wrote: Noel J skrev den 2024-10-26 18:51: Post aliases are implemented in the local delivery agent. To use lmtp, put your aliases in virtual_alias_maps Postfix does not expand aliases with sendmail -bv, just reports if the address will be acc

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
On 26/10/2024 19:17, Benny Pedersen via dovecot wrote: Nick Howitt via dovecot skrev den 2024-10-26 19:55: I don't think UID of 0 is a mistake at all? The message was going to root, UID=0, and was not successfully being rewritten so LMTP got the hump. Now it is being rewritten by virtual_

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
On 26/10/2024 19:13, Benny Pedersen via dovecot wrote: Nick Howitt via dovecot skrev den 2024-10-26 19:47: That processed the queue and it has all come through. I was trying "postfix flush" and "postqueue -f", neither of which worked. It seems like setting virtual_alias_maps wat the fix. I

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Noel J skrev den 2024-10-26 18:51: Post aliases are implemented in the local delivery agent. To use lmtp, put your aliases in virtual_alias_maps Postfix does not expand aliases with sendmail -bv, just reports if the address will be accepted. then try this: sendmail -f root -bv root what did

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Nick Howitt via dovecot skrev den 2024-10-26 19:55: I don't think UID of 0 is a mistake at all? The message was going to root, UID=0, and was not successfully being rewritten so LMTP got the hump. Now it is being rewritten by virtual_alias_maps, the issue has gone away and mail delivery seems

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Nick Howitt via dovecot skrev den 2024-10-26 19:47: That processed the queue and it has all come through. I was trying "postfix flush" and "postqueue -f", neither of which worked. It seems like setting virtual_alias_maps wat the fix. I'll keep an eye on it in case it recurs, but I have to wait

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Noel J via dovecot skrev den 2024-10-26 19:40: On Sat, Oct 26, 2024 at 12:35 PM Marc wrote: > > Mail already in the queue will need to be reprocessed with > postsuper -r ALL > > Or just delete it and test again. > his problem is low uid number Right. Because dovecot is trying to deliver to

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
On 26/10/2024 18:36, Benny Pedersen via dovecot wrote: Nick Howitt via dovecot skrev den 2024-10-26 19:11: OK. I have tried setting:    virtual_alias_maps = $alias_maps And in /etc/aliases I now have:    # See man 5 aliases for format    postmaster:    root    clamav: root    # Webmin: Re

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
That processed the queue and it has all come through. I was trying "postfix flush" and "postqueue -f", neither of which worked. It seems like setting virtual_alias_maps wat the fix. I'll keep an eye on it in case it recurs, but I have to wait for system emails. Thanks, NIck On 26/10/2024 1

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Nick Howitt via dovecot skrev den 2024-10-26 19:27: I tested it with two more entries I concealed: rmsh: rachel clearos: n...@mydomain.com and both worked. i need proff from logs, both dovecot and postfix that it works use btw example.com not mydomain.com if you need to obfuscate it

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Nick Howitt via dovecot skrev den 2024-10-26 18:57: Because webmin didn't set it? Looking at the docs:  last_valid_uid     Default: 0     Values: Unsigned integer     This setting and first_valid_uid specify the valid UID range for users.     0 means there is

Re: LMTP rejecting aliased emails

2024-10-26 Thread Noel J via dovecot
On Sat, Oct 26, 2024 at 12:35 PM Marc wrote: > > > > Mail already in the queue will need to be reprocessed with > > postsuper -r ALL > > > > Or just delete it and test again. > > > > his problem is low uid number > Right. Because dovecot is trying to deliver to the clamav user, because postfix d

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Nick Howitt via dovecot skrev den 2024-10-26 19:11: OK. I have tried setting: virtual_alias_maps = $alias_maps And in /etc/aliases I now have: # See man 5 aliases for format postmaster:    root clamav: root # Webmin: Redirect root to nick root: n...@mydomain.com And the ma

RE: LMTP rejecting aliased emails

2024-10-26 Thread Marc via dovecot
> > Mail already in the queue will need to be reprocessed with > postsuper -r ALL > > Or just delete it and test again. > his problem is low uid number ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovec

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
On 26/10/2024 18:20, Noel J via dovecot wrote: On Sat, Oct 26, 2024 at 12:16 PM Nick Howitt via dovecot < dovecot@dovecot.org> wrote: OK. I have tried setting: virtual_alias_maps = $alias_maps That’s not likely to work. The file format is different. No “:” in virtual_alias_maps Als

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Noel J via dovecot skrev den 2024-10-26 18:51: Postfix does not expand aliases with sendmail -bv, just reports if the i dont care of postfix yet dont hijack a thread ___ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dov

Re: LMTP rejecting aliased emails

2024-10-26 Thread Noel J via dovecot
Mail already in the queue will need to be reprocessed with postsuper -r ALL Or just delete it and test again. On Sat, Oct 26, 2024 at 12:20 PM Noel J wrote: > > > On Sat, Oct 26, 2024 at 12:16 PM Nick Howitt via dovecot < > dovecot@dovecot.org> wrote: > >> OK. I have tried setting: >> >>

Re: LMTP rejecting aliased emails

2024-10-26 Thread Noel J via dovecot
On Sat, Oct 26, 2024 at 12:16 PM Nick Howitt via dovecot < dovecot@dovecot.org> wrote: > OK. I have tried setting: > > virtual_alias_maps = $alias_maps > That’s not likely to work. The file format is different. No “:” in virtual_alias_maps Also, it’s best if you use fully qualified addresse

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
OK. I have tried setting: virtual_alias_maps = $alias_maps And in /etc/aliases I now have: # See man 5 aliases for format postmaster:    root clamav: root # Webmin: Redirect root to nick root: n...@mydomain.com And the mail queue won't clear: 2024-10-26T18:04:00.890009+

Re: LMTP rejecting aliased emails

2024-10-26 Thread Noel J via dovecot
Post aliases are implemented in the local delivery agent. To use lmtp, put your aliases in virtual_alias_maps Postfix does not expand aliases with sendmail -bv, just reports if the address will be accepted. On Sat, Oct 26, 2024 at 11:47 AM Benny Pedersen via dovecot < dovecot@dovecot.org> wro

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
On 26/10/2024 17:43, Benny Pedersen via dovecot wrote: Nick Howitt via dovecot skrev den 2024-10-26 18:36: On 26/10/2024 17:22, Benny Pedersen via dovecot wrote: Marc via dovecot skrev den 2024-10-26 16:34: I am pretty new to Dovecot and totally new to LMTP. I have normal delivery working

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Marc via dovecot skrev den 2024-10-26 16:34: 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

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Nick Howitt via dovecot skrev den 2024-10-26 18:36: On 26/10/2024 17:22, Benny Pedersen via dovecot wrote: Marc via dovecot skrev den 2024-10-26 16:34: 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 s

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
On 26/10/2024 17:22, Benny Pedersen via dovecot wrote: Marc via dovecot skrev den 2024-10-26 16:34: 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 a

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Nick Howitt via dovecot skrev den 2024-10-26 16:25: 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_v

Re: LMTP rejecting aliased emails

2024-10-26 Thread Benny Pedersen via dovecot
Nick Howitt via dovecot skrev den 2024-10-26 16:59: But my aliases are: # See man 5 aliases for format postmaster:    root clamav: nick change to clamav: root # Webmin: Redirect root to nick root: nick root: nick@yourdomain-here so it dont need more expansions on mta stage

Re: LMTP rejecting aliased emails

2024-10-26 Thread Nick Howitt via dovecot
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 m

RE: LMTP rejecting aliased emails

2024-10-26 Thread Marc via dovecot
> 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.