Displaying 20 results from an estimated 21 matches for "maildb".
2009 May 04
2
Can't connect to auth server
I'm trying to phase out procmail and move to dovecot-sieve instead. It
ain't proving easy. I'll describe my setup:
- Centos 5.2 box with dovecot 1.1.4 and dovecot-sieve 1.1.6 from ATrpms.
- A single user account is used to store all our email (the account is
called maildb).
- Getmail is being used to fetch the email from various ISP mailboxes.
I want to deliver mail to different folders in maildb's Maildir/
depending on who the email is addressed to (the procmail recipes
currently do that).
- Getmail destination section looks like this:
[destination]...
2003 Apr 04
1
Re: Question about the password field in a postgres ql database
...ncommenting the line :)
Hi Timo,
I just (double) checked my config files, and it LOOKS ok.
My dovecot is from cvs, updated yesterday, and running on Redhat 7.3 (if
that matters).
Here is my dovecot-pgsql.conf:
--8<--
#
# Postgress connect string. Similar to PHP
connect = host=A.B.C.D dbname=maildb user=mailuser password=******
password_query = SELECT password FROM aliases WHERE alias = '%u' AND
password != '' AND locked='f';
user_query = SELECT maildir as home, 100 as uid,498 as gid FROM aliases
where alias = '%u';
#default_pass_scheme = PLAIN
#default_pass_...
2005 Jun 04
2
pam mysql authentication
Hello
I am trying to use pam to authenticate dovecot again a mysql database.
In /etc/pam.d/dovecot i have:
auth optional pam_mysql.so host=localhost db=maildb user=mailro \
passwd=xxx table=users usercolumn=address passwdcolumn=passwd \
where="disabled is NULL and deleted = ''" crypt=1
account required pam_mysql.so host=localhost db=maildb user=mailro \
passwd=xxx table=users usercolumn=address passwdco...
2017 Nov 09
2
Postlogin script
...se
I've more than one web servers) ?
My script:
#!/bin/sh
if [ "$IP" = "172.11.0.28" ] ; then
printf "* [ALERT] Access allowed from that IP\r\n"
exec "$@"
fi
CHECK_USER=`PGPASSWORD="somepass" /usr/local/pg950/bin/psql -q -t -U
someuser -d maildb -c "select imap_allowed from __users where name =
'$USER' LIMIT 1"`
if [ $CHECK_USER == "f" ] ; then
exit 0
fi
if [ $CHECK_USER == "t" ] ; then
exec "$@"
fi
Regards,
Jack
2006 Jul 11
3
Dovecot and MySQL auth - initial setup issues
...ng to dovecot.conf:
auth default {
passdb sql {
args = /etc/dovecot-mysql.conf
}
userdb sql {
args = /etc/dovecot-mysql.conf
}
The rest of dovecot.conf is standard.
/etc/dovecot-mysql.conf has:
driver=mysql
connect = host=127.0.0.1 port=3306 dbname=maildb user=root client_flags=0
password_query = SELECT password FROM users WHERE id = '%u'
user_query = SELECT maildir FROM users WHERE id = '%u'
(I've run the SQL queries within mysql and they give the right results)
When I start Dovecot the log shows:
dovecot: Jul 11 12:47:25 In...
2014 Jun 30
0
Login failure with SElinux enforcing + Sqlite user DB
...=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=mdbox:/var/mail/mailadmin
dovecot: imap(mailadmin): Debug: fs: root=/var/mail/mailadmin, index=, indexpvt=, control=, inbox=, alt=
audispd: node=myhost.somewhere type=PATH msg=audit(1404145638.097:46407): item=0 name="/var/lib/maildb/" inode=3735776 dev=fb:02 mode=040775 ouid=0 ogid=12 rdev=00:00 obj=system_u:object_r:var_lib_t:s0
audispd: node=myhost.somewhere type=PATH msg=audit(1404145638.097:46407): item=1 name="/var/lib/maildb/users.db-journal" inode=3735779 dev=fb:02 mode=0100600 ouid=8 ogid=12 rdev=00:00 o...
2013 May 19
3
Error: dict client sent broken reply
...otocol lda {
mail_plugins = " quota sieve quota"
}
protocol imap {
mail_max_userip_connections = 20
mail_plugins = " quota quota imap_quota"
}
protocol pop3 {
mail_plugins = " quota quota"
}
>From dovecot-dict-sql.conf.ext:
connect = host=localhost dbname=maildb user=dbuser password=dbpass
# CREATE TABLE quota (
# username varchar(100) not null,
# bytes bigint not null default 0,
# messages integer not null default 0,
# primary key (username)
# );
map {
pattern = priv/quota/storage
table = quota_usage
username_field = address
value_field...
2017 Nov 10
1
Postlogin script
...> if [ "$IP" = "172.11.0.28" ] ; then
> > printf "* [ALERT] Access allowed from that IP\r\n"
> > exec "$@"
> > fi
> >
> > CHECK_USER=`PGPASSWORD="somepass" /usr/local/pg950/bin/psql -q -t -U
> > someuser -d maildb -c "select imap_allowed from __users where name =
> > '$USER' LIMIT 1"`
> >
> > if [ $CHECK_USER == "f" ] ; then
> > exit 0
> > fi
> >
> > if [ $CHECK_USER == "t" ] ; then
> > exec "$@"
> > fi
>...
2019 Oct 08
1
ITERINDEX not showing subfolders.
...plugin {
sieve = ~/filters.sieve
sieve_after = /etc/dovecot/sieve/after.sieve
sieve_before = /etc/dovecot/sieve/before.sieve
}
userdb {
args = /etc/dovecot/dovecot-sql-lmtp.conf
driver = sql
name =
}
}
dovecot-sql.conf
driver = mysql
connect = host=10.0.10.150 dbname=maildb user=mail password=5ecret!
default_pass_scheme = SHA
password_query = select login as user, crypt_sha1 as password, home as
userdb_home, uid AS userdb_uid, gid AS userdb_gid,
concat('maildir:',maildir,':INDEX=/data/indexes/',login,':ITERINDEX',':VOLATILEDIR=/data/indexes...
2016 May 01
2
Changing Password Schemes
...e returned by the query.
Now, as for converting your database, try this, after adjusting the queries to fit your schema:
#!/usr/bin/perl
use strict;
use warnings;
use DBI;
use MIME::Base64 'encode_base64';
my $dbtype = 'mysql';
my $dbhost = 'localhost';
my $dbname = 'maildb';
my $dbuser = 'dbuser';
my $dbpass = 'password';
my $dbh = DBI->connect("DBI:$dbtype:host=$dbhost;database=$dbname", $dbuser, $dbpass)
or die "Could not connect to database: " . $DBI::errstr . "\n";
my $selectsth = $dbh->prepare('SEL...
2012 May 20
1
Dovecot 2 fails after correct login
...sages (yet), could somebody please give me a hint?
My dovecot.conf:
passdb {
driver = sql
args = /etc/dovecot/dovecot-sql.conf
}
userdb {
driver = prefetch
}
userdb {
driver = sql
args = /etc/dovecot/dovecot-sql.conf
}
dovecot-sql.conf:
driver = mysql
connect = host=127.0.0.1 dbname=maildb user=mailuser password=mailpassword
default_pass_scheme = PLAIN-MD5
password_query = SELECT email as user, password FROM view_users WHERE email='%u';
10-auth.conf:
disable_plaintext_auth = no
auth_mechanisms = plain
!include auth-system.conf.ext
and in my 10-master.conf I have:
servic...
2013 May 12
2
Quota not working with dict proxy
...otocol lda {
mail_plugins = " quota sieve quota"
}
protocol imap {
mail_max_userip_connections = 20
mail_plugins = " quota quota imap_quota"
}
protocol pop3 {
mail_plugins = " quota quota"
}
>From dovecot-dict-sql.conf.ext:
connect = host=localhost dbname=maildb user=dbuser password=dbpass
# CREATE TABLE quota (
# username varchar(100) not null,
# bytes bigint not null default 0,
# messages integer not null default 0,
# primary key (username)
# );
map {
pattern = priv/quota/storage
table = email
username_field = address
value_field = quot...
2017 Nov 09
0
Postlogin script
...y script:
>
> #!/bin/sh
> if [ "$IP" = "172.11.0.28" ] ; then
> printf "* [ALERT] Access allowed from that IP\r\n"
> exec "$@"
> fi
>
> CHECK_USER=`PGPASSWORD="somepass" /usr/local/pg950/bin/psql -q -t -U
> someuser -d maildb -c "select imap_allowed from __users where name =
> '$USER' LIMIT 1"`
>
> if [ $CHECK_USER == "f" ] ; then
> exit 0
> fi
>
> if [ $CHECK_USER == "t" ] ; then
> exec "$@"
> fi
>
> Regards,
> Jack
2006 Sep 23
0
Missing Mailbox
...ap
disable_plaintext_auth = no
auth_verbose = yes
auth_debug = yes
auth default {
mechanisms = plain
userdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
}
# cat dovecot-sql.conf
driver = mysql
connect = host=localhost dbname=maildb user=postfix password=secret
default_pass_scheme = CRYPT
password_query = SELECT password FROM users WHERE email = '%u'
user_query = SELECT CONCAT('/srv/mail/','%d','/%n') AS home, '5000' AS uid,
'5000' AS gid FROM users u, domains d WHERE u.email=&...
2014 Sep 10
0
dovecot imap auth method issue
...h for SQL configuration file, see
> example-config/dovecot-sql.conf.ext args =
> /etc/dovecot/dovecot-sql.conf.ext }
> userdb { driver = static args = uid=vmail gid=vmail
> home=/var/vmail/%d/%n }
My dovecot-sql.conf.ext content is:
> driver = mysql connect = host=127.0.0.1 dbname=maildb user=userdb
> password=123456789 default_pass_scheme = PLAIN-MD5 password_query
> = SELECT email as user, password FROM virtual_users WHERE
> email='%u';
and dovecot -n says:
> # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-686-pae i686
> Debian 7.6 ext3 auth_mecha...
2005 Jun 10
2
Too many open files
...3-login: Disconnected: method=PLAIN,
rip=xxx.xxx.xxx.xxx, lip=xxx.xxx.xxx.xxx
Jun 10 12:40:28 svr21 dovecot: child 18818 (auth) returned error 89
Jun 10 12:40:29 svr21 dovecot: Auth process died too early - shutting down
Jun 10 12:40:29 svr21 dovecot: auth(default): mysql: Connected to
localhost (maildb)
Jun 10 12:40:29 svr21 dovecot: auth(default):
net_connect_unix(/var/run/dovecot/auth-worker.13784) failed: No such
file or directory
Jun 10 12:40:29 svr21 dovecot: child 13784 (auth) returned error 89
-
Is dovecot leaving files open? Or is it a large mailbox?
Regards
Andrew
--
Andrew Hutchin...
2009 Nov 19
1
quota is not ignoring trash
...fix
group: vmail
master:
path: /var/run/dovecot/auth-master
mode: 432
user: vmail
group: vmail
plugin:
quota: maildir:storage=51200:ignore=Trash
trash: /etc/dovecot/dovecot-trash.conf
this is my dovecot-sql.conf
driver = mysql
connect = host=127.0.0.1 dbname=maildb user=xxx password=yyy
default_pass_scheme = CRYPT
password_query = SELECT email AS user, password FROM users WHERE email = '%u'
user_query = SELECT 'maildir:/home/vmail/%d/%n' AS home, 5000 AS uid, 5000 AS
gid, CONCAT('maildir:storage=', ROUND( quota / 1000 ) ) AS quota FROM...
2006 Oct 17
2
allow_nets and mysql question
...which is not my
address) and tried to connect from localhost (using telnet). And it
allow me to connect! May be i did something wrong, but i cant explain
this, so i`m asking for your help. Here is debug information:
Dovecot v1.0.rc10 starting up
auth-worker(default): mysql: Connected to localhost (maildb)
auth(default): client in: AUTH 1 PLAIN service=POP3
secured lip=10.0.0.1 rip=10.0.0.1 resp=<hidden>
auth-worker(default): sql(testuser at example.com,10.0.0.1): query: SELECT
allow_nets,crypt as password, maildir as userdb_mail, 1005 AS
userdb_uid,6 AS userdb_gid FROM user...
2016 May 01
3
Changing Password Schemes
...t;> queries to fit your schema:
>>
>> #!/usr/bin/perl
>> use strict;
>> use warnings;
>> use DBI;
>> use MIME::Base64 'encode_base64';
>>
>> my $dbtype = 'mysql';
>> my $dbhost = 'localhost';
>> my $dbname = 'maildb';
>> my $dbuser = 'dbuser';
>> my $dbpass = 'password';
>>
>> my $dbh = DBI->connect("DBI:$dbtype:host=$dbhost;database=$dbname",
>> $dbuser, $dbpass)
>> or die "Could not connect to database: " . $DBI::errstr . &quo...
2009 May 02
0
Strange virtual users issues
...te_host_said:_250_ok_1241272738_qp_4563/
status: local 1/10 remote 0/20
end msg 155041
delivery 2: deferral:
status: local 0/10 remote 0/20
cat /var/log/dovecot.log
dovecot: 2009-05-02 16:30:46 Info: Dovecot v1.0.15 starting up
dovecot: 2009-05-02 16:30:46 Info: auth(default): pgsql: Connected to maildb
dovecot: 2009-05-02 16:32:00 Info: IMAP(akkersson): Loading modules from directory: /usr/lib/dovecot/modules/imap
dovecot: 2009-05-02 16:32:00 Info: IMAP(akkersson): Module loaded: /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
dovecot: 2009-05-02 16:32:00 Info: IMAP(akkersson): Module loaded:...