Mailing List Archive

Run two instances of dbmail-lmtpd
Hi,



How could I run two instances of dbmail-lmtpd agains the same postfix server
and the same dbmail database?



Thanks,
Re: Run two instances of dbmail-lmtpd [ In reply to ]
Hi.
You can try copy dbmail.conf to dbmail.conf_lmtp2
cp /etc/dbmail.conf /etc/dbmail.conf_lmtp


change option "port" in [LMTP] section.
vim /etc/dbmail.conf_lmtp2


run second dbmail-lmtpd with alternative config
dbmail-lmtpd -f /etc/dbmail.conf_lmtp2

And try change postfix configuration for use second lmtp port.

Sorry for my english....

26.11.2014 12:54, Jorge Bastos пишет:
>
> Hi,
>
> How could I run two instances of dbmail-lmtpd agains the same postfix
> server and the same dbmail database?
>
> Thanks,
>
>
>
> _______________________________________________
> DBmail mailing list
> DBmail@dbmail.org
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
Hi

Thats what i had in mind but the postfix conf is what im in doubt.
I want to preserve the running lmtpd in port 24 and add this 2nd one.
Ok its postfix related but how would it look like the 2nd lmtpd?Anatoly <a.melnik@telephant.com.ua> wrote:Hi.
You can try copy dbmail.conf to dbmail.conf_lmtp2
cp /etc/dbmail.conf /etc/dbmail.conf_lmtp


change option "port" in [LMTP] section.
vim /etc/dbmail.conf_lmtp2


run second dbmail-lmtpd with alternative config
 dbmail-lmtpd -f /etc/dbmail.conf_lmtp2

And try change postfix configuration for use second lmtp port.

Sorry for my english....

26.11.2014 12:54, Jorge Bastos пишет:
Hi,
 
How could I run two instances of dbmail-lmtpd agains the same postfix server and the same dbmail database?
 
Thanks,


_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
Am 26.11.2014 um 14:35 schrieb Jorge Bastos:
> Thats what i had in mind but the postfix conf is what im in doubt.
> I want to preserve the running lmtpd in port 24 and add this 2nd one.
> Ok its postfix related but how would it look like the 2nd lmtpd?

add two DNS A-records with the same name and bind one to 127.0.0.1 and
the scond to 127.0.0.2 would be a possible solution

> Anatoly <a.melnik@telephant.com.ua> wrote:
> Hi.
> You can try copy dbmail.conf to dbmail.conf_lmtp2
> cp /etc/dbmail.conf /etc/dbmail.conf_lmtp
>
>
> change option "port" in [LMTP] section.
> vim /etc/dbmail.conf_lmtp2
>
>
> run second dbmail-lmtpd with alternative config
> dbmail-lmtpd -f /etc/dbmail.conf_lmtp2
>
> And try change postfix configuration for use second lmtp port.
>
> Sorry for my english....
>
> 26.11.2014 12:54, Jorge Bastos пишет:
>>
>> Hi,
>>
>> How could I run two instances of dbmail-lmtpd agains the same postfix
>> server and the same dbmail database?
Re: Run two instances of dbmail-lmtpd [ In reply to ]
> add two DNS A-records with the same name and bind one to 127.0.0.1 and
> the scond to 127.0.0.2 would be a possible solution

Didn't get that :)

I have main.cf with:

mailbox_transport = dbmail-lmtp:127.0.0.1:24

and master.cf with:

dbmail-lmtp unix - - n - 2 lmtp -o disable_dns_lookups=yes

I can specify mailbox_transport twice, is that?
Sorry for the dumbness!

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
Am 26.11.2014 um 16:52 schrieb Jorge Bastos:
>> add two DNS A-records with the same name and bind one to 127.0.0.1 and
>> the scond to 127.0.0.2 would be a possible solution
>
> Didn't get that :)
>
> I have main.cf with:
>
> mailbox_transport = dbmail-lmtp:127.0.0.1:24
>
> and master.cf with:
>
> dbmail-lmtp unix - - n - 2 lmtp -o disable_dns_lookups=yes
>
> I can specify mailbox_transport twice, is that?
> Sorry for the dumbness!

DNS is a prerequisite for email and
http://en.wikipedia.org/wiki/Round-robin_DNS should be well known

mailbox_transport = dbmail-lmtp:some-DNS-hostname:24
Re: Run two instances of dbmail-lmtpd [ In reply to ]
> DNS is a prerequisite for email and
> http://en.wikipedia.org/wiki/Round-robin_DNS should be well known
>
> mailbox_transport = dbmail-lmtp:some-DNS-hostname:24

Ah, I was not getting how postfix would work, that was my doubt.

But yes got it, thanks for that :)

So if postfix looks up the host in every delivery, it's solved!

Jorge,

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
> > DNS is a prerequisite for email and
> > http://en.wikipedia.org/wiki/Round-robin_DNS should be well known
> >
> > mailbox_transport = dbmail-lmtp:some-DNS-hostname:24
>
> Ah, I was not getting how postfix would work, that was my doubt.
>
> But yes got it, thanks for that :)
>
> So if postfix looks up the host in every delivery, it's solved!

Some extra thinking on this.
Would this bring any collision in id's or so, if the two processes get the
same msgid on the insert, or not possible since auto-increments are used, so
database will handle it fine (since they are autoincrements) ?

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
Am 26.11.2014 um 21:59 schrieb Jorge Bastos:
>>> DNS is a prerequisite for email and
>>> http://en.wikipedia.org/wiki/Round-robin_DNS should be well known
>>>
>>> mailbox_transport = dbmail-lmtp:some-DNS-hostname:24
>>
>> Ah, I was not getting how postfix would work, that was my doubt.
>>
>> But yes got it, thanks for that :)
>>
>> So if postfix looks up the host in every delivery, it's solved!
>
> Some extra thinking on this.
> Would this bring any collision in id's or so, if the two processes get the
> same msgid on the insert, or not possible since auto-increments are used, so
> database will handle it fine (since they are autoincrements)?

that's why dbmail is using a database

