OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: How to distinguish server instances?

From: Heinz Ulrich Stille (husdesign-d.de)
Date: Sat Sep 02 2006 - 11:59:54 CDT


On Saturday 02 September 2006 18:04, mouss wrote:
> - with a single instance, you still can't distinguish log lines such as
> qmgr.

Well, I have only one qmgr, so I don't care about that one.

> - if you're only trying to distinguish lines when postfix passes mail to
> the filter, you can use smtp instead of lmtp, and use names instead of IPs:
> -o content_filter=scan:[amavis.localhost]:10024
> and declare amavis.localhost in your DNS. same for other filters. Then
> you'd see "relay=amavis.localhost:[127.0.01]" in your logs.

Actually, lmtp does log the nexthop too, so I see the port number. That's
good enough for me.
And as Noel said, symlinks still work for smtpd. Probably until postfix
gets lmtp daemon functionality.

> but multiple postfix instances (run postfix N times, with different
> config and queue directories) is far better, since you can use different
> syslog_name in each postfix. make sure the hostname is different.

But the configuration would just be duplicated, except for that one
option. That's asking for trouble... or does the config file have
"include" functionality?
What is special about "syslog_name" anyway? The documentation doesn't
mention any differences from options that can be set on the command
line.
Apropos documentation: The man-page for lmtp says nexthop should start
with "unix" or "inet". I had "inet" in my 2.2 config, but 2.3 rejects
that and wants just the hostname or address...

MfG, Ulrich

--
Heinz Ulrich Stille / Tel.: +49-541-9400473 / Fax: +49-541-9400450
design_d gmbh / Wilhelmstr. 16 / 49076 Osnabrück / www.design-d.de