Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: users

A very simple working installation of DBMail 3.0

 

 

DBMail users RSS feed   Index | Next | Previous | View Threaded


claaskaehler at yfx

Mar 16, 2012, 5:40 AM

Post #1 of 21 (622 views)
Permalink
A very simple working installation of DBMail 3.0

Hey @all,

i'm trying to develop a simple HowTo for the wiki, wich will setup a very
simple working installation of DBMail 3.0 .
I wasn't successful on my own and need help!

Please take a look at: http://typewith.me/p/TaGQZNWpKc
http://typewith.me/p/TaGQZNWpKc
And feel free to comment, correct and add things!!!

For me it's also interessting to develop a script, that dose exact this
work. Am i alone?



--
View this message in context: http://old.nabble.com/A-very-simple-working-installation-of-DBMail-3.0-tp33516767p33516767.html
Sent from the dbmail users mailing list archive at Nabble.com.

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Mar 16, 2012, 6:20 AM

Post #2 of 21 (606 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

I've added some comments.

On 03/16/2012 01:40 PM, cl445 wrote:
>
> Hey @all,
>
> i'm trying to develop a simple HowTo for the wiki, wich will setup a very
> simple working installation of DBMail 3.0 .
> I wasn't successful on my own and need help!
>
> Please take a look at: http://typewith.me/p/TaGQZNWpKc
> http://typewith.me/p/TaGQZNWpKc
> And feel free to comment, correct and add things!!!
>
> For me it's also interessting to develop a script, that dose exact this
> work. Am i alone?
>
>
>


--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin

* Premium Hosting Services and Web Application Consultancy *

www.nfg.nl/info [at] nfg/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


zhbmaillistonly at gmail

Mar 16, 2012, 8:41 AM

Post #3 of 21 (649 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

On Friday, March 16, 2012 at 8:40 PM, cl445 wrote:

> i'm trying to develop a simple HowTo for the wiki, wich will setup a very
> simple working installation of DBMail 3.0 .
> I wasn't successful on my own and need help!


I recommend this wiki tutorial instead of creating a new one, it's mentioned in DBMail wiki site http://www.dbmail.org/dokuwiki/doku.php:

- Integrate DBMail in iRedMail
http://www.iredmail.org/wiki/index.php?title=Integration/DBMail.iRedMail.with.MySQL.backend

iRedMail is a free, open source, full-featured mail server solution, with above tutorial, you can easily replace Dovecot (shipped by iRedMail) by DBMail, and manage mail accounts with open source web admin panel - DBMailAdmin: http://dbmailadmin.org/


----
Zhang Huangbin

iRedMail: Open Source Mail Server Solution for Red Hat Enterprise Linux,
CentOS, Scientific Linux, Debian, Ubuntu, Mint, Gentoo, openSUSE,
FreeBSD: http://www.iredmail.org/



_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


claaskaehler at yfx

Mar 16, 2012, 11:03 AM

Post #4 of 21 (610 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

This tutorial is for the wiki of dbmail!!! I'm not creating a hole new
documentation only an article for the existing one. Thanks too Paul for his
comments, they were very usefull! (now it is only half that big!)

But the Problem with the log-files still exists, you have to create them
manual and give them write access. Is it a Bug?

By the way, the software of the "dokuwiki" is a bit outdated. I can't use it
with any browser, because you can't see the first line of the edittext and
the toolbar is hided aswell. An update on a newer version would be very
nice!




Zhang Huangbin wrote:
>
>
>
> On Friday, March 16, 2012 at 8:40 PM, cl445 wrote:
>
>> i'm trying to develop a simple HowTo for the wiki, wich will setup a very
>> simple working installation of DBMail 3.0 .
>> I wasn't successful on my own and need help!
>
>
> I recommend this wiki tutorial instead of creating a new one, it's
> mentioned in DBMail wiki site http://www.dbmail.org/dokuwiki/doku.php:
>
> - Integrate DBMail in iRedMail
>
> http://www.iredmail.org/wiki/index.php?title=Integration/DBMail.iRedMail.with.MySQL.backend
>
> iRedMail is a free, open source, full-featured mail server solution, with
> above tutorial, you can easily replace Dovecot (shipped by iRedMail) by
> DBMail, and manage mail accounts with open source web admin panel -
> DBMailAdmin: http://dbmailadmin.org/
>
>
> ----
> Zhang Huangbin
>
> iRedMail: Open Source Mail Server Solution for Red Hat Enterprise Linux,
> CentOS, Scientific Linux, Debian, Ubuntu, Mint, Gentoo, openSUSE,
> FreeBSD: http://www.iredmail.org/
>
>
>
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>
>

--
View this message in context: http://old.nabble.com/A-very-simple-working-installation-of-DBMail-3.0-tp33516767p33518927.html
Sent from the dbmail users mailing list archive at Nabble.com.

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


jake at vapourforge

Mar 16, 2012, 11:46 PM

Post #5 of 21 (608 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

On 03/16/2012 11:40 PM, cl445 wrote:
> Hey @all,
>
> i'm trying to develop a simple HowTo for the wiki, wich will setup a very
> simple working installation of DBMail 3.0 .
> I wasn't successful on my own and need help!
>
> Please take a look at: http://typewith.me/p/TaGQZNWpKc
> http://typewith.me/p/TaGQZNWpKc
> And feel free to comment, correct and add things!!!
>
> For me it's also interessting to develop a script, that dose exact this
> work. Am i alone?
>
>
>
I'd really like to see this, but the links don't work
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Mar 19, 2012, 2:32 AM

