[Dovecot] Postfix and Dovecot
Hi Everybody, I'm mount two failover servers which use Postfix and Dovecot but the hostname of the machines r diferent: first node # uname -n # mail secound node #uname -n #mail2 So far so good, the real problem is that the e-mail file name on server is like this:
1232449377.P31789Q0M963611.mail2
and when I using the server called mail the file stay like this:
1232449377.P31789Q0M963611.mail
I'm using drbd disk for the mailboxes and when I'm using the server called mail the files with mail2 on the end is not read for the dovecot when the user turn on the mail client but if I change the end from mail2 to mail that's ok the dovecot can read.
How can I make dovecot read both files or any name on the end?
Thanks
-- "First they ignore you, then they laugh at you, then they fight you, then you win." - Mahatma Gandhi Linux User #373408 cabelohw.blogspot.com GPGkey ID 8AEEAAEB -->> http://pgp.mit.edu
Leonardo Coelho schrieb:
Hi Everybody, I'm mount two failover servers which use Postfix and Dovecot but the hostname of the machines r diferent: first node # uname -n # mail secound node #uname -n #mail2 So far so good, the real problem is that the e-mail file name on server is like this:
1232449377.P31789Q0M963611.mail2
and when I using the server called mail the file stay like this:
1232449377.P31789Q0M963611.mail
I'm using drbd disk for the mailboxes and when I'm using the server called mail the files with mail2 on the end is not read for the dovecot when the user turn on the mail client but if I change the end from mail2 to mail that's ok the dovecot can read.
How can I make dovecot read both files or any name on the end?
Thanks
Hi i may fail here, but wouldnt it be better to have real loadbalancing ( which includes failover ) on a loadbalanced shared ip an configure postfix and dovecot using same hostname ? then there should not be any differnce in a mails filename
but evtl this solves your problem more easy depends on your setup if using lda
from example ## ## LDA specific settings ##
protocol lda { # Address to use when sending rejection mails. postmaster_address = postmaster@example.com
# Hostname to use in various parts of sent mails, eg. in Message-Id. # Default is the system's real hostname. #hostname =
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
Change the hostname parameters on server mail2 to mail the email files keep the mail2 on the end.
On Fri, Jan 23, 2009 at 10:01 AM, Robert Schetterer <robert@schetterer.org>wrote:
Leonardo Coelho schrieb:
Hi Everybody, I'm mount two failover servers which use Postfix and Dovecot but the hostname of the machines r diferent: first node # uname -n # mail secound node #uname -n #mail2 So far so good, the real problem is that the e-mail file name on server is like this:
1232449377.P31789Q0M963611.mail2
and when I using the server called mail the file stay like this:
1232449377.P31789Q0M963611.mail
I'm using drbd disk for the mailboxes and when I'm using the server called mail the files with mail2 on the end is not read for the dovecot when the user turn on the mail client but if I change the end from mail2 to mail that's ok the dovecot can read.
How can I make dovecot read both files or any name on the end?
Thanks
Hi i may fail here, but wouldnt it be better to have real loadbalancing ( which includes failover ) on a loadbalanced shared ip an configure postfix and dovecot using same hostname ? then there should not be any differnce in a mails filename
but evtl this solves your problem more easy depends on your setup if using lda
from example ## ## LDA specific settings ##
protocol lda { # Address to use when sending rejection mails. postmaster_address = postmaster@example.com
# Hostname to use in various parts of sent mails, eg. in Message-Id. # Default is the system's real hostname. #hostname =
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
-- "First they ignore you, then they laugh at you, then they fight you, then you win." - Mahatma Gandhi Linux User #373408 cabelohw.blogspot.com GPGkey ID 8AEEAAEB -->> http://pgp.mit.edu
On Fri, 2009-01-23 at 09:47 -0200, Leonardo Coelho wrote:
So far so good, the real problem is that the e-mail file name on server is like this:
1232449377.P31789Q0M963611.mail2
and when I using the server called mail the file stay like this:
1232449377.P31789Q0M963611.mail
I'm using drbd disk for the mailboxes and when I'm using the server called mail the files with mail2 on the end is not read for the dovecot when the user turn on the mail client but if I change the end from mail2 to mail that's ok the dovecot can read.
How can I make dovecot read both files or any name on the end?
The file name makes absolutely no difference to Dovecot. Your problem is something else. How exactly does the problem show up? Does Dovecot log something?
the problem is when i change the node (machine) the hostname changes and even the user having e-mail on the mailbox the users can't download them.
Machine: "mail" and the files have the mail2 in the end. About the dovecot log i will see this later cause I don't have the access now. Thanks! On Fri, Jan 23, 2009 at 6:28 PM, Timo Sirainen <tss@iki.fi> wrote:
On Fri, 2009-01-23 at 09:47 -0200, Leonardo Coelho wrote:
So far so good, the real problem is that the e-mail file name on server is like this:
1232449377.P31789Q0M963611.mail2
and when I using the server called mail the file stay like this:
1232449377.P31789Q0M963611.mail
I'm using drbd disk for the mailboxes and when I'm using the server called mail the files with mail2 on the end is not read for the dovecot when the user turn on the mail client but if I change the end from mail2 to mail that's ok the dovecot can read.
How can I make dovecot read both files or any name on the end?
The file name makes absolutely no difference to Dovecot. Your problem is something else. How exactly does the problem show up? Does Dovecot log something?
-- "First they ignore you, then they laugh at you, then they fight you, then you win." - Mahatma Gandhi Linux User #373408 cabelohw.blogspot.com GPGkey ID 8AEEAAEB -->> http://pgp.mit.edu
As I said, the fact that the hostname changes is not your real problem. You could keep changing it every few minutes and Dovecot would work just fine.
On Sat, 2009-01-24 at 11:05 -0200, Leonardo Coelho wrote:
the problem is when i change the node (machine) the hostname changes and even the user having e-mail on the mailbox the users can't download them.
Machine: "mail" and the files have the mail2 in the end. About the dovecot log i will see this later cause I don't have the access now.
Thanks!
On Fri, Jan 23, 2009 at 6:28 PM, Timo Sirainen <tss@iki.fi> wrote: On Fri, 2009-01-23 at 09:47 -0200, Leonardo Coelho wrote: > So far so good, the real problem is that the e-mail file name on server is > like this: > > 1232449377.P31789Q0M963611.mail2 > > and when I using the server called mail the file stay like this: > > 1232449377.P31789Q0M963611.mail > > I'm using drbd disk for the mailboxes and when I'm using the server called > mail the files with mail2 on the end is not read for the dovecot when the > user turn on the mail client but if I change the end from mail2 to mail > that's ok the dovecot can read. > > How can I make dovecot read both files or any name on the end? The file name makes absolutely no difference to Dovecot. Your problem is something else. How exactly does the problem show up? Does Dovecot log something?
-- "First they ignore you, then they laugh at you, then they fight you, then you win." - Mahatma Gandhi Linux User #373408 cabelohw.blogspot.com GPGkey ID 8AEEAAEB -->> http://pgp.mit.edu
Leonardo Coelho a écrit :
Hi Everybody, I'm mount two failover servers which use Postfix and Dovecot but the hostname of the machines r diferent: first node # uname -n # mail secound node #uname -n #mail2 So far so good, the real problem is that the e-mail file name on server is like this:
1232449377.P31789Q0M963611.mail2
and when I using the server called mail the file stay like this:
1232449377.P31789Q0M963611.mail
I'm using drbd disk for the mailboxes and when I'm using the server called mail the files with mail2 on the end is not read for the dovecot when the user turn on the mail client but if I change the end from mail2 to mail that's ok the dovecot can read.
How can I make dovecot read both files or any name on the end?
As Timo said, the file names do not matter. I have files from an old server that was running courier and they are read without problems.
what makes you believe that dovecot does not "read" the files? and more precisely, what do you mean by "read" exactly?
participants (4)
-
Leonardo Coelho
-
mouss
-
Robert Schetterer
-
Timo Sirainen