0

We deployed sentry on premise. We have no problems sending email through the applications. Sender shows "tail@foo.com" in the email.

However, there is celery worker that sends out emails, since the sender is "roo@localhost.foo.com" emails are bounced.

I have tried configuring generic and added hosname in main.cf. But didnt work.

My problem is postfix is sending emails as root@localhost.foo.com not as tail@foo.com.

What do I need to change or do to have the emails sent as tail@foo.com?

DarthVader
  • 52,984
  • 76
  • 209
  • 300

1 Answers1

0

You can use masquerade_domains setting as a workaround using this command:

$ postconf 'masquerade_domains = $mydomain'

masquerade_domains (default: empty)

Optional list of domains whose subdomain structure will be stripped off in email addresses.

Selcuk
  • 57,004
  • 12
  • 102
  • 110