Post #6 of 21 (597 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

On 03/16/2012 07:03 PM, cl445 wrote:

> By the way, the software of the "dokuwiki" is a bit outdated. I can't use it
> with any browser, because you can't see the first line of the edittext and
> the toolbar is hided aswell. An update on a newer version would be very
> nice!

It wasn't the software. Just the CSS needed some tweaking.

--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin

* Premium Hosting Services and Web Application Consultancy *

www.nfg.nl/info [at] nfg/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


claaskaehler at yfx

Mar 19, 2012, 8:11 AM

Post #7 of 21 (595 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

Very good, thanks! I'll put it later into the wiki.

Am 19.03.2012 10:32, schrieb Paul J Stevens:
> On 03/16/2012 07:03 PM, cl445 wrote:
>
>> By the way, the software of the "dokuwiki" is a bit outdated. I can't use it
>> with any browser, because you can't see the first line of the edittext and
>> the toolbar is hided aswell. An update on a newer version would be very
>> nice!
> It wasn't the software. Just the CSS needed some tweaking.
>

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


claaskaehler at yfx

Mar 23, 2012, 7:20 AM

Post #8 of 21 (583 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

I put my howto into the wiki...
At the moment i stucked with SASL, i tried serveral configuration and
nothing worked for me.

I installed those packages:
aptitude install libsasl2 sasl2-bin libsasl2-modules-sql

created this file: /etc/postfix/sasl/smtpd.conf with

pwcheck_method: auxprop
auxprop_plugin: sql
sql_engine: mysql
mech_list: DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: dbmail
sql_passwd: changeMe
sql_database: dbmail
sql_verbose: yes
sql_select: SELECT passwd FROM dbmail_users WHERE userid = '%u' AND
userid != '__@!internal_delivery_user!@__' AND userid != 'anyone' AND userid
!= '__public__' AND passwd IS NOT NULL AND passwd != ''

and added this lines in main.cf :

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients=yes


If got no error messages in any log, but it didn't. Where is the misstake?
Does someone know a better way?

--
View this message in context: http://old.nabble.com/A-very-simple-working-installation-of-DBMail-3.0-tp33516767p33544659.html
Sent from the dbmail users mailing list archive at Nabble.com.

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Mar 23, 2012, 7:44 AM

Post #9 of 21 (580 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

On 03/23/2012 03:20 PM, cl445 wrote:
>
> I put my howto into the wiki...
> At the moment i stucked with SASL, i tried serveral configuration and
> nothing worked for me.
>
> I installed those packages:
> aptitude install libsasl2 sasl2-bin libsasl2-modules-sql
>
> created this file: /etc/postfix/sasl/smtpd.conf with
>
> pwcheck_method: auxprop
> auxprop_plugin: sql


did you read:

http://www.dbmail.org/dokuwiki/doku.php/smtp_auth:postfix

a bit out-dated, but the sasl setup looks ok



--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin

* Premium Hosting Services and Web Application Consultancy *

www.nfg.nl/info [at] nfg/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


claaskaehler at yfx

Mar 23, 2012, 8:18 AM

Post #10 of 21 (580 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

