NCM::sendmail - NCM Sendmail configuration component
- Set From header masquerading in sendmail.
i.e. change the From field
"firstname.lastname@example.org". Use the following input
- Set Return-Path masquerading in sendmail.
i.e. change the Return-Path header
- Set the outgoing mail server ("smarthost") in sendmail.
Use the following input
- Allow external SMTP connections. By default sendmail will listen only to the loopback interface.
Sets up "relay" for all unqualified names, except either for the list in
/software/components/sendmail/localusersor, if that list hasn't been configured, for a (guessed) list of accounts that:
- have an existing home directory
- do not have an AFS home directory (
- do not already have an alias definition in
- whose uid indicates that this is not a system account (information from
"relay" means that a local mail username command on the machine will in reality send mail to email@example.com, instead of being appended to the user's local mailbox (e.g. /var/spool/mail/username).
To turn off the "guessing" mechanism, you will have to configure at least one account in
rootis a good candidate. - Unconfigure() - Reset From header masquerading in sendmail. - Reset Return-Path header masquerading in sendmail. - Reset outgoing mail server in sendmail. - Reset relay all unqualified names in sendmail.
- Set From header masquerading in sendmail. i.e. change the From field
/etc/mail/sendmail.mc: sendmail macro configuration file
/etc/mail/sendmail.cf: sendmail configuration file
The "local user relay" functionality seems to interfere with user .forward files, they may not be honoured on some sendmail versions.
Selectively "unconfiguring" certain elements doesn't work, you should run the unconfigure() method and re-configure() with the new values afterwards.