# Bounces from a website's mail never arrive

UrbeStack sysadmin note about PHP. Last updated 30 Nov 2026.

Bounces from mail a website sends with PHP's `mail()` function never reach anyone. A mail account or forwarder can collect bounces at the `noreply@` email address UrbeStack uses on the site's domain.

## Symptoms

Messages the site sends with `mail()` never bounce back to anyone, even when the recipient does not exist. The mail log shows the messages were sent from `noreply@example.com`. On AlmaLinux, look in `/var/log/maillog` with the command below. On Ubuntu, read `/var/log/mail.log`.

```
grep 'from=<noreply@example.com>' /var/log/maillog
```

The bounce to `noreply@example.com` is itself refused.

```output
postfix/lmtp[2310]: 654E010BBF2C: to=<noreply@example.com>, relay=server.example.net[private/dovecot-lmtp], delay=0.04, delays=0/0/0.03/0.01, dsn=5.1.1, status=bounced (host server.example.net[private/dovecot-lmtp] said: 550 5.1.1 <noreply@example.com> User doesn't exist: noreply@example.com (in reply to RCPT TO command))
```

## Cause

UrbeStack configures each domain's PHP-FPM pool with PHP's `sendmail_path` set to `/usr/sbin/sendmail -t -i -f noreply@example.com`, using the domain's own name.

Every message the site sends with `mail()` therefore uses `noreply@example.com` as its envelope sender. Bounces go to that email address. If it has no mail account or forwarder, the server refuses the bounce and it is lost.

## Resolution

Forward `noreply@example.com` to a mail account someone reads. The site's bounces arrive at that mail account from then on.

```
urbestack-mail-forwarder-add --address noreply@example.com --to user@example.com
```

You can also use the site's SMTP settings or plugin to send mail through SMTP while logged in as a mail account. The site's bounces then go to that mail account.

If the problem persists after you follow this note, you can [open a support ticket](https://support.urbestack.com/new?type=support). Including the output of the commands you ran helps support diagnose the problem.