Yes I did! I didn't compile SASL on my own, but used the configuration.
Same result! :(

Am 23.03.2012 15:44, schrieb Paul J Stevens:
> On 03/23/2012 03:20 PM, cl445 wrote:
>> I put my howto into the wiki...
>> At the moment i stucked with SASL, i tried serveral configuration and
>> nothing worked for me.
>>
>> I installed those packages:
>> aptitude install libsasl2 sasl2-bin libsasl2-modules-sql
>>
>> created this file: /etc/postfix/sasl/smtpd.conf with
>>
>> pwcheck_method: auxprop
>> auxprop_plugin: sql
>
> did you read:
>
> http://www.dbmail.org/dokuwiki/doku.php/smtp_auth:postfix
>
> a bit out-dated, but the sasl setup looks ok
>
>
>

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


claaskaehler at yfx

Mar 23, 2012, 8:22 AM

Post #11 of 21 (581 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

Okay i've got the following in my mail.log when my trying to sent a
Email to an account:

Mar 23 16:19:34 (none) postfix/virtual[8591]: fatal: bad string length 0
< 1: virtual_mailbox_base
Mar 23 16:19:35 (none) postfix/master[2737]: warning: process
/usr/lib/postfix/virtual pid 8591 exi status 1
Mar 23 16:19:35 (none) postfix/master[2737]: warning:
/usr/lib/postfix/virtual: bad command startup-- throttling


Am 23.03.2012 15:44, schrieb Paul J Stevens:
> On 03/23/2012 03:20 PM, cl445 wrote:
>> I put my howto into the wiki...
>> At the moment i stucked with SASL, i tried serveral configuration and
>> nothing worked for me.
>>
>> I installed those packages:
>> aptitude install libsasl2 sasl2-bin libsasl2-modules-sql
>>
>> created this file: /etc/postfix/sasl/smtpd.conf with
>>
>> pwcheck_method: auxprop
>> auxprop_plugin: sql
>
> did you read:
>
> http://www.dbmail.org/dokuwiki/doku.php/smtp_auth:postfix
>
> a bit out-dated, but the sasl setup looks ok
>
>
>

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Mar 23, 2012, 8:29 AM

Post #12 of 21 (580 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

On 03/23/2012 04:22 PM, Claas Kähler wrote:
> Okay i've got the following in my mail.log when my trying to sent a
> Email to an account:
>
> Mar 23 16:19:34 (none) postfix/virtual[8591]: fatal: bad string length 0
> < 1: virtual_mailbox_base
> Mar 23 16:19:35 (none) postfix/master[2737]: warning: process
> /usr/lib/postfix/virtual pid 8591 exi status 1
> Mar 23 16:19:35 (none) postfix/master[2737]: warning:
> /usr/lib/postfix/virtual: bad command startup-- throttling


That's not SASL related at all!

what does

grep virtual /etc/postfix/main.cf

have to say?


--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin

* Premium Hosting Services and Web Application Consultancy *

www.nfg.nl/info [at] nfg/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Mar 23, 2012, 8:38 AM

Post #13 of 21 (581 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

Updated the etherpad page a bit.

--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, skype, linkedin

* Premium Hosting Services and Web Application Consultancy *

www.nfg.nl/info [at] nfg/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


claaskaehler at yfx

Mar 23, 2012, 8:39 AM

Post #14 of 21 (580 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

root@(none):/etc/postfix# grep virtual /etc/postfix/main.cf
virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf

root@(none):/etc/postfix# cat /etc/postfix/sql-virtual_mailbox_domains.cf
user = dbmail
password = changeMe
hosts = 127.0.0.1
dbname = dbmail
query = SELECT DISTINCT 1 FROM dbmail_aliases WHERE
SUBSTRING_INDEX(alias, '@', -1) = '%s';



Am 23.03.2012 16:29, schrieb Paul J Stevens:
> On 03/23/2012 04:22 PM, Claas Kähler wrote:
>> Okay i've got the following in my mail.log when my trying to sent a
>> Email to an account:
>>
>> Mar 23 16:19:34 (none) postfix/virtual[8591]: fatal: bad string length 0
>> < 1: virtual_mailbox_base
>> Mar 23 16:19:35 (none) postfix/master[2737]: warning: process
>> /usr/lib/postfix/virtual pid 8591 exi status 1
>> Mar 23 16:19:35 (none) postfix/master[2737]: warning:
>> /usr/lib/postfix/virtual: bad command startup-- throttling
>
> That's not SASL related at all!
>
> what does
>
> grep virtual /etc/postfix/main.cf
>
> have to say?
>
>

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


claaskaehler at yfx

Mar 23, 2012, 8:43 AM

Post #15 of 21 (581 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

Am 23.03.2012 16:38, schrieb Paul J Stevens:
> Updated the etherpad page a bit.
>
Well, the etherpad was outdated sorry, i put the newer version into the
wiki:
http://dbmail.org/dokuwiki/doku.php/a_sample_mailserver_from_the_scratch_with_dbmail_3.0
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


h.reindl at thelounge

Mar 23, 2012, 8:45 AM

Post #16 of 21 (581 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

what the hell should "SELECT DISTINCT 1" do?
this will result in "1" and never in any list

+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.00 sec)


Am 23.03.2012 16:39, schrieb Claas Kähler:
> root@(none):/etc/postfix# grep virtual /etc/postfix/main.cf
> virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf
>
> root@(none):/etc/postfix# cat /etc/postfix/sql-virtual_mailbox_domains.cf
> user = dbmail
> password = changeMe
> hosts = 127.0.0.1
> dbname = dbmail
> query = SELECT DISTINCT 1 FROM dbmail_aliases WHERE SUBSTRING_INDEX(alias, '@', -1) = '%s';
>
> Am 23.03.2012 16:29, schrieb Paul J Stevens:
>> On 03/23/2012 04:22 PM, Claas Kähler wrote:
>>> Okay i've got the following in my mail.log when my trying to sent a
>>> Email to an account:
>>>
>>> Mar 23 16:19:34 (none) postfix/virtual[8591]: fatal: bad string length 0
>>> < 1: virtual_mailbox_base
>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning: process
>>> /usr/lib/postfix/virtual pid 8591 exi status 1
>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning:
>>> /usr/lib/postfix/virtual: bad command startup-- throttling
>>
>> That's not SASL related at all!
>>
>> what does
>>
>> grep virtual /etc/postfix/main.cf
>>
>> have to say?
>>
>>
>
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

--

Mit besten Grüßen, Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / software-development / cms-solutions
p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
icq: 154546673, http://www.thelounge.net/

http://www.thelounge.net/signature.asc.what.htm
Attachments: signature.asc (0.26 KB)


claaskaehler at yfx

Mar 23, 2012, 8:49 AM

Post #17 of 21 (582 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

Your are right! But that isn't the problem. Postfix only checks if there
is a result or not. Take a look at:

http://dbmail.org/dokuwiki/doku.php/setup_postfix

They used the same query.