* dbmail-lmtpd is currently not designed for parallel delivery
* a RDBMS is by definition designed for parallel inserts
Re: Run two instances of dbmail-lmtpd [ In reply to ]
imapd crashes when connecting to it,
there was an error installing database, mariadb, manualu added user:

=== users table

Table Data
Table dbmail_users in database dbmail
Select all. | Invert selection.

user_idnr userid passwd client_idnr maxmail_size curmail_size
maxsieve_size cursieve_size encryption_type last_login spasswd
saction active
1 __@!internal_delivery_user!@__
0 0 0 0 0 md5 1979-11-03 22:05:58
0 1
3 anyone
0 0 0 0 0 md5 1979-11-03 22:05:58
0 1
5 __public__
0 0 0 0 0 md5 1979-11-03 22:05:58
0 1
7 joni XXXXXX 0 26214400 11169 0 0
2014-11-27 21:38:33
0 1
Select all. | Invert selection.
Results generated by SQL query : select * from `dbmail_users` limit 0,50

=== dbmail tables

dbmail
Select all. | Invert selection.
Name Type Rows Fields
dbmail_acl Table (InnoDB) 0 13
dbmail_aliases Table (InnoDB) 10 4
dbmail_authlog Table (InnoDB) 0 12
dbmail_auto_notifications Table (InnoDB) 0 2
dbmail_envelope Table (InnoDB) 4 3
dbmail_filters Table (InnoDB) 0 5
dbmail_header Table (InnoDB) 36 3
dbmail_headername Table (InnoDB) 10 2
dbmail_headervalue Table (InnoDB) 18 5
dbmail_keywords Table (InnoDB) 0 2
dbmail_mailboxes Table (InnoDB) 2 13
dbmail_messages Table (InnoDB) 4 12
dbmail_mimeparts Table (InnoDB) 18 4
dbmail_partlists Table (InnoDB) 36 6
dbmail_pbsp Table (InnoDB) 0 3
dbmail_physmessage Table (InnoDB) 4 4
dbmail_referencesfield Table (InnoDB) 0 3
dbmail_replycache Table (InnoDB) 0 4
dbmail_sievescripts Table (InnoDB) 0 4
dbmail_subscription Table (InnoDB) 1 2
dbmail_upgrade_steps Table (InnoDB) 4 3
dbmail_usermap Table (InnoDB) 0 4
dbmail_users Table (InnoDB) 4 13
user_id_index Index Index 2
mailbox_id_index Index Index 2
alias_index Index Index 1
client_idnr_index Index Index 1
user_idnr_index Index Index 1
physmessage_id_1 Index Index 1
physmessage_id_2 Index Index 2
user_id Index Index 1
physmessage_id Index Index 4
headername_id Index Index 1
headervalue_id Index Index 1
physmessage_id_headername_id Index Index 2

Name Type Rows Fields
physmessage_id_headervalue_id Index Index 2
headername_id_headervalue_id Index Index 2
headername Index Index 1
hash Index Index 2
headervalue Index Index 1
sortfield Index Index 1
datefield Index Index 1
owner_idnr_name_index Index Index 2
name_index Index Index 1
owner_idnr_index Index Index 1
seq_index Index Index 1
physmessage_id_index Index Index 1
mailbox_idnr_index Index Index 1
seen_flag_index Index Index 1
unique_id_index Index Index 1
status_index Index Index 1
mailbox_status Index Index 2
dbmail_messages_seq_index Index Index 1
message_parts Index Index 4
part_id Index Index 1
ipnumber_index Index Index 1
since_index Index Index 1
replycache_1 Index Index 3
owner_idnr_2 Index Index 2
name Index Index 1
owner_idnr Index Index 1
from_version Index Index 2
usermap_idx_1 Index Index 3
userid_index Index Index 1
dbmail_ccfield View

dbmail_datefield View

dbmail_fromfield View

dbmail_subjectfield View

dbmail_tofield View

Select all. | Invert selection.

===

Strace dbmail-iampd

