Re: Linux mail command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Paul Ward schrieb:

Hi all,

I was hoping for some advice on the mail command or posfix config.

How can I send mail and change the from address to be something other than root.

eg

0 1,7,13,19 * * * cd /usr/sbin/; ./chkrootkit 2>&1 | mail -s
"chkrootkit output" pnward@xxxxxxxxxxxxxx

This returns an excellent output but its from root@mybox.
I'd like it to come from chkrootkit@mybox

Paul

Use "nail" instead of "mail". nail is packaged in Fedora Extras. It allows you to set the envelope sender - at least I think you mean that when your speak about the "from address" in lack of better knowledge (as oppose to the header from:). The "sendmail" binary call allows you to set the envelope sender as well, by using the "-f user@xxxxxxxxxx" parameter call (both with Sendmail and Postfix). If you instead want a header from: set you must do a different mailing which sets the required header fields and not simply pipes output into a mail body.

Alexander

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux