How do I forward messages to a Smart Host?

From Scalix Wiki
Revision as of 07:07, 18 November 2010 by Kiitii (Talk | contribs)

Jump to: navigation, search

Scalix Wiki -> FAQ -> How do I forward messages to a Smart Host?

Configuring a Smart Host provides a way of routing messages from a server that has no knowledge of external DNS to one that does (the Smart Host).

To forward all internet bound messages from Scalix Server to a Smart Host, which will then send them out to the internet:

1)Set the DS macro in the file sendmail.cf on the Scalix Server. Change the file from:

  # "Smart" relay host (may be null) 
  DS 

to

  # "Smart" relay host (may be null) 
  DSoutboundserver.domain.com 

Where outboundserver.domain.com is the name of your internet-bound (messages) server/Smart Host.


2) After the change, stop (omshut) and start Scalix (omrc).


Method Number 2

# vi /etc/hosts
192.168.1.10  mailgateway.domain.com
# vi /etc/mail/sendmail.mc
define(`SMART_HOST', `mailgateway.domain.com')dnl

This command will do the necessary changes in Scalix and restart sendmail.

# omsendin

To verify the outgoing email log.

# tail -f /var/log/maillog