"..., 189, 0, NULL, 0) = 189
recvfrom(8, "\7\0\0\2\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f66a3bc7000
mprotect(0x7f66a3bc7000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f66a43c6eb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f66a43c79d0,
tls=0x7f66a43c7700, child_tidptr=0x7f66a43c79d0) = 20013
futex(0x213aaf8, FUTEX_WAKE_PRIVATE, 1) = 1
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 161) = 161
brk(0x219e000) = 0x219e000
brk(0x219c000) = 0x219c000
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 137, MSG_NOSIGNAL,
NULL, 0) = 137
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(4, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(4, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 155) = 155
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 131, MSG_NOSIGNAL,
NULL, 0) = 131
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, ".\0\0\0\26SELECT 1=1 FROM dbmail_user"..., 50, 0, NULL, 0) =
50
recvfrom(4, "\f\0\0\1\0\1\0\0\0\1\0\0\0\0\0\0\31\0\0\2\3def\0\0\0\0031=1
\0"..., 16384, 0, NULL, NULL) = 54
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\n\0\0\0\27\1\0\0\0\1\1\0\0\0", 14, 0, NULL, 0) = 14
recvfrom(4, "\1\0\0\1\1\34\0\0\2\3def\0\0\0\0031=1\0031=1\f?\0\1\0\0\0
\3"..., 16384, 0, NULL, NULL) = 46
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 133) = 133
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 109, MSG_NOSIGNAL,
NULL, 0) = 109
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 177) = 177
sendto(3, "<22>Nov 27 21:37:56 dbmail/imap4"..., 153, MSG_NOSIGNAL,
NULL, 0) = 153
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\5\0\0\0\31\1\0\0\0", 9, 0, NULL, 0) = 9
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 159) = 159
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 135, MSG_NOSIGNAL,
NULL, 0) = 135
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "2\0\0\0\26SELECT 1=1 FROM dbmail_mime"..., 54, 0, NULL, 0) =
54
recvfrom(4, "\f\0\0\1\0\2\0\0\0\1\0\0\0\0\0\0\31\0\0\2\3def\0\0\0\0031=1
\0"..., 16384, 0, NULL, NULL) = 54
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\n\0\0\0\27\2\0\0\0\1\1\0\0\0", 14, 0, NULL, 0) = 14
recvfrom(4, "\1\0\0\1\1\34\0\0\2\3def\0\0\0\0031=1\0031=1\f?\0\1\0\0\0
\3"..., 16384, 0, NULL, NULL) = 46
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 133) = 133
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 109, MSG_NOSIGNAL,
NULL, 0) = 109
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 181) = 181
sendto(3, "<22>Nov 27 21:37:56 dbmail/imap4"..., 157, MSG_NOSIGNAL,
NULL, 0) = 157
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\5\0\0\0\31\2\0\0\0", 9, 0, NULL, 0) = 9
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 156) = 156
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 132, MSG_NOSIGNAL,
NULL, 0) = 132
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "/\0\0\0\26SELECT 1=1 FROM dbmail_head"..., 51, 0, NULL, 0) =
51
recvfrom(4, "\f\0\0\1\0\3\0\0\0\1\0\0\0\0\0\0\31\0\0\2\3def\0\0\0\0031=1
\0"..., 16384, 0, NULL, NULL) = 54
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\n\0\0\0\27\3\0\0\0\1\1\0\0\0", 14, 0, NULL, 0) = 14
recvfrom(4, "\1\0\0\1\1\34\0\0\2\3def\0\0\0\0031=1\0031=1\f?\0\1\0\0\0
\3"..., 16384, 0, NULL, NULL) = 46
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 133) = 133
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 109, MSG_NOSIGNAL,
NULL, 0) = 109
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 178) = 178
sendto(3, "<22>Nov 27 21:37:56 dbmail/imap4"..., 154, MSG_NOSIGNAL,
NULL, 0) = 154
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\5\0\0\0\31\3\0\0\0", 9, 0, NULL, 0) = 9
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(5, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 195) = 195
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 171, MSG_NOSIGNAL,
NULL, 0) = 171
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "O\0\0\0\26SELECT 1=1 FROM dbmail_upgr"..., 83, 0, NULL, 0) =
83
recvfrom(5, "\f\0\0\1\0\1\0\0\0\1\0\2\0\0\0\0\27\0\0\2\3def\0\0\0\1?\0
\f?"..., 16384, 0, NULL, NULL) = 117
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 120) = 120
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 96, MSG_NOSIGNAL, NULL,
0) = 96
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\30\0\0\0\27\1\0\0\0\1\1\0\0\0\0\1\3\0\3\0\0\0\0\0\1}\0\0",
28, 0, NULL, 0) = 28
recvfrom(5, "\1\0\0\1\1\34\0\0\2\3def\0\0\0\0031=1\0031=1\f?\0\1\0\0\0
\3"..., 16384, 0, NULL, NULL) = 46
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\t\0\0\0\34\1\0\0\0\1\0\0\0", 13, 0, NULL, 0) = 13
recvfrom(5, "\6\0\0\1\0\0\1\0\0\0\5\0\0\2\376\0\0B\0", 16384, 0, NULL,
NULL) = 19
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\5\0\0\0\31\1\0\0\0", 9, 0, NULL, 0) = 9
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(5, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 195) = 195
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 171, MSG_NOSIGNAL,
NULL, 0) = 171
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "O\0\0\0\26SELECT 1=1 FROM dbmail_upgr"..., 83, 0, NULL, 0) =
83
recvfrom(5, "\f\0\0\1\0\2\0\0\0\1\0\2\0\0\0\0\27\0\0\2\3def\0\0\0\1?\0
\f?"..., 16384, 0, NULL, NULL) = 117
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\30\0\0\0\27\2\0\0\0\1\1\0\0\0\0\1\3\0\3\0\1}\0\0\2}\0\0",
28, 0, NULL, 0) = 28
recvfrom(5, "\1\0\0\1\1\34\0\0\2\3def\0\0\0\0031=1\0031=1\f?\0\1\0\0\0
\3"..., 16384, 0, NULL, NULL) = 46
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\t\0\0\0\34\2\0\0\0\1\0\0\0", 13, 0, NULL, 0) = 13
recvfrom(5, "\6\0\0\1\0\0\1\0\0\0\5\0\0\2\376\0\0B\0", 16384, 0, NULL,
NULL) = 19
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\5\0\0\0\31\2\0\0\0", 9, 0, NULL, 0) = 9
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(5, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 195) = 195
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 171, MSG_NOSIGNAL,
NULL, 0) = 171
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "O\0\0\0\26SELECT 1=1 FROM dbmail_upgr"..., 83, 0, NULL, 0) =
83
recvfrom(5, "\f\0\0\1\0\3\0\0\0\1\0\2\0\0\0\0\27\0\0\2\3def\0\0\0\1?\0
\f?"..., 16384, 0, NULL, NULL) = 117
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\30\0\0\0\27\3\0\0\0\1\1\0\0\0\0\1\3\0\3\0\1}\0\0\3}\0\0",
28, 0, NULL, 0) = 28
recvfrom(5, "\1\0\0\1\1\34\0\0\2\3def\0\0\0\0031=1\0031=1\f?\0\1\0\0\0
\3"..., 16384, 0, NULL, NULL) = 46
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\t\0\0\0\34\3\0\0\0\1\0\0\0", 13, 0, NULL, 0) = 13
recvfrom(5, "\6\0\0\1\0\0\1\0\0\0\5\0\0\2\376\0\0B\0", 16384, 0, NULL,
NULL) = 19
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\5\0\0\0\31\3\0\0\0", 9, 0, NULL, 0) = 9
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(5, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 195) = 195
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 171, MSG_NOSIGNAL,
NULL, 0) = 171
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "O\0\0\0\26SELECT 1=1 FROM dbmail_upgr"..., 83, 0, NULL, 0) =
83
recvfrom(5, "\f\0\0\1\0\4\0\0\0\1\0\2\0\0\0\0\27\0\0\2\3def\0\0\0\1?\0
\f?"..., 16384, 0, NULL, NULL) = 117
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\30\0\0\0\27\4\0\0\0\1\1\0\0\0\0\1\3\0\3\0\1}\0\0\4}\0\0",
28, 0, NULL, 0) = 28
recvfrom(5, "\1\0\0\1\1\34\0\0\2\3def\0\0\0\0031=1\0031=1\f?\0\1\0\0\0
\3"..., 16384, 0, NULL, NULL) = 46
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\t\0\0\0\34\4\0\0\0\1\0\0\0", 13, 0, NULL, 0) = 13
recvfrom(5, "\6\0\0\1\0\0\1\0\0\0\5\0\0\2\376\0\0B\0", 16384, 0, NULL,
NULL) = 19
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=5, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(5, "\5\0\0\0\31\4\0\0\0", 9, 0, NULL, 0) = 9
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 125) = 125
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 101, MSG_NOSIGNAL,
NULL, 0) = 101
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 140) = 140
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 116, MSG_NOSIGNAL,
NULL, 0) = 116
stat("/mpi3/S4/dbmail/src/modules/.libs/libauth_sql.so",
{st_mode=S_IFREG|0755, st_size=100864, ...}) = 0
futex(0x7f66a70730d0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/mpi3/S4/dbmail/src/modules/.libs/libauth_sql.so", O_RDONLY|
O_CLOEXEC) = 9
read(9, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\32\0\0\0\0\0
\0"..., 832) = 832
fstat(9, {st_mode=S_IFREG|0755, st_size=100864, ...}) = 0
mmap(NULL, 2122160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 9,
0) = 0x7f66a39c0000
mprotect(0x7f66a39c6000, 2093056, PROT_NONE) = 0
mmap(0x7f66a3bc5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 9, 0x5000) = 0x7f66a3bc5000
close(9) = 0
mprotect(0x7f66a3bc5000, 4096, PROT_READ) = 0
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 174) = 174
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 150, MSG_NOSIGNAL,
NULL, 0) = 150
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 137) = 137
sendto(3, "<21>Nov 27 21:37:56 dbmail/imap4"..., 113, MSG_NOSIGNAL,
NULL, 0) = 113
getuid() = 0
geteuid() = 0
getgid() = 0
getegid() = 0
epoll_create(32000) = 9
fcntl(9, F_GETFD) = 0
fcntl(9, F_SETFD, FD_CLOEXEC) = 0
getuid() = 0
geteuid() = 0
getgid() = 0
getegid() = 0
socketpair(PF_LOCAL, SOCK_STREAM, 0, [10, 11]) = 0
fcntl(10, F_GETFD) = 0
fcntl(10, F_SETFD, FD_CLOEXEC) = 0
fcntl(11, F_GETFD) = 0
fcntl(11, F_SETFD, FD_CLOEXEC) = 0
fcntl(10, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(10, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl(11, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(11, F_SETFL, O_RDWR|O_NONBLOCK) = 0
getuid() = 0
geteuid() = 0
getgid() = 0
getegid() = 0
eventfd2(0, O_CLOEXEC) = 12
fcntl(12, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fcntl(12, F_SETFD, FD_CLOEXEC) = 0
fcntl(12, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(12, F_SETFL, O_RDWR|O_NONBLOCK) = 0
epoll_ctl(9, EPOLL_CTL_ADD, 12, {EPOLLIN, {u32=12, u64=12}}) = 0
rt_sigaction(SIGINT, {0x7f66ab539770, ~[RTMIN RT_1], SA_RESTORER|
SA_RESTART, 0x7f66aae70340}, {SIG_DFL, [], 0}, 8) = 0
epoll_ctl(9, EPOLL_CTL_ADD, 11, {EPOLLIN, {u32=11, u64=11}}) = 0
rt_sigaction(SIGHUP, {0x7f66ab539770, ~[RTMIN RT_1], SA_RESTORER|
SA_RESTART, 0x7f66aae70340}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x7f66ab539770, ~[RTMIN RT_1], SA_RESTORER|
SA_RESTART, 0x7f66aae70340}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x7f66ab539770, ~[RTMIN RT_1], SA_RESTORER|
SA_RESTART, 0x7f66aae70340}, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART,
0x7f66aaacec30}, 8) = 0
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<22>Nov 27 21:37:56 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f66a31bf000
mprotect(0x7f66a31bf000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f66a39beeb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f66a39bf9d0,
tls=0x7f66a39bf700, child_tidptr=0x7f66a39bf9d0) = 20014
futex(0x21832e0, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f66a29be000
mprotect(0x7f66a29be000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f66a31bdeb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f66a31be9d0,
tls=0x7f66a31be700, child_tidptr=0x7f66a31be9d0) = 20015
futex(0x21832e0, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f66a21bd000
mprotect(0x7f66a21bd000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f66a29bceb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f66a29bd9d0,
tls=0x7f66a29bd700, child_tidptr=0x7f66a29bd9d0) = 20016
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f66a19bc000
mprotect(0x7f66a19bc000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f66a21bbeb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f66a21bc9d0,
tls=0x7f66a21bc700, child_tidptr=0x7f66a21bc9d0) = 20017
futex(0x21832e0, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f66a11bb000
mprotect(0x7f66a11bb000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f66a19baeb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f66a19bb9d0,
tls=0x7f66a19bb700, child_tidptr=0x7f66a19bb9d0) = 20018
futex(0x21832e0, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f66a09ba000
mprotect(0x7f66a09ba000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f66a11b9eb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f66a11ba9d0,
tls=0x7f66a11ba700, child_tidptr=0x7f66a11ba9d0) = 20019
futex(0x21832e0, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f66a01b9000
mprotect(0x7f66a01b9000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f66a09b8eb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f66a09b99d0,
tls=0x7f66a09b9700, child_tidptr=0x7f66a09b99d0) = 20020
futex(0x21832e0, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f669f9b8000
mprotect(0x7f669f9b8000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f66a01b7eb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f66a01b89d0,
tls=0x7f66a01b8700, child_tidptr=0x7f66a01b89d0) = 20021
futex(0x21832e0, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f669f1b7000
mprotect(0x7f669f1b7000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f669f9b6eb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f669f9b79d0,
tls=0x7f669f9b7700, child_tidptr=0x7f669f9b79d0) = 20022
futex(0x21832e0, FUTEX_WAKE_PRIVATE, 1) = 1
mmap(NULL, 8392704, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|
MAP_STACK, -1, 0) = 0x7f669e9b6000
mprotect(0x7f669e9b6000, 4096, PROT_NONE) = 0
clone(child_stack=0x7f669f1b5eb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|
CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|
CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x7f669f1b69d0,
tls=0x7f669f1b6700, child_tidptr=0x7f669f1b69d0) = 20023
futex(0x21832e0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x2183140, FUTEX_WAKE_PRIVATE, 1) = 1
open("/etc/apache2/SSL/root.crt", O_RDONLY) = 13
fstat(13, {st_mode=S_IFREG|0644, st_size=2569, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f66ac14f000
read(13, "-----BEGIN CERTIFICATE-----\nMIIH"..., 4096) = 2569
read(13, "", 4096) = 0
close(13) = 0
munmap(0x7f66ac14f000, 4096) = 0
open("/etc/apache2/SSL/kurrola.dy.fi.crt", O_RDONLY) = 13
fstat(13, {st_mode=S_IFREG|0644, st_size=2147, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f66ac14f000
read(13, "-----BEGIN CERTIFICATE-----\nMIIG"..., 4096) = 2147
close(13) = 0
munmap(0x7f66ac14f000, 4096) = 0
open("/etc/apache2/SSL/kurrola.dy.fi.insecure", O_RDONLY) = 13
fstat(13, {st_mode=S_IFREG|0644, st_size=3247, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f66ac14f000
read(13, "-----BEGIN RSA PRIVATE KEY-----\n"..., 4096) = 3247
close(13) = 0
munmap(0x7f66ac14f000, 4096) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 13
fcntl(13, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(13, F_SETFL, O_RDWR|O_NONBLOCK) = 0
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 150) = 150
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 126, MSG_NOSIGNAL,
NULL, 0) = 126
setsockopt(13, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(13, {sa_family=AF_INET, sin_port=htons(143),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(13, 128) = 0
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 139) = 139
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 115, MSG_NOSIGNAL,
NULL, 0) = 115
epoll_ctl(9, EPOLL_CTL_ADD, 13, {EPOLLIN, {u32=13, u64=13}}) = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 14
connect(14, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110)
= 0
sendto(14, "\2\0\0\0\f\0\0\0\6\0\0\0group\0", 18, MSG_NOSIGNAL, NULL, 0)
= 18
poll([{fd=14, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=14,
revents=POLLIN|POLLHUP}])
recvmsg(14, {msg_name(0)=NULL, msg_iov(2)=[{"group\0", 6}, {"\310O\3\0\0
\0\0\0", 8}], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET,
cmsg_type=SCM_RIGHTS, {15}}, msg_flags=MSG_CMSG_CLOEXEC},
MSG_CMSG_CLOEXEC) = 14
mmap(NULL, 217032, PROT_READ, MAP_SHARED, 15, 0) = 0x7f66ac098000
close(15) = 0
close(14) = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 14
connect(14, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110)
= 0
sendto(14, "\2\0\0\0\v\0\0\0\7\0\0\0passwd\0", 19, MSG_NOSIGNAL, NULL,
0) = 19
poll([{fd=14, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=14,
revents=POLLIN|POLLHUP}])
recvmsg(14, {msg_name(0)=NULL, msg_iov(2)=[{"passwd\0", 7}, {"\310O\3\0
\0\0\0\0", 8}], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET,
cmsg_type=SCM_RIGHTS, {15}}, msg_flags=MSG_CMSG_CLOEXEC},
MSG_CMSG_CLOEXEC) = 15
mmap(NULL, 217032, PROT_READ, MAP_SHARED, 15, 0) = 0x7f66ac060000
close(15) = 0
close(14) = 0
tgkill(20009, 20023, SIGRT_1) = 0
tgkill(20009, 20022, SIGRT_1) = 0
tgkill(20009, 20021, SIGRT_1) = 0
tgkill(20009, 20020, SIGRT_1) = 0
tgkill(20009, 20019, SIGRT_1) = 0
tgkill(20009, 20018, SIGRT_1) = 0
tgkill(20009, 20017, SIGRT_1) = 0
tgkill(20009, 20016, SIGRT_1) = 0
tgkill(20009, 20015, SIGRT_1) = 0
tgkill(20009, 20014, SIGRT_1) = 0
tgkill(20009, 20013, SIGRT_1) = 0
setgid(0) = 0
tgkill(20009, 20023, SIGRT_1) = 0
tgkill(20009, 20022, SIGRT_1) = 0
tgkill(20009, 20021, SIGRT_1) = 0
tgkill(20009, 20020, SIGRT_1) = 0
tgkill(20009, 20019, SIGRT_1) = 0
tgkill(20009, 20018, SIGRT_1) = 0
tgkill(20009, 20017, SIGRT_1) = 0
tgkill(20009, 20016, SIGRT_1) = 0
tgkill(20009, 20015, SIGRT_1) = 0
tgkill(20009, 20014, SIGRT_1) = 0
tgkill(20009, 20013, SIGRT_1) = 0
setuid(0) = 0
access("/var", F_OK) = 0
stat("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/var/run", F_OK) = 0
stat("/var/run", {st_mode=S_IFDIR|0755, st_size=1400, ...}) = 0
open("/var/run/dbmail-imapd.pid", O_RDONLY) = 14
fstat(14, {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f66ac14f000
read(14, "19931\n", 4096) = 6
read(14, "", 4096) = 0
kill(19931, SIG_0) = -1 ESRCH (No such process)
close(14) = 0
munmap(0x7f66ac14f000, 4096) = 0
unlink("/var/run/dbmail-imapd.pid") = 0
open("/var/run/dbmail-imapd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 14
chmod("/var/run/dbmail-imapd.pid", 0644) = 0
fstat(14, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f66ac14f000
write(14, "20009\n", 6) = 6
pipe([15, 16]) = 0
fcntl(15, F_GETFL) = 0 (flags O_RDONLY)
fcntl(15, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl(16, F_GETFL) = 0x1 (flags O_WRONLY)
fcntl(16, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
epoll_ctl(9, EPOLL_CTL_ADD, 15, {EPOLLIN, {u32=15, u64=15}}) = 0
write(2, "Nov 27 21:37:56 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:37:56 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100

======= NOW QUERY TO IMAPD by evolution
24
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 136) = 136
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 112, MSG_NOSIGNAL,
NULL, 0) = 112
epoll_ctl(9, EPOLL_CTL_ADD, 17, {EPOLLIN, {u32=17, u64=17}}) = 0
epoll_ctl(9, EPOLL_CTL_MOD, 17, {EPOLLIN|EPOLLOUT, {u32=17, u64=17}}) =
0
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 176) = 176
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 152, MSG_NOSIGNAL,
NULL, 0) = 152
write(17, "\27\3\3\0\330\275\331\337*~1<\213u\261|\307l\341%\200\251\302
\17\"\2116\272s\242\336\252"..., 221) = 221
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 324) = 324
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 300, MSG_NOSIGNAL,
NULL, 0) = 300
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 141) = 141
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 117, MSG_NOSIGNAL,
NULL, 0) = 117
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 136) = 136
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 112, MSG_NOSIGNAL,
NULL, 0) = 112
read(15, "D", 1024) = 1
epoll_ctl(9, EPOLL_CTL_ADD, 15, {EPOLLIN, {u32=15, u64=15}}) = 0
epoll_wait(9, {{EPOLLOUT, {u32=17, u64=17}}}, 32, 2100000) = 1
epoll_ctl(9, EPOLL_CTL_MOD, 17, {EPOLLIN, {u32=17, u64=17}}) = 0
epoll_wait(9, {{EPOLLIN, {u32=17, u64=17}}}, 32, 2100000) = 1
read(17, "\27\3\3\0*", 5) = 5
read(17, "\0\0\0\0\0\0\0\3\3\335\220\243D\312)\204\233f|e.\212bV\341\204
\322\347\233\201\314P"..., 42) = 42
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
read(17, 0x2191c23, 5) = -1 EAGAIN (Resource
temporarily unavailable)
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 123) = 123
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 99, MSG_NOSIGNAL, NULL,
0) = 99
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 145) = 145
sendto(3, "<22>Nov 27 21:38:33 dbmail/imap4"..., 121, MSG_NOSIGNAL,
NULL, 0) = 121
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 142) = 142
sendto(3, "<22>Nov 27 21:38:33 dbmail/imap4"..., 118, MSG_NOSIGNAL,
NULL, 0) = 118
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 165) = 165
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 141, MSG_NOSIGNAL,
NULL, 0) = 141
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 119) = 119
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 95, MSG_NOSIGNAL, NULL,
0) = 95
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(4, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(4, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 114) = 114
sendto(3, "<22>Nov 27 21:38:33 dbmail/imap4"..., 91, MSG_NOSIGNAL, NULL,
0) = 91
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 126) = 126
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 102, MSG_NOSIGNAL,
NULL, 0) = 102
epoll_ctl(9, EPOLL_CTL_DEL, 17, {EPOLLIN, {u32=17, u64=17}}) = 0
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 131) = 131
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 107, MSG_NOSIGNAL,
NULL, 0) = 107
futex(0x2183174, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x2183170, {FUTEX_OP_SET,
0, FUTEX_OP_CMP_GT, 1}) = 1
futex(0x2183140, FUTEX_WAKE_PRIVATE, 1) = 1
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 152) = 152
futex(0x7f66aae599d0, FUTEX_WAKE_PRIVATE, 1) = 1
sendto(3, "<22>Nov 27 21:38:33 dbmail/imap4"..., 128, MSG_NOSIGNAL,
NULL, 0) = 128
futex(0x7f66aae5a6f0, FUTEX_WAKE_PRIVATE, 1) = 1
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 122) = 122
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 98, MSG_NOSIGNAL, NULL,
0) = 98
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 148) = 148
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 124, MSG_NOSIGNAL,
NULL, 0) = 124
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 136) = 136
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 112, MSG_NOSIGNAL,
NULL, 0) = 112
epoll_ctl(9, EPOLL_CTL_ADD, 17, {EPOLLIN, {u32=17, u64=17}}) = 0
epoll_ctl(9, EPOLL_CTL_MOD, 17, {EPOLLIN|EPOLLOUT, {u32=17, u64=17}}) =
0
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 180) = 180
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 156, MSG_NOSIGNAL,
NULL, 0) = 156
write(17, "\27\3\3\0r\275\331\337*~1<\214\315\0303\v\0\\W\231\206\346\27
\367\365\342{o4\fm"..., 119) = 119
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 220) = 220
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 196, MSG_NOSIGNAL,
NULL, 0) = 196
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 141) = 141
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 117, MSG_NOSIGNAL,
NULL, 0) = 117
write(2, "Nov 27 21:38:33 mpi1.kurrola.dy "..., 136) = 136
sendto(3, "<23>Nov 27 21:38:33 dbmail/imap4"..., 112, MSG_NOSIGNAL,
NULL, 0) = 112
epoll_wait(9, {{EPOLLIN, {u32=15, u64=15}}, {EPOLLOUT, {u32=17,
u64=17}}}, 32, 2100000) = 2
epoll_ctl(9, EPOLL_CTL_DEL, 15, {EPOLLIN, {u32=15, u64=15}}) = 0
read(15, "D", 1024) = 1
epoll_ctl(9, EPOLL_CTL_ADD, 15, {EPOLLIN, {u32=15, u64=15}}) = 0
epoll_ctl(9, EPOLL_CTL_MOD, 17, {EPOLLIN, {u32=17, u64=17}}) = 0
epoll_wait(9, {{EPOLLIN, {u32=17, u64=17}}}, 32, 2100000) = 1
read(17, "\27\3\3\0a", 5) = 5
read(17, "\0\0\0\0\0\0\0\4\314-x\317pGki\30\302\362k^\275\244\22?\326dl^
\352\3\21"..., 97) = 97
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
read(17, 0x2191c23, 5) = -1 EAGAIN (Resource
temporarily unavailable)
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 123) = 123
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 99, MSG_NOSIGNAL, NULL,
0) = 99
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 200) = 200
sendto(3, "<22>Nov 27 21:39:31 dbmail/imap4"..., 176, MSG_NOSIGNAL,
NULL, 0) = 176
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 197) = 197
sendto(3, "<22>Nov 27 21:39:31 dbmail/imap4"..., 173, MSG_NOSIGNAL,
NULL, 0) = 173
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 196) = 196
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 172, MSG_NOSIGNAL,
NULL, 0) = 172
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 122) = 122
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 98, MSG_NOSIGNAL, NULL,
0) = 98
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 118) = 118
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 94, MSG_NOSIGNAL, NULL,
0) = 94
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 125) = 125
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 101, MSG_NOSIGNAL,
NULL, 0) = 101
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 123) = 123
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 99, MSG_NOSIGNAL, NULL,
0) = 99
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 128) = 128
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 104, MSG_NOSIGNAL,
NULL, 0) = 104
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 124) = 124
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 100, MSG_NOSIGNAL,
NULL, 0) = 100
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 118) = 118
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 94, MSG_NOSIGNAL, NULL,
0) = 94
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 162) = 162
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 138, MSG_NOSIGNAL,
NULL, 0) = 138
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 119) = 119
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 95, MSG_NOSIGNAL, NULL,
0) = 95
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(4, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
poll([{fd=4, events=POLLIN|POLLPRI}], 1, 0) = 0 (Timeout)
sendto(4, "\1\0\0\0\16", 5, 0, NULL, 0) = 5
recvfrom(4, "\7\0\0\1\0\0\0\2\0\0\0", 16384, 0, NULL, NULL) = 11
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 130) = 130
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 106, MSG_NOSIGNAL,
NULL, 0) = 106
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 111) = 111
sendto(3, "<22>Nov 27 21:39:31 dbmail/imap4"..., 88, MSG_NOSIGNAL, NULL,
0) = 88
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 126) = 126
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 102, MSG_NOSIGNAL,
NULL, 0) = 102
epoll_ctl(9, EPOLL_CTL_DEL, 17, {EPOLLIN, {u32=17, u64=17}}) = 0
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 131) = 131
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 107, MSG_NOSIGNAL,
NULL, 0) = 107
futex(0x2183174, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x2183170, {FUTEX_OP_SET,
0, FUTEX_OP_CMP_GT, 1}) = 1
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 152) = 152
sendto(3, "<22>Nov 27 21:39:31 dbmail/imap4"..., 128, MSG_NOSIGNAL,
NULL, 0) = 128
write(2, "Nov 27 21:39:31 mpi1.kurrola.dy "..., 122) = 122
sendto(3, "<23>Nov 27 21:39:31 dbmail/imap4"..., 98, MSG_NOSIGNAL, NULL,
0) = 98
epoll_wait(9, <unfinished ...>
+++ killed by SIGSEGV (core dumped) +++
joni@mpi1:/mpi3/S4/dbmail$

==== /etc/dbmail/dbmail.conf

dbusi =
mysql://localhost:3306/dbmail?user=dbmail&password=XXXXXXXX


_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I find it easier to start more MX virtuals that run their own postfix
+ lmtpd to increase throughput and use multiple MX records on domains
to distribute the load over the virtuals.

If running multiple instances of lmtpd on a single machine is needed,
you need either: a preforking setup (which share the address of the
listening socket), a threaded lmtpd, or completely separate processes
that listen on different addresses or unix-sockets.

To use the last solution while sending all mail to the same address
(myhost:24) you would need a proxy like haproxy.


On 26-11-14 22:04, Reindl Harald wrote:
>
> Am 26.11.2014 um 21:59 schrieb Jorge Bastos:
>>>> DNS is a prerequisite for email and
>>>> http://en.wikipedia.org/wiki/Round-robin_DNS should be well
>>>> known
>>>>
>>>> mailbox_transport = dbmail-lmtp:some-DNS-hostname:24
>>>
>>> Ah, I was not getting how postfix would work, that was my
>>> doubt.
>>>
>>> But yes got it, thanks for that :)
>>>
>>> So if postfix looks up the host in every delivery, it's
>>> solved!
>>
>> Some extra thinking on this. Would this bring any collision in
>> id's or so, if the two processes get the same msgid on the
>> insert, or not possible since auto-increments are used, so
>> database will handle it fine (since they are autoincrements)?
>
> that's why dbmail is using a database
>
> * dbmail-lmtpd is currently not designed for parallel delivery * a
> RDBMS is by definition designed for parallel inserts
>
>
>
> _______________________________________________ DBmail mailing
> list DBmail@dbmail.org
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>

