List Info

Thread: Re: Configurations for performance




Re: Configurations for performance
country flaguser name
United States
2007-03-30 12:55:03
This doesn't yet help with a single huge domain, though. For
that we need
to partition based on the localpart.

On Fri, Mar 30, 2007, Curtis Maurand <curtismaurand.com> said:

> 
>> Can it? Point me to some docs and/or sample
configs. If this can be made
>> to work, then we really would have a single
namespace horizontally
>> scalable setup that we could recommend.
>>   
> 
> look at the transport maps in postfix.
> 
> In my configuration its
> 
> transport_maps = hash:/etc/postfix/transports
> 
> Then my transports file looks like:
> 
> domain1.com            smtp:192.168.1.5:25
> domain2.com            dbmail-lmtp:127.0.0.1:24
> domain3.com            smtp:mailhost.somewhere.com:25
> lists.domain1.com    mailman:
> 
> 
> you get the picture.
> 
> then run postmap hash:/etc/postfix/transports
> 
> I would imagine that a table in mysql would work as
well.  The 
> configuration would look something like:
> 
> transport_maps=mysql:transports.cf
> 
> /etc/postfix/transports.cf
> 
> user=dbuser
> passoword=somepassword
> hosts=192.168.1.10
> dbname=<whatever database you're using>
> select_field=destination
> where_field=domain
> 
> then the table would be:
> 
> create table 'transports' (
> 'domain'   text(120),
> 'destination' text(120),
> UNIQUE KEY 'domain' ('domain')
> ) ENGINE=MyISAM;
> 
> In fact this is the method that dbmail administrator
uses with postfix.
> 
>> Aaron
>>
>> _______________________________________________
>> DBmail mailing list
>> DBmaildbmail.org
>> htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
>>
>>
>>
>>   
> 
> _______________________________________________
> DBmail mailing list
> DBmaildbmail.org
> htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
> 

-- 



_______________________________________________
DBmail mailing list
DBmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

Re: Configurations for performance
user name
2007-03-30 18:04:05
Change the query it uses (in a sql/ldap lookup), you can include the user in it as well.
you can set the query in the config file.

Aaron Stone wrote:
serendipity.palo-alto.ca.us" type="cite">
This doesn't yet help with a single huge domain, though. For that we need
to partition based on the localpart.

On Fri, Mar 30, 2007, Curtis Maurand maurand.com"><curtismaurand.com> said:

  
Can it? Point me to some docs and/or sample configs. If this can be made
to work, then we really would have a single namespace horizontally
scalable setup that we could recommend.
  
      
look at the transport maps in postfix.

In my configuration its

transport_maps = hash:/etc/postfix/transports

Then my transports file looks like:

domain1.com            smtp:192.168.1.5:25
domain2.com            dbmail-lmtp:127.0.0.1:24
domain3.com            smtp:mailhost.somewhere.com:25
lists.domain1.com    mailman:


you get the picture.

then run postmap hash:/etc/postfix/transports

I would imagine that a table in mysql would work as well.  The 
configuration would look something like:

transport_maps=mysql:transports.cf

/etc/postfix/transports.cf


user=dbuser
passoword=somepassword
hosts=192.168.1.10
dbname=&lt;whatever database you're using>

select_field=destination
where_field=domain

then the table would be:

create table 'transports' (
'domain'   text(120),
'destination' text(120),
UNIQUE KEY 'domain' ('domain')
) ENGINE=MyISAM;

In fact this is the method that dbmail administrator uses with postfix.

    
Aaron

_______________________________________________
DBmail mailing list
dbmail.org">DBmaildbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail



  
      
_______________________________________________
DBmail mailing list
dbmail.org">DBmaildbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail

    

  

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )