skyBuilders HomePage

skyBuilders Sendmail Journal



Jesse Burkhardt - begun on 2001/11/07

last modified on 2002/04/18


Introduction:

*

Important: Occasionally when our primary mail server will enter a state whereby the the mailstore service cannot restart. This is usually due to the presence of a lock file generated during a mailstore abend. You must remove this lock file, storemgr.lock, before you can successfully restart the mailstore service:
  $> rm /var/md/store/run/storemgr.lock
$> /etc/rc.d/init.d/rc.m-store restart

This document is not very organized, but the purpose of it is to capture as much as I could remember about all that is is the required for the configuration setting for the primary mail server (mail.skybuilders.com) secondary mail server (hosts4.skybuilders.com), and associated setting external to them: individuals' email client programs, DNS records, etc.

*

A related document, skyBuilders Mail Server Backup Method is an extensive document on a cobbling together of linux services that enable cron'ed, NFS'ed, SMB'ed, Sendmail file backup. (This document contains sensitive internal system information and requires a password for viewing.


Primary Sendmail Server Settings:

Presently we are using a third configuration for our SAMS (Sendmail Advanced Message Server) product, called "srg.m4" - named for Steve Glines, who has been very helpful. m4 is the extension used for the sendmail macro engine, see the "MISC" section below. (The original SAMS configuration was based on default.m4. I deployed an intermediate configuration called nuconfig.m4, which was required to re-enable mail forwarding from the various mail domains that we support. The deployment of nuconfig.m4 allowed for the SAMS product to redetect the relevant ether settings that had been applied to the primary mail server. Unfortunately we must treat the forcing of this redetection as a black box for the time being, as the product did not seem be dynamically aware of this change.) I will not name out all the settings in the installation, as they can be seen through the smadmin console interface, but will mention the most important settings:

The /etc/mail/relay-domains file must have entries for 64.226.242.104 (skybuilders.com at Interland), 63.209.229.198 (the Toshiba site monitor), and 199.103.162.[*] (the entire Verio D class) This allows us all use mail server (mail.skybiolders.com) as an SMTP relay for our outbound mail. This also allows us to disable SMTP from our own office machines for security purposes - in effect, making the mail server an SMTP proxy for us inhouse.

In the Sendmail Advanced Message Server - SAMS - interface this file accessed through the skyBuilders Sendmail Admin console. Click on the "Edit Existing Configuration" link; then select the "srg.m4" configuration; hit the "Load" button and select the "Relay Access Control" link under the "Anti-Spam Control" section.


*

Additionally, apart from making relay-domains entries, it is necessary to make entries in the /etc/mail/access file if we want to give special SMTP access to users who have accounts in mail domains we support. When domain entries are given the "OK" setting users with accounts in approved domains can use the SMTP services of the primary skyBuilders mail server. This is a bit confusing since one would think that using the RELAY setting would accomplish this, though it, in fact, does not. I excerpt from the SAMS online documentation:

The following is a list of acceptable values for the right-hand side of the access database:

OK Accept email even if other rules in the current rule set would reject it
RELAY Allow domain to relay through your server
REJECT Reject sender/recipient with a message
DISCARD Discard the message using $#discard mailer


(In the Sendmail Advanced Message Server - SAMS - interface this file accessed through the skyBuilders Sendmail Admin console. Click on the "Edit Existing Configuration" link; then select the "srg.m4" configuration; hit the "Load" button and select the "Anti-Spam Control" link.)


Other settings such as that for promiscuous relaying must be disabled. After all, we don't want to help the spammers of the world propagate their trash through wide open relays.

SMTP Settings on skyBuilders Web Servers:

This ban on open relaying applies equally for the defaul SMTP settings on all our web servers, which use SMTP to send mail concerning bug reports originating from skyBuilders timeLines installations to those of us who support those installations. On the Windows 2000 based IIS web servers make settings by openning the MS Windows 2000 IIS Manger utility:

Click Start > Programs > Aministrative Tools > Internet Services Manager, yielding the following interface:



Then right click the Default SMTP Virtual Server entry (underlined above) yielding:



In the resulting Default SMTP Virtual Server Propoerties display select the Access tab and click the Relay button, yielding:



Select the top radio button saying, "Only the list below", and click OK. Make sure the "list below" has no entries, as is shown in the illustration, as this effectively blocks everything from relaying. Also click OK to close the Default SMTP Virtual Server Propoerties display. (Not clicking OK may result in these settings not being saved.)

This process now completes the process of relay blocking the web server's SMTP service. The web server still retains the ability to send emails from the websites inhabiting it.

Client IMAP and SMTP settings:

People who want to connect to mail domains that we support certainly must have their own email client's inbound IMAP connection set to point at mail.skybuilders.com to read their domain specfic email. (A user may refer to his own domain, for example, mail.dtvgroup.com, provided an MX record exists in the dtvgroup.com DNS entry, and the accompanying A record in the skybuilders.com entry, in the DNS server exists.) To send email users may point their SMTP server settings to the skyBuilders SMTP server mail subdomain, using the same settings for both outbound and inbound mail server settings.

This assumes that the domain supported by skyBuilders appears as an entry the in the /etc/mail/realy-domains table of our primary mail server. Should our policy allowing certain domains to relay become more restrictive then such users may have to set their SMTP mail server settings to that of their connectivity provider. For instance:

*

For more on this visit my detailed document for setting up Netscape Messenger client email access.
MISC:

Edit 
Language: fr  | it  | de  | es  | pt  | ar  | he  | da  | nl  | zh  | ja  | ko  | none 
skyCalendar

This Version:
Archived at: https://www.skybuilders.com/Users/Jesse/Docs/sendmailJournal.20020327215113.html

Requests
 Version: 2554 | Series: 3586