-   *BSD (
-   -   configure sendmail to send using (

speederpro 07-29-2009 05:53 PM

configure sendmail to send using
Hello all,

I want to configure sendmail to send mail as on my new freebsd.

When I send an email from command line, the recipient receive the email from instead of

What do I need to change to make the "from" appear as

Thanks in advance.

speederpro 07-31-2009 04:13 PM

Yeah, I found the solution.

For those who are looking for the same solution as me.

# cd /etc/mail
# make
# vi

Change From: DOMAIN(generic)

Change To: DOMAIN(`')dnl

# cd /usr/share/sendmail/cf/domain
# cp generic.m4
# vi
# echo "FEATURE(`masquerade_entire_domain')dnl" >>
# echo "FEATURE(`masquerade_envelope')dnl" >>
# cd ../feature
# echo "MASQUERADE_AS(`')dnl" >> masquerade_entire_domain.m4
# cd /etc/mail
# make
# make install
# make restart

Voila. You are done. Any mail sent via command line will appear as from


All times are GMT -5. The time now is 08:56 PM.