On 7/12/2011 12:16 AM, jeffrey starin wrote: > I am trying to use the smtp_bind_address command so that three > seperate ips can be used for 3 separate clients who are using email > campaign software as explained in this howto: > http://www.kutukupret.com/2010/01/02/postfix-bind-sender-domain-to-dedicated-outgoing-ip-address/ > > The error logs show the entry: > Jul 11 23:46:31 who postfix/master[5309]: fatal: > /etc/postfix/master.cf <http://master.cf>: line 6: bad transport type: > smtp_bind_address=174.121.222.21 > > which refers to the the entries in the master.cf <http://master.cf> > using that command, smtp_bind_address command. > > The second problem is even if I comment out those lines that refer to > smtp_bind_address in the master.cf <http://master.cf>, I still receive > that error in the logs which is very strange indeed. It's almost as > if after commenting them out, postfix has a cached copy or something > of the master.cf <http://master.cf> which it is using. I even restart > postfix and postfix reload but to no avail. > > If someone sees something in the syntax (although I've double checked > it so many times) let me know. I even upgraded to postfix 2.8.4 from > 2.3.3 because I thought it may have had something to do with the version. > > master.cf <http://master.cf>: > customer1 unix - - n - - smtp > -o smtp_bind_address=174.121.222.21 > -o smtp_helo_name=domain1.com <http://domain1.com> > -o syslog_name=postfix-domain1.com <http://postfix-domain1.com> > customer2 unix - - n - - smtp > -o smtp_bind_address=174.121.222.22 > -o smtp_helo_name=domain2.org <http://domain2.org> > -o syslog_name=postfix-domain2.org <http://postfix-domain2.org> > customer3 unix - - n - - smtp > -o smtp_bind_address=174.121.222.23 > -o smtp_helo_name=domain3.com <http://domain3.com> > -o syslog_name=postfix-domain3.com <http://postfix-domain3.com> > > maillog: > > Jul 11 23:46:31 who postfix/postfix-script[5308]: starting the Postfix > mail system > Jul 11 23:46:31 who postfix/master[5309]: fatal: > /etc/postfix/master.cf <http://master.cf>: line 6: bad transport type: > smtp_bind_address=174.121.222.21 > Jul 11 23:46:31 who postfix/master[5309]: fatal: > /etc/postfix/master.cf <http://master.cf>: line 6: bad transport type: > smtp_bind_address=174.121.222.22 > This appears to be a case of no whitespace before -o.
If there is a non-whitespace character first on the line, then Postfix will treat it as a new entry. customer1 unix - - n - - smtp -o smtp_bind_address=174.121.222.21 -o smtp_helo_name=domain1.com <http://domain1.com> -o syslog_name=postfix-domain1.com <http://postfix-domain1.com>