You right!
I've found issue.
The syntax of my .forward file is wrong.

This will work:
 cat .forward
us...@mydomain.net, n...@mydomain.net

This case will forward incoming mail to user1 and noc mailboxes.
I was using exim previously a little bit, and I found that exim has more types 
of filters for .forward file.
Nevertheless, now I'm using OpenSMTPd only so I just need to figure how to 
build new .forward file.

Thank you all guys for your help.

________________________________
От: Edgar Pettijohn <ed...@pettijohn-web.com>
Отправлено: 19 декабря 2019 г. 0:34
Кому: misc@opensmtpd.org <misc@opensmtpd.org>
Тема: Re: Unable to use .forward with snmpd


On 2019-12-18 17:28, Edgar Pettijohn wrote:
>
>
> 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/"
>

Probably shouldn't try piping it through a directory.


> >
> > 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