Am 23.03.2012 16:45, schrieb Reindl Harald:
> what the hell should "SELECT DISTINCT 1" do?
> this will result in "1" and never in any list
>
> mysql> SELECT DISTINCT 1 FROM dbmail_aliases;
> +---+
> | 1 |
> +---+
> | 1 |
> +---+
> 1 row in set (0.00 sec)
>
>
> Am 23.03.2012 16:39, schrieb Claas Kähler:
>> root@(none):/etc/postfix# grep virtual /etc/postfix/main.cf
>> virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf
>>
>> root@(none):/etc/postfix# cat /etc/postfix/sql-virtual_mailbox_domains.cf
>> user = dbmail
>> password = changeMe
>> hosts = 127.0.0.1
>> dbname = dbmail
>> query = SELECT DISTINCT 1 FROM dbmail_aliases WHERE SUBSTRING_INDEX(alias, '@', -1) = '%s';
>>
>> Am 23.03.2012 16:29, schrieb Paul J Stevens:
>>> On 03/23/2012 04:22 PM, Claas Kähler wrote:
>>>> Okay i've got the following in my mail.log when my trying to sent a
>>>> Email to an account:
>>>>
>>>> Mar 23 16:19:34 (none) postfix/virtual[8591]: fatal: bad string length 0
>>>> < 1: virtual_mailbox_base
>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning: process
>>>> /usr/lib/postfix/virtual pid 8591 exi status 1
>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning:
>>>> /usr/lib/postfix/virtual: bad command startup-- throttling
>>> That's not SASL related at all!
>>>
>>> what does
>>>
>>> grep virtual /etc/postfix/main.cf
>>>
>>> have to say?
>>>
>>>
>> _______________________________________________
>> DBmail mailing list
>> DBmail [at] dbmail
>> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>
>
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


h.reindl at thelounge

Mar 23, 2012, 9:00 AM

Post #18 of 21 (582 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

we are using "mydestination", "local_recipient_maps" and dbmail-lmtpd for
years and my webinterface is simply maintaining a domain/transport
list in a table based on dbmail_aliases triggered in a php-function
after changes

in other words: i see no reason for virtual_* at all the transport
table is much flexibler because you can define external transports
and with some lines of code prefer them even if dbmail is pre-configured
for a domain while you relay messages to the old server until all users
are configured for the new one (domain-transfers and so)

mydestination = proxy:mysql:/etc/postfix/mysql-mydestination.cf
[root [at] srv-rhsof:~]$ cat /etc/postfix/mysql-mydestination.cf
user = dbmail
password = ****************
dbname = dbmail
hosts = unix:/var/lib/mysql/mysql.sock inet:127.0.0.1:3307
query = select transport from dbma_mta where mydestination='%s';

+-----------------------+--------------------------+
| mydestination | transport |
+-----------------------+--------------------------+
| arrakisvm.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
| local.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
| notebook.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
| rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
| srv-rhsoft.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
| testserver.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
+-----------------------+--------------------------+
6 rows in set (0.00 sec)


Am 23.03.2012 16:49, schrieb Claas Kähler:
> Your are right! But that isn't the problem. Postfix only checks if there is a result or not. Take a look at:
>
> http://dbmail.org/dokuwiki/doku.php/setup_postfix
>
> They used the same query.
>
> Am 23.03.2012 16:45, schrieb Reindl Harald:
>> what the hell should "SELECT DISTINCT 1" do?
>> this will result in "1" and never in any list
>>
>> mysql> SELECT DISTINCT 1 FROM dbmail_aliases;
>> +---+
>> | 1 |
>> +---+
>> | 1 |
>> +---+
>> 1 row in set (0.00 sec)
>>
>>
>> Am 23.03.2012 16:39, schrieb Claas Kähler:
>>> root@(none):/etc/postfix# grep virtual /etc/postfix/main.cf
>>> virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf
>>>
>>> root@(none):/etc/postfix# cat /etc/postfix/sql-virtual_mailbox_domains.cf
>>> user = dbmail
>>> password = changeMe
>>> hosts = 127.0.0.1
>>> dbname = dbmail
>>> query = SELECT DISTINCT 1 FROM dbmail_aliases WHERE SUBSTRING_INDEX(alias, '@', -1) = '%s';
>>>
>>> Am 23.03.2012 16:29, schrieb Paul J Stevens:
>>>> On 03/23/2012 04:22 PM, Claas Kähler wrote:
>>>>> Okay i've got the following in my mail.log when my trying to sent a
>>>>> Email to an account:
>>>>>
>>>>> Mar 23 16:19:34 (none) postfix/virtual[8591]: fatal: bad string length 0
>>>>> < 1: virtual_mailbox_base
>>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning: process
>>>>> /usr/lib/postfix/virtual pid 8591 exi status 1
>>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning:
>>>>> /usr/lib/postfix/virtual: bad command startup-- throttling
>>>> That's not SASL related at all!
>>>>
>>>> what does
>>>>
>>>> grep virtual /etc/postfix/main.cf
>>>>
>>>> have to say?
>>>>
>>>>
>>> _______________________________________________
>>> DBmail mailing list
>>> DBmail [at] dbmail
>>> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>>
>>
>> _______________________________________________
>> DBmail mailing list
>> DBmail [at] dbmail
>> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>
>
>
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

--

Mit besten Grüßen, Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / software-development / cms-solutions
p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
icq: 154546673, http://www.thelounge.net/

http://www.thelounge.net/signature.asc.what.htm
Attachments: signature.asc (0.26 KB)


claaskaehler at yfx

Mar 23, 2012, 9:33 AM

Post #19 of 21 (590 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

Okay that solved a problem... thanks!!! But at least not the SASL one! ;)

