Thursday, July 24, 2008

Sendmail support - local-host-names file

This file is very simple, and does nothing else besides specifying what domains names is hosted on the server. Any domain name found in this file, will expect to find entries in the virtusertable file as well. If you have only one domain on this server, then you will have your domain in this file, and in the relay-domains file, and only users set up in the /etc/passwd file.

simply edit the file and add your domain name by issuing the command:

" vi /etc/mail/virtusertable"

Inside this file , add only your domain name like

lds.za.net
google.com
linuxhelp.za.net

write and save the file, and that is it. Add all the domain names you add here into the /etc/mail/relay-domains file as well. you will see that by default the relay-domains file does not exist, so just create it ;-)

That is all I can say about that file ;-)

1 comment:

Unknown said...

I'm trying to setup a development environment for our web
application such that all emails are relayed/routed to 1 particular email address instead of their real destination email addresses.
This allows us to make sure the emails were constructed properly, count them for testing the correct number sent, etc.

The main issue is to relay all mails send by the server to one particular email address, where I can check whether the emails where sent properly by the application without reaching their destination. In real I would want the emails to reach their destination, but for testing I cannot allow this.

How can I achieve this using Sendmail?

Reagards
Manqoba Sihwa