Greg Sims via Postfix-users:
> I set the following in main.cf
> 
> mydestination = localhost
> 
> and received the following in our logs:
> 
>   May 31 04:42:27 mail01.raystedman.org postfix/local[3978]:
> 7CE5C30F558E: to=<bounce-local@localhost>, orig_to=<bounce-local>,
> relay=local, delay=0, delays=0/0/0/0, dsn=5.1.1, status=bounced
> (unknown user: "bounce-local")

Well duh, where should she deliver the message?

Alternatives:

- create a user, deliver to mailbox /var/mail/bounce-local

- create a user, specify command in ~bounce-local/.forward

    "|path/to/command args..."

- create a local alias in /etc/aliases

    bounce-local: /path/to/file

- create a local alias in /etc/aliases

    bounce-local: "|path/to/command args..."

After editing /etc/aliases execute the command "newaliases".

        Wietse

>   May 31 04:42:27 mail01.raystedman.org postfix/bounce[3970]: warning:
> 7CE5C30F558E: undeliverable postmaster notification discarded
> 
> It appears we are trying to deliver locally now -- a step in the right
> direction.
> 
> bounce-local is not a rhel user of the local machine -- please note
> the entry we have in virtual.
> 
> I updated main.cf as follows hoping this will help:
> 
> mydestination = $myhostname, localhost.$mydomain, localhost
> 
> We know that the SPF error for the double-bounce was trying to be sent
> to domain mail01.raystedman.org -- thus $myhostname.
> 
> Thanks, Greg
> 
> On Thu, May 30, 2024 at 2:52?PM Wietse Venema <wie...@porcupine.org> wrote:
> >
> > Greg Sims via Postfix-users:
> > > On Thu, May 30, 2024 at 12:27?PM Greg Sims <g...@raystedman.org> wrote:
> > > >
> > > > I believe I am ready to capture the double-bounce locally.
> > > >
> > > > This is main.cf:
> > > >   # 24-05-30 save the bounces locally at bounce-local
> > > >   notify_classes = 2bounce, bounce, resource, software
> > > >   bounce_notice_recipient = bounce-local
> > > >   2bounce_notice_recipient = bounce-local
> > > >   virtual_alias_maps = hash:/etc/postfix/virtual
> > > >
> > > > This is virtual:
> > > >   bounce-local    bounce-local@localhost
> > > >
> > > > and ran postmap /etc/postfix/virtual.
> > >
> > > This does not look good --
> > >
> > >  May 30 11:30:40 mail01.raystedman.org postfix/t121/smtp[52641]: <<< NOTE 
> > > SMTP
> > > 4FE9D3061EF0: to=<bounce-local@localhost>, orig_to=<bounce-local>,
> > > relay=none, delay=0, delays=0/0/0/0, dsn=5.4.6, status=bounced (mail
> > > for localhost loops back to myself)
> >
> > You are delivering mail for localhost with the Postfix SMTP CLIENT.
> >
> > Add localhost to main.cf:mydestination and do "postfix reload".
> >
> > Then, Postfix will use the local delivery agent for localhost mail.
> >
> >         Wietse
> >
> > >
> > >  May 30 11:30:40 mail01.raystedman.org postfix/bounce[52732]: warning:
> > > 4FE9D3061EF0: undeliverable postmaster notification discarded
> > >
> > > The only changes were to set up the local mailbox.
> > >
> > > Thanks, Greg
> > > _______________________________________________
> > > Postfix-users mailing list -- postfix-users@postfix.org
> > > To unsubscribe send an email to postfix-users-le...@postfix.org
> > >
> _______________________________________________
> Postfix-users mailing list -- postfix-users@postfix.org
> To unsubscribe send an email to postfix-users-le...@postfix.org
> 
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to