Am 23.03.2012 17:00, schrieb Reindl Harald:
> we are using "mydestination", "local_recipient_maps" and dbmail-lmtpd for
> years and my webinterface is simply maintaining a domain/transport
> list in a table based on dbmail_aliases triggered in a php-function
> after changes
>
> in other words: i see no reason for virtual_* at all the transport
> table is much flexibler because you can define external transports
> and with some lines of code prefer them even if dbmail is pre-configured
> for a domain while you relay messages to the old server until all users
> are configured for the new one (domain-transfers and so)
>
> mydestination = proxy:mysql:/etc/postfix/mysql-mydestination.cf
> [root [at] srv-rhsof:~]$ cat /etc/postfix/mysql-mydestination.cf
> user = dbmail
> password = ****************
> dbname = dbmail
> hosts = unix:/var/lib/mysql/mysql.sock inet:127.0.0.1:3307
> query = select transport from dbma_mta where mydestination='%s';
>
> mysql> select * from dbma_mta where mydestination like '%rhsoft%';
> +-----------------------+--------------------------+
> | mydestination | transport |
> +-----------------------+--------------------------+
> | arrakisvm.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
> | local.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
> | notebook.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
> | rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
> | srv-rhsoft.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
> | testserver.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
> +-----------------------+--------------------------+
> 6 rows in set (0.00 sec)
>
>
> Am 23.03.2012 16:49, schrieb Claas Kähler:
>> Your are right! But that isn't the problem. Postfix only checks if there is a result or not. Take a look at:
>>
>> http://dbmail.org/dokuwiki/doku.php/setup_postfix
>>
>> They used the same query.
>>
>> Am 23.03.2012 16:45, schrieb Reindl Harald:
>>> what the hell should "SELECT DISTINCT 1" do?
>>> this will result in "1" and never in any list
>>>
>>> mysql> SELECT DISTINCT 1 FROM dbmail_aliases;
>>> +---+
>>> | 1 |
>>> +---+
>>> | 1 |
>>> +---+
>>> 1 row in set (0.00 sec)
>>>
>>>
>>> Am 23.03.2012 16:39, schrieb Claas Kähler:
>>>> root@(none):/etc/postfix# grep virtual /etc/postfix/main.cf
>>>> virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf
>>>>
>>>> root@(none):/etc/postfix# cat /etc/postfix/sql-virtual_mailbox_domains.cf
>>>> user = dbmail
>>>> password = changeMe
>>>> hosts = 127.0.0.1
>>>> dbname = dbmail
>>>> query = SELECT DISTINCT 1 FROM dbmail_aliases WHERE SUBSTRING_INDEX(alias, '@', -1) = '%s';
>>>>
>>>> Am 23.03.2012 16:29, schrieb Paul J Stevens:
>>>>> On 03/23/2012 04:22 PM, Claas Kähler wrote:
>>>>>> Okay i've got the following in my mail.log when my trying to sent a
>>>>>> Email to an account:
>>>>>>
>>>>>> Mar 23 16:19:34 (none) postfix/virtual[8591]: fatal: bad string length 0
>>>>>> < 1: virtual_mailbox_base
>>>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning: process
>>>>>> /usr/lib/postfix/virtual pid 8591 exi status 1
>>>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning:
>>>>>> /usr/lib/postfix/virtual: bad command startup-- throttling
>>>>> That's not SASL related at all!
>>>>>
>>>>> what does
>>>>>
>>>>> grep virtual /etc/postfix/main.cf
>>>>>
>>>>> have to say?
>>>>>
>>>>>
>>>> _______________________________________________
>>>> DBmail mailing list
>>>> DBmail [at] dbmail
>>>> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>>>
>>> _______________________________________________
>>> DBmail mailing list
>>> DBmail [at] dbmail
>>> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>>
>>
>> _______________________________________________
>> DBmail mailing list
>> DBmail [at] dbmail
>> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>
>
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


h.reindl at thelounge

Mar 23, 2012, 9:49 AM

Post #20 of 21 (585 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

alternative solution for sasl is dovecot-auth
"smtpd_sasl_type = dovecot"
in main.cf is the only postfix-relevant chamge

we are using dovecot at all as imap/pop3 proxy in
front of dbmail which listens only on 127.0.0.1
but should be useable only for SASL-auth too somehow

the proxy solution is because we have one unified
configuration for SASL-methods (smtp, pop3, imap)
can do replacements in usernames for legacy compatibility
to the old mailsystems (% instead @ on many clients
configured) and in dbmail-2.x was no SSL/CRAM-MD5-support

IMHO a benefit that POP3/IMAP/SMTP are supporting the
same auth-methods and software - less points of mistakes
________________________________________________________

the relevant sections in dovecot.conf (= 2.0)
eblow also a complete configuration
maybe someone packs it in the wiki, i hate them to edit :-)

# configure proxy-database
passdb {
driver = sql
args = /etc/dovecot/sql.conf
}

# we are not using local users
userdb {
driver = static
args = static uid=15000 gid=15000 home=/dev/null
}

# configure backend for postfix sasl-auth
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0660
user = postfix
group = postfix
}
}
________________________________________________________

"proxy" is here a own mysql-user with only access to the userdb

cat /etc/dovecot/sql.conf
driver = mysql
connect = host=/var/lib/mysql/mysql.sock dbname=dbmail user=proxy password=*****
password_query = SELECT passwd as password, '127.0.0.1' as host, userid as destuser, passwd AS pass, 'Y' AS
nologin, 'Y' AS nodelay, 'Y' AS proxy FROM dbmail_users WHERE userid='%u'
default_pass_scheme = plain
________________________________________________________

