Hello friends...
Sorry to all for my English ... is google translator
I am integrating a system with multiple ips postfix to spread the use a little more and not have problems with yahoo ... it's always the same.
I say I'm doing
a) I am using this file to generate the rotation
- #!/usr/bin/perl -w# author: Hari Hendaryanto <hari.h -at- csmcom.com>use strict;use warnings;use Sys::Syslog qw(:DEFAULT setlogsock);## our transports array, we will define this in master.cf as transport services#our @array = ('rotate1:','rotate2:','rotate3:','rotate4:','rotate5:');## Initalize and open syslog.#openlog('postfix/randomizer','pid','mail');## Autoflush standard output.#select STDOUT; $|++;while (<>) { chomp; # randomizing transports array my $random_smtp = int(rand(scalar(@array))); if (/^get\s(.+)$/i) { print "200 $array[$random_smtp]\n"; syslog("info","Using: %s Transport Service", $random_smtp); next; } print "200 smtp:";}
b) Then I created the ips calls in master file, and here is where the problem starts
- Problem---->>>>
- 127.0.0.1:2527 inet n n n - 0 spawn user=nobody argv=/etc/postfix/random.pl
- <<<<----- Problem
- rotate1 unix - - n - - smtp
- -o syslog_name=postfix-rotate1
- -o smtp_helo_name=smtp1.example.com
- -o smtp_bind_address=1.2.3.1
- rotate2 unix - - n - - smtp
- -o syslog_name=postfix-rotate2
- -o smtp_helo_name=smtp2.example.com
- -o smtp_bind_address=1.2.3.2
- rotate3 unix - - n - - smtp
- -o syslog_name=postfix-rotate3
- -o smtp_helo_name=smtp3.example.com
- -o smtp_bind_address=1.2.3.3
I have to call the file postfix rotation to switch it on ... the call is correct and can change the last time use ips
But to do that I have to reflect a new transport master file postfix
--> Line comment for close transport
# transport_maps = hash:/etc/postfix/imscp/transport
Open new transpor
transport_maps = tcp:[127.0.0.1]:2527
127.0.0.1:2527_time_limit = 3600s
But if I change the conveying line I can not make deliveries of incoming mail via docecot ...
If you use either the exit ... but delivery
relay = none
My problem is where can include use of the 2 transport
one of imscp dovecot and transport via use of rotation ips
Always grateful for your help
Cheers