Michael wrote: > Hello again,
> i have got a beck that amavisd-new calls spamassassin but not with the > spamassassin-configuration-file under /etc/mail/spamassassin/local.cf > and i can not modify this behavior. It probably is using it (you can see what it is using if you run 'amavisd debug-sa') but you may be expecting certain setting to have an effect, but amavisd-new will use its own settings instead, see: http://www.ijs.si/software/amavisd/#faq-spam > But i have another problem with amavisd-new. > I have virtual domains saved in a mysql-database. If i send a mail to > the system, amavisd-new got the serverdomainname and check this again > the mysql-table. But the virtual domainname is not the serverdomainname. > here is my amavisd.conf - file > $mydomain = 'mail01.DOMAIN.de'; # a convenient default for other settings > @local_domains_maps = ( [".$mydomain"] ); > @lookup_sql_dsn =(['DBI:mysql:database=1000mail;host=127.0.0.1;port=33016', > '1000mail', 'passwort']); > $sql_select_policy = "SELECT domain_name FROM domain WHERE domain_name='%s'"; > @lookup_sql_dsn =(['DBI:mysql:database=1000mail;host=127.0.0.1;port=33016', > '1000mail', 'password']); > $sql_select_policy = 'SELECT "Y" as local FROM domain WHERE > CONCAT("@",domain_name) IN (%k)'; > What can be the problem? > Thanks a lot > Michael I have only the most basic understanding of MySQL but it looks like you are trying to use a database that was not designed for use by amavisd-new. If all you are trying to do is get a list of local domains, and you do not intend on setting up a separate (correctly configured) database for amavisd-new I would be inclined to output the list of your domains to a text file, and read them in via a read_hash statement. # @local_domains_maps = ( [".$mydomain"] ); # @lookup_sql_dsn =(['DBI:mysql:database=1000mail;host=127.0.0.1;port=33016', '1000mail', 'passwort']); # $sql_select_policy = "SELECT domain_name FROM domain WHERE domain_name='%s'"; # @lookup_sql_dsn =(['DBI:mysql:database=1000mail;host=127.0.0.1;port=33016', '1000mail', 'password']); # $sql_select_policy = 'SELECT "Y" as local FROM domain WHERE CONCAT("@",domain_name) IN (%k)'; @local_domains_maps = ( read_hash("$MYHOME/local_domains") ); Gary V ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ AMaViS-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
