One more thing.  You will also need to set mynetworks to the list of
machines that should be allowed to relay mail through you.

Jon Schewe wrote:
> Close.  Here's what I have for a similar server I have at work.  It also
> does alias rewriting.
>
> masquerade_exceptions = root
> masquerade_classes = envelope_sender, header_sender, header_recipient
> myhostname = lug.htc.honeywell.com
> masquerade_domains = htc.honeywell.com
> mydestination = $myhostname, localhost.$mydomain
> relayhost = [smtp.honeywell.com]
> mailbox_command =
> mailbox_transport =
>
> The mailbox_* keep postfix from delivering any mail locally.
>
> Tim Wilson wrote:
>   
>> Hey everyone,
>>
>> I'd like to create a little server running Ubuntu and postfix that  
>> would be a mail relay for a few other servers in our school district.  
>> For example, rather than configuring our Moodle and nagios servers to  
>> send their own mail, I'd like to point them at the mail relay and have  
>> it send the mail for them. This box would not need to receive mail,  
>> only send it. We run GroupWise for our staff email accounts, but it  
>> can be a hassle to configure other servers to send mail through GW  
>> sometimes.
>>
>> I started putting together a main.cf file for postfix and got this far  
>> (in addition to the other default settings):
>>
>> mydestination = $myhostname, localhost.$mydomain, $mydomain
>> myhostname = bison
>> mydomain = buffalo.k12.mn.us
>> myorigin = $mydomain
>> relayhost = monitor.buffalo.k12.mn.us  # This is our nagios server
>>
>> Am I on the right track here?
>>
>> -Tim
>>
>>   
>>     
>
>   

-- 
Jon Schewe | http://mtu.net/~jpschewe
If you see an attachment named signature.asc, this is my digital
signature.
See http://www.gnupg.org for more information.

For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39