[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vps-mail] mailertable



anon <sikaspam@xxxxxxxxxxx> said:

> Is mailertable built into the sendmail make of VPS1 and/or 2?

I'm not sure I understand your question, but I'll give it a stab. On VPS2 (and 
in standard FreeBSD), the Makefile in /etc/mail/Makefile will build/update 
/etc/mail/mailertable.db if it finds a file named /etc/mail/mailertable. (On 
VPS2, if you type "make" as root in the /etc/mail directory, it will "do 
whatever is necessary" to update db and cf files.) The default macro 
configuration (mc) file in /etc/mail/freebsd.mc includes the line:

FEATURE(mailertable, `hash -o /etc/mail/mailertable')

I guess that means it is "built into the sendmail make." Is that what you 
meant?

VPS1 uses the "standard" sendmail.org Build script to generate cf files from 
mc files. On VPS1, you will need to vinstall sendmail to get the sendmail m4 
macros that are used to generate cf files from mc files. Then change to the 
directory ~/usr/local/sendmail/cf/cf, select one of the four default mc files 
and make a working copy. For mailertable support, insert a line similar to the 
one on VPS2, except specify the path as /etc/mailertable. If the working copy 
of your mc file is named vmailpros.com.mc (for example), you can create a cf 
file from it by issuing the command:

/Build vmailpros.com.cf

Then copy the vmailpros.com.cf file to ~/etc/sendmail.cf

Creating the ~/etc/mailertable.db file itself isn't quite as easy on VPS1 as 
it is on VPS2. On VPS1, there are special "vnew<whatever>" commands to create 
virtmaps.db, aliases.db, spammers.db, etc. To create a mailertable.db, do the 
following:

1. Create a file named ~/etc/mailertable with your favorite editor (using the 
syntax in the Bat book, ~/usr/local/sendmail/cf/README, etc.)

2. On FreeBSD VPS1, issue commands something like:

/usr/sbin/makemap hash ~/etc/mailertable < ~/etc/mailertable

On Solaris VPS1, the command becomes:

/usr/local/bin/makemap hash ~/etc/mailertable < ~/etc/mailertable

Output will be in a file named ~/etc/mailertable.db

> Does the FEATURE work in a virtual environment?

I have used it before without any problems.

-- 
Bennett Lanford
ben@xxxxxxxxxxxxx


======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: