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 at 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
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? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090123/b6a55648/attachment-0002.bin>
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 at 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?