MTAopts for mailx

Home
This is a patch for the Heirloom mailx email client (aka nail, often installed simply as mail). The patch implements a new configuration variable: mtaopts. Mailx will pass the contents of this variable on to the MTA's command-line upon message sending (examples of an MTA: sendmail, esmtp).

mtaopts can also be set within a config file's account{} blocks, enabling the user to pass different options for different accounts.

This patch was born out of the need to prevent the MTA from exposing the real username and the internal hostname of the machine where mailx is running. Being able to supply alternate addresses by account, makes mailx more suitable and practical for Internet email.

I use mtaopts to pass my MTA the '-f dario@darioniedermann.it' option. So the initial From line (usually a hidden header) will contain my Internet email address, not my local username and hostname. Here's an excerpt from my ~/.mailrc:


.
.
.
account dn {
	set from='Dario Niedermann <dario@darioniedermann.it>'
	set mtaopts='-f dario@darioniedermann.it'
}
.
.
.

Heirloom mailx 12.5 source code
“MTAopts for mailx” is Copyright © Dario Niedermann
released with NO WARRANTY under the terms of the GPLv3 license.

HomeValid HTML 4.01 Strict Valid CSS!