On Wed, 7 Jul 2021, Mike Hughes wrote:

I just noticed that we have a bunch of undeliverable messages piling up in the queue. I have root defined in aliases for another address, which works when sending to r...@domain.com. However, since the FQDN in main.cf is defined as host.subdomain.domain.com it's appending the whole string.

What's the most stable way to encourage everything to go to r...@domain.com instead? Thanks!

You could explicitly set the destination e-mail (use "--mailto user@domain").

Otherwise logwatch will use whatever is in $MAILTO if defined (you can define it in your crontab if you run logwatch from cron).

As a last resort, logwatch will send to "root", which is probably what happens in your case, and any subsequent modification requires Postfix.

But I'd recommend just using logwatch's "--mailto" option.

Cheers,
Bernardo

Reply via email to