however, this is a complete "dovecot.conf" for proxy AND auth
you have in the best case only to change path to ssl-cert and
the ip-address because you can not use * in this configuration
since dbmail is listening on 127.0.0.1:110/143

corrently running dovecot 2.1.1, 2.1.3 is crashing randomly
the whole 2.0 serious was rock solid over the last time
this config is used since 2009 for some hundret domains

# provided services
protocols = imap pop3

# configure ssl
ssl = yes
ssl_cert = </etc/postfix/certs/mailserver.pem
ssl_key = </etc/postfix/certs/mailserver.pem
ssl_cipher_list = ALL:!aNULL:!eNULL:!ADH!LOW:!MEDIUM:!EXP:!SSLv2:HIGH

# configure imap-proxy
service imap-login {
inet_listener imap {
address = <MAIL-SERVER-IP>
port = 143
}
inet_listener imaps {
address = <MAIL-SERVER-IP>
port = 993
}
vsz_limit = 512M
service_count = 5000
process_min_avail = 1
process_limit = 15
client_limit = 300
}

# configure pop3-proxy
service pop3-login {
inet_listener pop3 {
address = <MAIL-SERVER-IP>
port = 110
}
inet_listener pop3s {
address = <MAIL-SERVER-IP>
port = 995
}
vsz_limit = 512M
service_count = 5000
process_min_avail = 1
process_limit = 15
client_limit = 100
}

# default settings
imap_capability = IMAP4 IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA
THREAD=ORDEREDSUBJECT UNSELECT IDLE
login_greeting =
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
mail_max_userip_connections = 100
auth_mechanisms = CRAM-MD5 DIGEST-MD5 APOP LOGIN PLAIN
disable_plaintext_auth = no
shutdown_clients = no

# Logging
syslog_facility = mail

# authentication process
auth_worker_max_count = 100
auth_cache_size = 32768
auth_cache_ttl = 1800
auth_cache_negative_ttl = 1800
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@%
auth_username_translation = %@AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz

# debug options
auth_debug = no
auth_debug_passwords = no
auth_verbose = no
mail_debug = no
verbose_ssl = no

# configure proxy-database
passdb {
driver = sql
args = /etc/dovecot/sql.conf
}

# we are not using local users
userdb {
driver = static
args = static uid=5000 gid=5000 home=/dev/null
}

# configure backend for postfix sasl-auth
service auth {
unix_listener /var/spool/postfix/private/auth {
mode = 0660
user = postfix
group = postfix
}
}

Am 23.03.2012 17:33, schrieb Claas Kähler:
> Okay that solved a problem... thanks!!! But at least not the SASL one! ;)
>
> Am 23.03.2012 17:00, schrieb Reindl Harald:
>> we are using "mydestination", "local_recipient_maps" and dbmail-lmtpd for
>> years and my webinterface is simply maintaining a domain/transport
>> list in a table based on dbmail_aliases triggered in a php-function
>> after changes
>>
>> in other words: i see no reason for virtual_* at all the transport
>> table is much flexibler because you can define external transports
>> and with some lines of code prefer them even if dbmail is pre-configured
>> for a domain while you relay messages to the old server until all users
>> are configured for the new one (domain-transfers and so)
>>
>> mydestination = proxy:mysql:/etc/postfix/mysql-mydestination.cf
>> [root [at] srv-rhsof:~]$ cat /etc/postfix/mysql-mydestination.cf
>> user = dbmail
>> password = ****************
>> dbname = dbmail
>> hosts = unix:/var/lib/mysql/mysql.sock inet:127.0.0.1:3307
>> query = select transport from dbma_mta where mydestination='%s';
>>
>> mysql> select * from dbma_mta where mydestination like '%rhsoft%';
>> +-----------------------+--------------------------+
>> | mydestination | transport |
>> +-----------------------+--------------------------+
>> | arrakisvm.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>> | local.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>> | notebook.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>> | rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>> | srv-rhsoft.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>> | testserver.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>> +-----------------------+--------------------------+
>> 6 rows in set (0.00 sec)
>>
>>
>> Am 23.03.2012 16:49, schrieb Claas Kähler:
>>> Your are right! But that isn't the problem. Postfix only checks if there is a result or not. Take a look at:
>>>
>>> http://dbmail.org/dokuwiki/doku.php/setup_postfix
>>>
>>> They used the same query.
>>>
>>> Am 23.03.2012 16:45, schrieb Reindl Harald:
>>>> what the hell should "SELECT DISTINCT 1" do?
>>>> this will result in "1" and never in any list
>>>>
>>>> mysql> SELECT DISTINCT 1 FROM dbmail_aliases;
>>>> +---+
>>>> | 1 |
>>>> +---+
>>>> | 1 |
>>>> +---+
>>>> 1 row in set (0.00 sec)
>>>>
>>>>
>>>> Am 23.03.2012 16:39, schrieb Claas Kähler:
>>>>> root@(none):/etc/postfix# grep virtual /etc/postfix/main.cf
>>>>> virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf
>>>>>
>>>>> root@(none):/etc/postfix# cat /etc/postfix/sql-virtual_mailbox_domains.cf
>>>>> user = dbmail
>>>>> password = changeMe
>>>>> hosts = 127.0.0.1
>>>>> dbname = dbmail
>>>>> query = SELECT DISTINCT 1 FROM dbmail_aliases WHERE SUBSTRING_INDEX(alias, '@', -1) = '%s';
>>>>>
>>>>> Am 23.03.2012 16:29, schrieb Paul J Stevens:
>>>>>> On 03/23/2012 04:22 PM, Claas Kähler wrote:
>>>>>>> Okay i've got the following in my mail.log when my trying to sent a
>>>>>>> Email to an account:
>>>>>>>
>>>>>>> Mar 23 16:19:34 (none) postfix/virtual[8591]: fatal: bad string length 0
>>>>>>> < 1: virtual_mailbox_base
>>>>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning: process
>>>>>>> /usr/lib/postfix/virtual pid 8591 exi status 1
>>>>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning:
>>>>>>> /usr/lib/postfix/virtual: bad command startup-- throttling
>>>>>> That's not SASL related at all!
>>>>>>
>>>>>> what does
>>>>>>
>>>>>> grep virtual /etc/postfix/main.cf
>>>>>>
>>>>>> have to say?

