One way to remove the mail server FQDN from the mail header when using OpenSMTPD.

in #openbsd7 years ago

I run a mail server for my domain. It runs OpenBSD 6.1 which uses the new OpenSMTPD mail application to send and receive mail. In older versions of OpenBSD it used sendmail to do this job and I could set it up to masquerade my email address as coming from my domain name as apposed to coming from my fully qualified host name (FQDN).

For example, if my machine was called nitro, then the FQDN would be nitro.example.com but sendmail would just strip off the nitro part when sending mail so it was sending mail "from" [email protected] instead of [email protected]. All good.

Now for the life of me I couldn't find a way to make OpenSMTPD do this masquerading so I ended up with [email protected] instead of [email protected], not what I wanted. From the research I did it appears it's a feature being worked on but not yet available in the configuration of OpenSMTPD.

But, alas, there is a workaround. That is to tell the "mail" program to substitute the "from" address with what you want. so for each user you just have to modify the .mailrc to include the statement "set [email protected]" which is slightly inconvenient but nevertheless doable.

Sort:  

Hi. I am a volunteer bot for @resteembot that upvoted you.
Your post was chosen at random, as part of the advertisment campaign for @resteembot.
@resteembot is meant to help minnows get noticed by re-steeming their posts


To use the bot, one must follow it for at least 3 hours, and then make a transaction where the memo is the url of the post.
If you want to learn more - read the introduction post of @resteembot.
If you want help spread the word - read the advertisment program post.


Steem ON!

Congratulations @chevybeef! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @chevybeef! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.20
TRX 0.19
JST 0.034
BTC 91046.79
ETH 3087.94
USDT 1.00
SBD 2.87