-bash-3.2# hostname name.foo.bar.domain.tld -bash-3.2#
whenever I send an email it leaves as firstname.lastname@example.org, I need to have sendmail change it to email@example.com
how do I do that?
Assuming you are using the default installed FreeBSD sendmail you should not be editing the .cf files directly. They are generated from .mc files in the /etc/mail directory.
There is a Makefile in /etc/mail that will generate the .cf from the .mc files
Add the following line to the .mc files to set the default domain:
If you really want to edit the .cf file directly, I believe the correct line is:
(don't include the $w.)
Update: How to use make to regenerate your .cf
you must be root.
should be in /etc/mail/sendmail.cf