--

Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / software-development / cms-solutions
p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
icq: 154546673, http://www.thelounge.net/

http://www.thelounge.net/signature.asc.what.htm
Attachments: signature.asc (0.26 KB)


claaskaehler at yfx

Mar 23, 2012, 12:18 PM

Post #21 of 21 (587 views)
Permalink
Re: A very simple working installation of DBMail 3.0 [In reply to]

Okay... thats computersience, i found my misstake! It was a simple blank
space behind the password!!!
I would use Dovecot the next time, it's a bit more up to date than cyrus
and not that (stupid) sensitive! ;)
I will add an advice into the wiki to prevent this misstake for other users.


Am 23.03.2012 17:49, schrieb Reindl Harald:
> alternative solution for sasl is dovecot-auth
> "smtpd_sasl_type = dovecot"
> in main.cf is the only postfix-relevant chamge
>
> we are using dovecot at all as imap/pop3 proxy in
> front of dbmail which listens only on 127.0.0.1
> but should be useable only for SASL-auth too somehow
>
> the proxy solution is because we have one unified
> configuration for SASL-methods (smtp, pop3, imap)
> can do replacements in usernames for legacy compatibility
> to the old mailsystems (% instead @ on many clients
> configured) and in dbmail-2.x was no SSL/CRAM-MD5-support
>
> IMHO a benefit that POP3/IMAP/SMTP are supporting the
> same auth-methods and software - less points of mistakes
> ________________________________________________________
>
> the relevant sections in dovecot.conf (= 2.0)
> eblow also a complete configuration
> maybe someone packs it in the wiki, i hate them to edit :-)
>
> # configure proxy-database
> passdb {
> driver = sql
> args = /etc/dovecot/sql.conf
> }
>
> # we are not using local users
> userdb {
> driver = static
> args = static uid=15000 gid=15000 home=/dev/null
> }
>
> # configure backend for postfix sasl-auth
> service auth {
> unix_listener /var/spool/postfix/private/auth {
> mode = 0660
> user = postfix
> group = postfix
> }
> }
> ________________________________________________________
>
> "proxy" is here a own mysql-user with only access to the userdb
>
> cat /etc/dovecot/sql.conf
> driver = mysql
> connect = host=/var/lib/mysql/mysql.sock dbname=dbmail user=proxy password=*****
> password_query = SELECT passwd as password, '127.0.0.1' as host, userid as destuser, passwd AS pass, 'Y' AS
> nologin, 'Y' AS nodelay, 'Y' AS proxy FROM dbmail_users WHERE userid='%u'
> default_pass_scheme = plain
> ________________________________________________________
>
> however, this is a complete "dovecot.conf" for proxy AND auth
> you have in the best case only to change path to ssl-cert and
> the ip-address because you can not use * in this configuration
> since dbmail is listening on 127.0.0.1:110/143
>
> corrently running dovecot 2.1.1, 2.1.3 is crashing randomly
> the whole 2.0 serious was rock solid over the last time
> this config is used since 2009 for some hundret domains
>
> # provided services
> protocols = imap pop3
>
> # configure ssl
> ssl = yes
> ssl_cert =</etc/postfix/certs/mailserver.pem
> ssl_key =</etc/postfix/certs/mailserver.pem
> ssl_cipher_list = ALL:!aNULL:!eNULL:!ADH!LOW:!MEDIUM:!EXP:!SSLv2:HIGH
>
> # configure imap-proxy
> service imap-login {
> inet_listener imap {
> address =<MAIL-SERVER-IP>
> port = 143
> }
> inet_listener imaps {
> address =<MAIL-SERVER-IP>
> port = 993
> }
> vsz_limit = 512M
> service_count = 5000
> process_min_avail = 1
> process_limit = 15
> client_limit = 300
> }
>
> # configure pop3-proxy
> service pop3-login {
> inet_listener pop3 {
> address =<MAIL-SERVER-IP>
> port = 110
> }
> inet_listener pop3s {
> address =<MAIL-SERVER-IP>
> port = 995
> }
> vsz_limit = 512M
> service_count = 5000
> process_min_avail = 1
> process_limit = 15
> client_limit = 100
> }
>
> # default settings
> imap_capability = IMAP4 IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA
> THREAD=ORDEREDSUBJECT UNSELECT IDLE
> login_greeting =
> pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
> mail_max_userip_connections = 100
> auth_mechanisms = CRAM-MD5 DIGEST-MD5 APOP LOGIN PLAIN
> disable_plaintext_auth = no
> shutdown_clients = no
>
> # Logging
> syslog_facility = mail
>
> # authentication process
> auth_worker_max_count = 100
> auth_cache_size = 32768
> auth_cache_ttl = 1800
> auth_cache_negative_ttl = 1800
> auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@%
> auth_username_translation = %@AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz
>
> # debug options
> auth_debug = no
> auth_debug_passwords = no
> auth_verbose = no
> mail_debug = no
> verbose_ssl = no
>
> # configure proxy-database
> passdb {
> driver = sql
> args = /etc/dovecot/sql.conf
> }
>
> # we are not using local users
> userdb {
> driver = static
> args = static uid=5000 gid=5000 home=/dev/null
> }
>
> # configure backend for postfix sasl-auth
> service auth {
> unix_listener /var/spool/postfix/private/auth {
> mode = 0660
> user = postfix
> group = postfix
> }
> }
>
> Am 23.03.2012 17:33, schrieb Claas Kähler:
>> Okay that solved a problem... thanks!!! But at least not the SASL one! ;)
>>
>> Am 23.03.2012 17:00, schrieb Reindl Harald:
>>> we are using "mydestination", "local_recipient_maps" and dbmail-lmtpd for
>>> years and my webinterface is simply maintaining a domain/transport
>>> list in a table based on dbmail_aliases triggered in a php-function
>>> after changes
>>>
>>> in other words: i see no reason for virtual_* at all the transport
>>> table is much flexibler because you can define external transports
>>> and with some lines of code prefer them even if dbmail is pre-configured
>>> for a domain while you relay messages to the old server until all users
>>> are configured for the new one (domain-transfers and so)
>>>
>>> mydestination = proxy:mysql:/etc/postfix/mysql-mydestination.cf
>>> [root [at] srv-rhsof:~]$ cat /etc/postfix/mysql-mydestination.cf
>>> user = dbmail
>>> password = ****************
>>> dbname = dbmail
>>> hosts = unix:/var/lib/mysql/mysql.sock inet:127.0.0.1:3307
>>> query = select transport from dbma_mta where mydestination='%s';
>>>
>>> mysql> select * from dbma_mta where mydestination like '%rhsoft%';
>>> +-----------------------+--------------------------+
>>> | mydestination | transport |
>>> +-----------------------+--------------------------+
>>> | arrakisvm.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>>> | local.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>>> | notebook.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>>> | rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>>> | srv-rhsoft.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>>> | testserver.rhsoft.net | dbmail-lmtp:127.0.0.1:24 |
>>> +-----------------------+--------------------------+
>>> 6 rows in set (0.00 sec)
>>>
>>>
>>> Am 23.03.2012 16:49, schrieb Claas Kähler:
>>>> Your are right! But that isn't the problem. Postfix only checks if there is a result or not. Take a look at:
>>>>
>>>> http://dbmail.org/dokuwiki/doku.php/setup_postfix
>>>>
>>>> They used the same query.
>>>>
>>>> Am 23.03.2012 16:45, schrieb Reindl Harald:
>>>>> what the hell should "SELECT DISTINCT 1" do?
>>>>> this will result in "1" and never in any list
>>>>>
>>>>> mysql> SELECT DISTINCT 1 FROM dbmail_aliases;
>>>>> +---+
>>>>> | 1 |
>>>>> +---+
>>>>> | 1 |
>>>>> +---+
>>>>> 1 row in set (0.00 sec)
>>>>>
>>>>>
>>>>> Am 23.03.2012 16:39, schrieb Claas Kähler:
>>>>>> root@(none):/etc/postfix# grep virtual /etc/postfix/main.cf
>>>>>> virtual_mailbox_domains = mysql:/etc/postfix/sql-virtual_mailbox_domains.cf
>>>>>>
>>>>>> root@(none):/etc/postfix# cat /etc/postfix/sql-virtual_mailbox_domains.cf
>>>>>> user = dbmail
>>>>>> password = changeMe
>>>>>> hosts = 127.0.0.1
>>>>>> dbname = dbmail
>>>>>> query = SELECT DISTINCT 1 FROM dbmail_aliases WHERE SUBSTRING_INDEX(alias, '@', -1) = '%s';
>>>>>>
>>>>>> Am 23.03.2012 16:29, schrieb Paul J Stevens:
>>>>>>> On 03/23/2012 04:22 PM, Claas Kähler wrote:
>>>>>>>> Okay i've got the following in my mail.log when my trying to sent a
>>>>>>>> Email to an account:
>>>>>>>>
>>>>>>>> Mar 23 16:19:34 (none) postfix/virtual[8591]: fatal: bad string length 0
>>>>>>>> < 1: virtual_mailbox_base
>>>>>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning: process
>>>>>>>> /usr/lib/postfix/virtual pid 8591 exi status 1
>>>>>>>> Mar 23 16:19:35 (none) postfix/master[2737]: warning:
>>>>>>>> /usr/lib/postfix/virtual: bad command startup-- throttling
>>>>>>> That's not SASL related at all!
>>>>>>>
>>>>>>> what does
>>>>>>>
>>>>>>> grep virtual /etc/postfix/main.cf
>>>>>>>
>>>>>>> have to say?
> --
>
> Reindl Harald
> the lounge interactive design GmbH
> A-1060 Vienna, Hofmühlgasse 17
> CTO / software-development / cms-solutions
> p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
> icq: 154546673, http://www.thelounge.net/
>
> http://www.thelounge.net/signature.asc.what.htm
>
>
>
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

DBMail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.