- --
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
www.nfg.nl/info@nfg.nl/+31.85.877.99.97
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlSf5lEACgkQ8iITvBH4zTE9JQCgvq0Y1La7qNpR0ROGnQjoZJX9
x+YAoMcrZcsBn8LG8zZQlLGW+LIZJ+jN
=UEPT
-----END PGP SIGNATURE-----
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
Hi Paul,

Thanks for your words.

On my specific case and after day to day investigation, what's killing my
setup is the dbmail_headername+value tables, where I have in the headervalue
table millions of lost records from weird headers.
Due to the huge number of records the nightly dbmail-util can't handle this,
not a dbmail-util issue, just a matter of the number of records.

I've set the header_cache_readonly = yes, but I keep having new records in
dbmail_headername.
Any idea on this? It's 3.1.17.

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> I find it easier to start more MX virtuals that run their own postfix
> + lmtpd to increase throughput and use multiple MX records on domains
> to distribute the load over the virtuals.
>
> If running multiple instances of lmtpd on a single machine is needed,
> you need either: a preforking setup (which share the address of the
> listening socket), a threaded lmtpd, or completely separate processes
> that listen on different addresses or unix-sockets.
>
> To use the last solution while sending all mail to the same address
> (myhost:24) you would need a proxy like haproxy.
>
>
> On 26-11-14 22:04, Reindl Harald wrote:
> >
> > Am 26.11.2014 um 21:59 schrieb Jorge Bastos:
> >>>> DNS is a prerequisite for email and
> >>>> http://en.wikipedia.org/wiki/Round-robin_DNS should be well known
> >>>>
> >>>> mailbox_transport = dbmail-lmtp:some-DNS-hostname:24
> >>>
> >>> Ah, I was not getting how postfix would work, that was my doubt.
> >>>
> >>> But yes got it, thanks for that :)
> >>>
> >>> So if postfix looks up the host in every delivery, it's solved!
> >>
> >> Some extra thinking on this. Would this bring any collision in id's
> >> or so, if the two processes get the same msgid on the insert, or not
> >> possible since auto-increments are used, so database will handle it
> >> fine (since they are autoincrements)?
> >
> > that's why dbmail is using a database
> >
> > * dbmail-lmtpd is currently not designed for parallel delivery * a
> > RDBMS is by definition designed for parallel inserts
> >
> >
> >
> > _______________________________________________ DBmail mailing list
> > DBmail@dbmail.org
> > http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
> >
>
> - --
> ________________________________________________________________
> Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
> www.nfg.nl/info@nfg.nl/+31.85.877.99.97
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
>
> iEYEARECAAYFAlSf5lEACgkQ8iITvBH4zTE9JQCgvq0Y1La7qNpR0ROGnQjoZJX9
> x+YAoMcrZcsBn8LG8zZQlLGW+LIZJ+jN
> =UEPT
> -----END PGP SIGNATURE-----
> _______________________________________________
> DBmail mailing list
> DBmail@dbmail.org
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
On 28-12-14 12:28, Jorge Bastos wrote:

