Re: two instances of postfix

This is a discussion on Re: two instances of postfix within the mailing.postfix.users forums, part of the Mail Servers and Related category; D. Walsh wrote: > > On May 28, 2005, at 12:04 AM, Victor Duchovni wrote: > >> On ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-29-2005
mouss
 
Posts: n/a
Default Re: two instances of postfix

D. Walsh wrote:
>
> On May 28, 2005, at 12:04 AM, Victor Duchovni wrote:
>
>> On Fri, May 27, 2005 at 06:05:53PM -0400, D. Walsh wrote:
>>
>>
>>> mustangrestomods:~ websrvr$ postconf -c /etc/postfix -n
>>> inet_interfaces = all
>>>
>>> mustangrestomods:~ websrvr$ postconf -c /etc/postfixalt -n
>>> inet_interfaces = 10.1.100.11
>>>

>>
>> On many systems binding "all" interfaces (0/0) precludes, for good
>> security reasons, later binding some of the interfaces for the same port
>> in another process. So you must exclude the 10.1.100.11 inteface from
>> the inet_interaces list of the default Postfix instance.
>>
>> --
>> Viktor.

>
>
> OK now at least it's attempting to run and shows activity in the logs.
>
> May 28 14:24:16 dellc postfix/master[11192]: fatal: bind 127.0.0.1 port
> 10025: Address already in use
>

you are trying to run two independent smtpd processes to listen on the
same IP and port. use different ports. for instance use 10025 for the
first instance and 11025 for the second instance. of course, configure
amavisd (one or two?) accordingly.

>
> I have the amavisd content filter stuff defined in both, will the
> second postfix still use it if I remove the content filter entries
> completely from the second postfix or do I just need to remove the
> following?


There are 3 cases:
- you need to filter only for one instance. if so, use amavis only in
one instance
- you need to filter in both, but filtered mail can go to whatever smtpd
(choose one). if so, run one amavisd
- you need to filter in both, and after filtering, mail should "stay in
the same instance". if so, run amavisd twice, using two different ports,
and configure each to forward filtered email to the _right_ smtpd.




>
> Also, you mentioned something about "syslog_name", I take it this is to
> write to a second mail log file,


no, this will write to the same file with another name. the goal is to
get something like
...... postfix1/smtpd[123]: ....
...... postfix2/smtpd[456]: ....
This way, you know which one is logging.

what needs to be done for this to work
> or will it still work writing to a single log file?
>
>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:29 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0