---
title: "How to change sender (from) address on scheduled reports"
description: "Scheduled reports in OP5 are sent from a default email address that may cause delivery issues. You can change the sender address by editing reports.php or configuring Postfix to rewrite the sender address."
url: "https://docs.itrsgroup.com/docs/faq/op5/360007483817-op5-monitor-how-to-change-sender-from-address-on-scheduled-reports/index.html"
---
By default scheduled reports are sent from [itrsop5monitor@hostname.domain](mailto:itrsop5monitor@hostname.domain). In some cases this might cause problems with e-mail delivery. There are two approaches to change the sender address: Change it in reports.php or rewrite the sender address with Postfix.

## Option 1 (reports.php)

Open /opt/monitor/op5/ninja/application/config/reports.php in an editor and change this:

```
$config['from_email'] = '';
```

to:

```
$config['from_email'] = 'email@example.com';
```

Now your reports should have "email@example.com" as sender address. You don't need to restart anything afterwards.

**Note that this file might be overwritten during updates**.

## Option 2 (rewrite with Postfix)

Open /etc/postfix/main.cf in an editor and add this at the bottom of the file:

```
smtp_generic_maps = hash:/etc/postfix/generic
```

Make sure to set mydomain and myorigin as follows (change the domainname):

```
mydomain = op5.com
myorigin = $mydomain
```

Edit /etc/postfix/generic and add this at the bottom (replace the e-mail address):

```
ITRSOP5Monitor reports@op5.com
```

Hash the file:

```
## postmap /etc/postfix/generic
```

Restart Postfix:

```
# service postfix restart # EL6
# systemctl restart postfix # EL7
```

Restart Monitor:

```
## mon restart
```

Note that this will not change the message content saying *"Scheduled report sent from..."*


