On 2019-12-18 18:32, GARDAIS Ionel wrote:
I see no 'new' folder under the 'Maildir/.admin' folder.
Should you create it by hand ?
--
Ionel GARDAIS
Tech'Advantage CIO - IT Team manager


Please attach your smtpd.conf


------------------------------------------------------------------------
*De: *"Юрий Иванов" <format_...@outlook.com>
*À: *"Edgar Pettijohn" <ed...@pettijohn-web.com>, "misc" <misc@opensmtpd.org>
*Envoyé: *Mercredi 18 Décembre 2019 18:50:30
*Objet: *RE: Unable to use .forward with snmpd

I've created directory through regular RoundCube web interface.
Base directory:
suser@webmail:~$ ll Maildir/
total 188
drwx------ 13 suser suser  4096 Dec 18 19:42 ./
drwxr-xr-x  6 suser suser  4096 Dec 18 09:07 ../
drwx------  5 suser suser  4096 Dec 18 16:37 .Drafts/
drwx------  5 suser suser  4096 Dec 18 19:41 .Sent/
...
drwx------  2 suser suser 12288 Dec 18 19:41 cur/
-rw-------  1 suser suser  3311 Dec 18 19:38 dovecot-uidlist
-rw-------  1 suser suser     8 Dec 17 09:42 dovecot-uidvalidity
-r--r--r--  1 suser suser     0 Dec 10 11:43 dovecot-uidvalidity.5def68bc
-rw-------  1 suser suser  1608 Dec 18 19:37 dovecot.index
...
-rw-------  1 suser suser   192 Dec 17 09:42 dovecot.mailbox.log
drwx------  2 suser suser  4096 Dec 18 18:01 new/
-rw-------  1 suser suser    53 Dec 17 09:42 subscriptions
drwx------  2 suser suser  4096 Dec 18 18:00 tmp/

Admin dir, that was created via roundcube web interface:
suser@webmail:~$ ll Maildir/.admin/
total 32
drwx------  5 suser suser 4096 Dec 16 19:26 ./
drwx------ 13 suser suser 4096 Dec 18 19:42 ../
drwx------  2 suser suser 4096 Dec 16 19:26 cur/
-rw-------  1 suser suser   51 Dec 16 19:26 dovecot-uidlist
...

suser@webmail:~$ ll Maildir/.admin/cur/
total 8
drwx------ 2 suser suser 4096 Dec 16 19:26 ./
drwx------ 5 suser suser 4096 Dec 16 19:26 ../

Normal home directory:
suser@webmail:~$ ll
total 256
drwxr-xr-x  6 suser suser   4096 Dec 18 09:07 ./
drwxr-xr-x 51 root  root    4096 Dec 17 14:36 ../
-rw-------  1 suser suser    875 Dec 16 20:24 .bash_history
-rw-r--r--  1 suser suser    220 Dec 10 08:46 .bash_logout
-rw-r--r--  1 suser suser   3771 Dec 10 08:46 .bashrc
drwx------  2 suser suser   4096 Dec 10 09:15 .cache/
drwx------  3 suser suser   4096 Dec 10 09:15 .gnupg/
-rw-r--r--  1 suser suser    807 Dec 10 08:46 .profile
-rw-r--r--  1 suser suser      0 Dec 10 09:25 .sudo_as_admin_successful
-rw-------  1 root  root    1129 Dec 11 09:42 .viminfo
drwx------ 13 suser suser   4096 Dec 18 19:42 Maildir/
------------------------------------------------------------------------
*От:* Edgar Pettijohn <ed...@pettijohn-web.com>
*Отправлено:* 18 декабря 2019 г. 19:28
*Кому:* misc@opensmtpd.org <misc@opensmtpd.org>; Юрий Иванов <format_...@outlook.com>
*Тема:* Re: Unable to use .forward with snmpd


On Dec 18, 2019 8:47 AM, Юрий Иванов <format_...@outlook.com> wrote:
>
> Hi, I'm using snmpd with roundcube.
>
> After creating .forward file I apply chmod 400 .forward, so no errors in my mail.err log.
> Default permissions leads to generating warn in logs:
> smtpd[6275]: warn: smtpd: /home/suser/.forward: unsecure file
>
> Content is more or less default:
>
> ad...@mydomain.com        # anything after # is ignored
> "|/home/suser/Maildir/.admin/new/"
>
> As the result my mail is not working:
>
> Dec 18 12:54:33 webmail smtpd[6279]: 0000000000000000 mda event=delivery evpid=3b98bdcf411c5f9a from=<s...@mydomain.com> to=<ad...@mydomain.com> user=suser method=mda delay=3h48m10s result=TempFail stat=Error ("/bin/sh: 1: /home/suser/Maildir/.admin/new/: Permission denied")
>

What are the permissions for the directory you are forwarding to?

> Thanks in advance




Reply via email to