> I've set the header_cache_readonly = yes, but I keep having new records in
> dbmail_headername.
> Any idea on this? It's 3.1.17.
>

Where did you specify that configuration? It belongs below the toplevel
[DBMAIL] stanza.

--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
www.nfg.nl/info@nfg.nl/+31.85.877.99.97
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
> On 28-12-14 12:28, Jorge Bastos wrote:
>
> > I've set the header_cache_readonly = yes, but I keep having new
> > records in dbmail_headername.
> > Any idea on this? It's 3.1.17.
> >
>
> Where did you specify that configuration? It belongs below the toplevel
> [DBMAIL] stanza.

Paul,
It's inside [DBMAIL], it's the last line of it, but still inside [DBMAIL].

Should I make it be the 1st line? Shouldn't matter if.

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
> > Where did you specify that configuration? It belongs below the
> > toplevel [DBMAIL] stanza.
>
> Paul,
> It's inside [DBMAIL], it's the last line of it, but still inside
> [DBMAIL].
>
> Should I make it be the 1st line? Shouldn't matter if.


I changed it to be the 1st line, but no different as it shouldn't matter I
think, here's how it is:


# $Id: dbmail.conf 1539 2004-12-27 21:41:07Z paul $
# (c) 2000-2002 IC&S, The Netherlands
#
# Configuration file for DBMAIL
# This configuration file needs to be run through dbmail-config to be
effective
# after that, changes are effective inmediatly


