> Since this would seem a common SM
> configuration, let me ask here...

More like a common sendmail question, but fielding off-topic questions
can be fun and rewarding. Or something.
 
> 
> I just want sendmail to do 2 things:  
> 
> 1. any mail addressed without a domain should get a specified domain name
> appended to it.

This is called masquerading in sendmailese.

see here:
http://www.sendmail.org/m4/masquerading_relaying.html

I will assume that you are content to maintain your sanity and will not
be editing sendmail.cf by hand, and will instead be editing
sendmail.mc...using the m4 program to 'make' it.

MASQUERADE_AS(`host.domain')

will have the affect you want here...
if you want a specific domain masqueraded AS WELL AS unqualified and
local ones, use:

MASQUERATE_DOMAIN(`host.domain')

you also might want to keep root from being masqueraded:

EXPOSE_USER(`root')
 
> 2. all outbound mail gets sent to the gateway mail server for relay

here you want:

define(`MAIL_HUB', `mailer:host.domain')

if you use LOCAL_RELAY instead of MAIL_HUB, you will forward only
local(unqualified and whatnot) mail.
 
> How do I do this?

Hope that helps you.

Now that I have told you how to configure sendmail...I MUST make 2
suggestions:

1) use qmail instead (http://www.lifewithqmail.org)
2) if you use sendmail DONT have an open-relay...even if
internally...use:

FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl

and specifically allow relaying from those you trust.

Good luck.

-- 
-------------------------------------------
| Caleb Phillips                          |
| The Studio Resource                     |
| IT Specialist                           |
|                                         |
| Handcrafted for you in Ximian Evolution |
-------------------------------------------



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to