OpenSMTPD local sender

Hi all,

I have a FreeBSD 14.2 server set up with OpenSMTPD as an e-mail smart/relay host for other servers that use DMA.

This works great except a small annoyance for me : when sending a mail from the OpenSMTPD host, the sender is user@host.domain.com and I would like to have user@domain.com. I know I can add -f sender when sending with the mail command and add MAILFROM in crontabs, but would like to have it done globally at the OpenSMTPD level.

Could not find a solution, only that this could be done with filters...

Any help appreciated.
 
Almost. This solution put always the same sender. I am looking for something that remove the host part but leave the original local user.

Anyway thanks for the tip, that is a good starting point for a filter solution.
 
Back
Top