Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple Sendmail Instances

74 views
Skip to first unread message

bmka...@pplweb.com

unread,
Oct 18, 2000, 3:00:00 AM10/18/00
to
Is it possible to run multiple instances of the sendmail deamon on a
single UNIX server? I have a server with 2 ip addresses and would like
to run 2 sendmails. Each working on a different ip address.

Thanks,
Bruce


Sent via Deja.com http://www.deja.com/
Before you buy.

Miroslav Zubcic

unread,
Oct 18, 2000, 8:26:03 PM10/18/00
to
bmka...@pplweb.com writes:

> Is it possible to run multiple instances of the sendmail deamon on a
> single UNIX server? I have a server with 2 ip addresses and would like
> to run 2 sendmails. Each working on a different ip address.

Yes, it is. I'm running two sendmails on single Linux machine without
problem. Including TLS between them. :-)

Just bound them on different interfaces:

FEATURE(`no_default_msa')dnl
DAEMON_OPTIONS(`Addr=192.168.1.1, Name=MTA')
DAEMON_OPTIONS(`Port=587, Addr=192.168.1.1, Name=MSA, M=E')

and for other sendmail and his cf file use your other IP.

This is path-related part of site.config.m4 that I'm using for
building other sendmail:

define(`confMBINDIR', `\"/opt/sendmail/bin\"')dnl
define(`confEBINDIR', `\"/opt/sendmail/bin\"')dnl
define(`confUBINDIR', `\"/opt/sendmail/bin\"')dnl
define(`confSHAREDLIBDIR', `\"/opt/sendmail/lib\"')dnl
define(`confHFDIR', `\"/opt/sendmail/mail\"')dnl
define(`confSTDIR', `\"/opt/sendmail/mail\"')dnl
APPENDDEF(`confENVDEF', `-D_PATH_SENDMAILCF=\"/opt/sendmail/mail/sendmail.cf\"')dnl
APPENDDEF(`confENVDEF', `-D_PATH_SENDMAILPID=\"/opt/sendmail/mail/sendmail.pid\"')dnl
APPENDDEF(`confENVDEF', `-D_PATH_SENDMAIL=\"/opt/sendmail/mail/sendmail.cf\"')dnl

Of course, you will have to redefine QueueDir path, hash/dbm map paths
and so on... in OtherSendmail.mc, for example:

define(`ALIAS_FILE', `/opt/sendmail/mail/aliases')dnl
define(`QUEUE_DIR', `/opt/sendmail/mqueue')dnl
define(`STATUS_FILE', `/opt/sendmail/mail/statistics')dnl
define(`confCR_FILE', `/opt/sendmail/mail/relay-domains')dnl
define(`confCW_FILE', `/opt/sendmail/mail/local-host-names')dnl
define(`confCT_FILE', `/opt/sendmail/mail/trusted-users')dnl

and so on... It takes some time when you doing this first time, but
it's not so hard...

--
Those who do not understand Unix are condemned to reinvent it, poorly.

0 new messages