OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Multiple instances of smtp and smtpd

From: mouss (usebsdfree.fr)
Date: Tue Nov 01 2005 - 14:53:42 CST


Adi Linden a écrit :

>So there is no way to "flag" incoming messages that they arrives on a
>certain interface and process the sending based on that flag? Reason I'd
>like it that way is that I would like to be able to use the same spam
>filtering mechanism already in place.
>
>
you can specify the content filter as an option to each smtpd listener.
you can also battle by using different cleanups.
it all depends on what you really want...

>How would I run a second instance of postfix? I assume the second postfix
>instance require seperate config directory (/etc/postfix), queue directory
>(/var/spool/postfix), what else?
>
>
+ it's own config files (main.cf and master.cf)
+ adjust startup scripts
+ set syslog_name for each instance. this way, logs are easily
identified. this allows a "clean" use of pflogsumm.
+ use -c or MAIL_CONFIG with postfix commands (check the manpages for each).
you can use aliases if you want (I have chosen a script instead....).

otherwise, you can share most maps (and actually most config parameters).