[DBMAIL]
# header_cache tuning
#
# set header_cache_readonly to 'yes' to prevent new
# unknown header-names from being cached.
#
# header_cache_readonly = yes
header_cache_readonly = yes

#
# Root privs are used to open a port, then privs
# are dropped down to the user/group specified here.
#
EFFECTIVE_USER = nobody
EFFECTIVE_GROUP = nogroup


_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
Jorge,

Make sure you are editing the correct config file since you had some
issues in that regard lately.

Btw, no need for symlinks. You can specify the exact location of
dbmail.conf by using

../configure --sysconfdir=/etc/

independent of the --prefix= configuration.




On 28-12-14 13:22, Jorge Bastos wrote:
>>> Where did you specify that configuration? It belongs below the
>>> toplevel [DBMAIL] stanza.
>>
>> Paul,
>> It's inside [DBMAIL], it's the last line of it, but still inside
>> [DBMAIL].
>>
>> Should I make it be the 1st line? Shouldn't matter if.
>
>
> I changed it to be the 1st line, but no different as it shouldn't matter I
> think, here's how it is:
>
>
> # $Id: dbmail.conf 1539 2004-12-27 21:41:07Z paul $
> # (c) 2000-2002 IC&S, The Netherlands
> #
> # Configuration file for DBMAIL
> # This configuration file needs to be run through dbmail-config to be
> effective
> # after that, changes are effective inmediatly
>
>
> [DBMAIL]
> # header_cache tuning
> #
> # set header_cache_readonly to 'yes' to prevent new
> # unknown header-names from being cached.
> #
> # header_cache_readonly = yes
> header_cache_readonly = yes
>
> #
> # Root privs are used to open a port, then privs
> # are dropped down to the user/group specified here.
> #
> EFFECTIVE_USER = nobody
> EFFECTIVE_GROUP = nogroup
>
>
> _______________________________________________
> DBmail mailing list
> DBmail@dbmail.org
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
>

