Configuring default 6.0 install to send mail

Greg Maruszeczka greg at
Thu Nov 10 03:08:33 GMT 2005

Brooke Landers wrote:
> Hello list. I am learning FreeBSD and I'd like to know how to configure
> Sendmail to simply forward mail although it seems it's doing this by
> default. I can send mail, but it's being rejected since
> doesn't resolve. I'm using internal hosts that
> will never have DNS entries.
> I'm looking for somewhere where I can specify that user at mylocalhost can
> send mail as user at I'm pretty sure that my mail would be
> accepted if I can do this.
> I don't want to set up a mail server, I'd just like to know how I can
> get my logs and admin mail forwarded to an external address. I apologize
> for not sending this to a sendmail list, but I figured there may be
> something simple and specific to FreeBSD that I have overlooked.
> Thank you for any help :)
> BL

If that's all you want to do the simplest thing is this (as root):

cd /etc/mail
vi aliases

Look for the entry for root: uncomment it and add whatever external
address you want after the colon. After saving and exiting:


Now all system mail should be sent to the external address you specified
in /etc/mail/aliases.

Test it by doing this:

mail -s "Test" root


More information about the freebsd-questions mailing list