--
________________________________________________________________
Paul J Stevens pjstevns @ gmail, twitter, github, linkedin
www.nfg.nl/info@nfg.nl/+31.85.877.99.97
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
> Jorge,
>
> Make sure you are editing the correct config file since you had some
> issues in that regard lately.
>
> Btw, no need for symlinks. You can specify the exact location of
> dbmail.conf by using
>
> ../configure --sysconfdir=/etc/
>
> independent of the --prefix= configuration.

I was indeed using the correct dbmail.conf, but with your reminder I just
remembered that it's the 2nd lmtpd process.. forgot to insert it there :(
My bad, sorry for that.

It's Reindl fault!! :p

At least was usefull to let me know that the two lmtpd processes are
working!

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
Re: Run two instances of dbmail-lmtpd [ In reply to ]
Am 28.12.2014 um 13:35 schrieb Jorge Bastos:
>> Make sure you are editing the correct config file since you had some
>> issues in that regard lately.
>>
>> Btw, no need for symlinks. You can specify the exact location of
>> dbmail.conf by using
>>
>> ../configure --sysconfdir=/etc/
>>
>> independent of the --prefix= configuration.
>
> I was indeed using the correct dbmail.conf, but with your reminder I just
> remembered that it's the 2nd lmtpd process.. forgot to insert it there :(
> My bad, sorry for that.
>
> It's Reindl fault!! :p

no, it's yours repeatly not knowing your involved config files :-)

> At least was usefull to let me know that the two lmtpd processes are
> working!