Re: [Dovecot] Backing Up

2008-11-02 Thread Proskurin Kirill
Hello all.

I read al this tread and still wondering - what FS best to use to
manage up to 1,5Tb of maildir spool and make a near to real time back up of it?

Firstly i plan to make it all on FreeBSD with UFS2  and use rsync, but
I never rsync such much of space and files.

If using solaris best is ZFS - but i don`t have any experience on this
OS.

What Linux can provide for this task?

-- 
Best reagrds,
Proskurin Kirill



[Dovecot] pam_dovecotpw anybody?

2008-11-02 Thread Steinar Bang
Samba has pam_smbpass which is a PAM module that hooks into password
changing, and changes the users' samba password (presumably used for
NTLM auth?), when the users change their ordinary unix/linux password.

http://gitweb.samba.org/?p=samba.git;a=tree;f=source3/pam_smbpass;h=c230a1b239719ae28271010e69fbbc759e935a57;hb=HEAD

It shouldn't bee too hard to take the code from here, combine it with
dovecotpw and create a PAM module that changes the dovecot password in a
way that can be used for cram-md5.

Ideally it should read the /etc/dovecot/dovecot.conf (whereever it is),
and find the path of the passwd-file and use that.

Has anyone else looked into doing something like this?



Re: [Dovecot] Backing Up

2008-11-02 Thread Robert Schetterer
Proskurin Kirill schrieb:
 Hello all.
 
 I read al this tread and still wondering - what FS best to use to
 manage up to 1,5Tb of maildir spool and make a near to real time back up of 
 it?
 
 Firstly i plan to make it all on FreeBSD with UFS2  and use rsync, but
 I never rsync such much of space and files.
 
 If using solaris best is ZFS - but i don`t have any experience on this
 OS.
 
 What Linux can provide for this task?
 
Hi, i use maildir format,
its no problem to backup big maildirs with rsync,
at backup i see no real relation with with filessystem until you use a
modern one ( i.e. ext3... ), perhaps you might use nfs or gfs
for redundancy solutions
after all this type of backing up ( tar , rsync, i.e by cron )
is only a snapshot ( maybe ok on your side ), but i.e you may use
always_bcc i.e with postfix
or imapsync etc
choosing zfs maybe is the right choice anyway
i ve read much good about it, but i dont see what it might helpfull at
backup
-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] New %%h variable for shared namespaces

2008-11-02 Thread Sascha Wilde
Sascha Wilde [EMAIL PROTECTED] writes:
 Timo Sirainen [EMAIL PROTECTED] writes:
 On Fri, 2008-10-31 at 17:12 +0200, Timo Sirainen wrote:
  See 
  http://hg.intevation.org/kolab/dovecot-1.2_kolab-branch/rev/e83efa40a1dc
 
 The auth connection could be kept alive longer than for one lookup if
 you put the auth_connection to shared_storage. That'd require creating
 struct shared_storage, but it should be pretty easy (see e.g. struct
 cydir_storage or maildir_storage).

 Actually shared_storage already existed, somehow I missed that. Anyway I
 did the things I mentioned and some other stuff and committed it.

 Thanks a lot! 

 I'll test it in our environment...

Works like charm -- at least in the few tests I did...

cheers
sascha
-- 
Sascha Wilde  OpenPGP key: 4BB86568
http://www.intevation.de/~wilde/  http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück; AG Osnabrück, HR B 18998
Geschäftsführer:   Frank Koormann,  Bernhard Reiter,  Dr. Jan-Oliver Wagner


pgpEubB1P4H6m.pgp
Description: PGP signature


[Dovecot] How do I use plus-addressing in Dovecot 1.1.x?

2008-11-02 Thread Jon Fullmer
I'm using Postfix, Amavisd-new/SpamAssassin, and Dovecot. They all run  
on the same server (running Linux). The mailboxes are stored on the  
same server in maildir format.


The logical path for incoming messages (as I understand it) is:

1) received by Postfix; handed off to Amavisd-new
2) Amavisd-new checks to see whether or not it's spam/undesirable;  
hands off to Dovecot deliver

3) Dovecot deliver delivers the message to the local mailbox

Under each of my user's mailbox is a submailbox called spam. Just so  
I don't confuse terminologies (I'm no IMAP/maildir expert), for  
example, we have [EMAIL PROTECTED] My configured mail_location is  
maildir:/srv/mail/%d/%n, so this person's mailbox is located here:  / 
srv/mail/domain.com/someone/   Within this directory is another  
mailbox:  /srv/mail/domain.com/someone/.spam/


The plan is to have Dovecot deliver send a message (which has been  
labeled by Amavisd-new as spam) directly to the .spam submailbox,  
instead of the INBOX (/srv/mail/domain.com/someone/). With Dovecot  
1.0.x, I used plus addressing. Amavisd-new was configured so that,  
if a message was found to be spam, it delivered the message to Dovecot  
deliver, but changed the delivery address. Now, instead of [EMAIL PROTECTED] 
, it was [EMAIL PROTECTED]. Dovecot deliver took this message  
and delivered it correctly to the .spam submailbox (/srv/mail/ 
domain.com/someone/.spam/). Just to emphasize, this process does work  
(using Dovecot 1.0.x).


With Dovecot 1.1.0, this process is broken. Now, spam messages are  
delivered to the INBOX instead, and, when checking the dovecot- 
deliver.log, I'm seeing save failed to spam: Unknown namespace.


As best as I can tell, the answer seems to lie in namespaces as a  
feature added in Dovecot 1.1.0. The problem is that I don't understand  
how I could use them to resolve this situation. I've read the  
documentation. I've looked at as many example configurations as I  
could find.


Please help. I want to get this working again. I'm sure it's something  
very straight-forward, but I don't understand. How must I change my  
Dovecot 1.1.x configuration so that my plus addressing set up  
(detailed above) will work again?


Or is there a better way?

Thanks so much for your help, and thanks for a great product!

 - Jon


[Dovecot] Issue with domains

2008-11-02 Thread David M Lemcoe Jr .

I am running Dovecot 1.0.10 and have it working great on ender.ath.cx (my
free DynDNS.com subdomain), but recently I registered lemcoe.com and
pointed it to the same IP address as ender.ath.cx. The problem is, only
e-mail sent to the @ender.ath.cx works. If it is send it to @lemcoe.com, I
don't know where it goes. I get no errors either.

How can I get Dovecot to recognize both domains?

TIA.

David


Re: [Dovecot] Issue with domains

2008-11-02 Thread Jon Fullmer
What are you using as your MTA (i.e., which server is listening for  
the incoming SMTP message)? Postfix? Sendmail?


Have you checked for errors at this level?

 - Jon

On Nov 2, 2008, at 1:34 PM, David M Lemcoe Jr. wrote:



I am running Dovecot 1.0.10 and have it working great on  
ender.ath.cx (my

free DynDNS.com subdomain), but recently I registered lemcoe.com and
pointed it to the same IP address as ender.ath.cx. The problem is,  
only
e-mail sent to the @ender.ath.cx works. If it is send it to  
@lemcoe.com, I

don't know where it goes. I get no errors either.

How can I get Dovecot to recognize both domains?

TIA.

David




Re: [Dovecot] Issue with domains

2008-11-02 Thread Sahil Tandon
David M Lemcoe Jr. [EMAIL PROTECTED] wrote:

 I am running Dovecot 1.0.10 and have it working great on ender.ath.cx (my
 free DynDNS.com subdomain), but recently I registered lemcoe.com and
 pointed it to the same IP address as ender.ath.cx. The problem is, only
 e-mail sent to the @ender.ath.cx works. If it is send it to @lemcoe.com, I
 don't know where it goes. I get no errors either.
 
 How can I get Dovecot to recognize both domains?

Dovecot is not the problem here.  When you send an email to
[EMAIL PROTECTED], the sending MTA sends email to the MX server of
lemcoe.com.  Only in the case of an absent MX record will the MTA try
delivering directly to lemcoe.com (i.e. the host itself, rather than its
MX record).

% dig +short MX lemcoe.com 
10 mail.lemcoe.com.

% host ender.ath.cx 
ender.ath.cx has address 76.240.25.136

% host mail.lemcoe.com 
mail.lemcoe.com has address 67.19.72.202

As you can see, the host that handles mail for lemcoe.com !=
76.240.25.136.

-- 
Sahil Tandon [EMAIL PROTECTED]


Re: [Dovecot] Issue with domains

2008-11-02 Thread Jon Fullmer
Does the log show that the incoming messages are actually received?   
If not, it sounds like you're missing an MX record in DNS. If you are  
seeing the message come in, what does the log say it did with it?


 - Jon

On Nov 2, 2008, at 1:45 PM, mailing wrote:



I am using Postfix and /var/logs/mail.log does not have any errors  
when

sending to lemcoe.com

Thanks for quick response.

On Sun, 2 Nov 2008 13:41:31 -0700, Jon Fullmer [EMAIL PROTECTED]  
wrote:

What are you using as your MTA (i.e., which server is listening for
the incoming SMTP message)? Postfix? Sendmail?

Have you checked for errors at this level?

 - Jon

On Nov 2, 2008, at 1:34 PM, David M Lemcoe Jr. wrote:



I am running Dovecot 1.0.10 and have it working great on
ender.ath.cx (my
free DynDNS.com subdomain), but recently I registered lemcoe.com and
pointed it to the same IP address as ender.ath.cx. The problem is,
only
e-mail sent to the @ender.ath.cx works. If it is send it to
@lemcoe.com, I
don't know where it goes. I get no errors either.

How can I get Dovecot to recognize both domains?

TIA.

David






Re: [Dovecot] Issue with domains

2008-11-02 Thread Jon Fullmer
It's not clear from your response that you understand why it's  
failing. It would seem clear that postfix doesn't see this as a local  
domain. Instead, it thinks you're trying to relay to somewhere else.  
Check your virtual_mailbox_domains file (or database) and make sure it  
has an entry for the new domain.


Good luck!

 - Jon

On Nov 2, 2008, at 2:30 PM, David M Lemcoe Jr. wrote:



I just found out that /var/logs IS showing something.


Nov  2 16:27:46 ubuntu postfix/smtpd[11635]: connect from
rv-out-0506.google.com[209.85.198.239]
Nov  2 16:27:46 ubuntu postfix/smtpd[11635]: NOQUEUE: reject: RCPT  
from
rv-out-0506.google.com[209.85.198.239]: 554 5.7.1  
[EMAIL PROTECTED]:

Relay access denied; from=ki4yj$
Nov  2 16:27:46 ubuntu postfix/smtpd[11635]: disconnect from
rv-out-0506.google.com[209.85.198.239]
Nov  2 16:27:47 ubuntu postfix/smtpd[11622]: disconnect from
fmailhost06.isp.att.net[207.115.11.56]

Yes, it was sent from Gmail.

Thanks for the help.


On Sun, 2 Nov 2008 14:26:21 -0700, Jon Fullmer [EMAIL PROTECTED]  
wrote:

Does the log show that the incoming messages are actually received?
If not, it sounds like you're missing an MX record in DNS. If you are
seeing the message come in, what does the log say it did with it?

 - Jon

On Nov 2, 2008, at 1:45 PM, mailing wrote:



I am using Postfix and /var/logs/mail.log does not have any errors
when
sending to lemcoe.com

Thanks for quick response.

On Sun, 2 Nov 2008 13:41:31 -0700, Jon Fullmer [EMAIL PROTECTED]
wrote:

What are you using as your MTA (i.e., which server is listening for
the incoming SMTP message)? Postfix? Sendmail?

Have you checked for errors at this level?

- Jon

On Nov 2, 2008, at 1:34 PM, David M Lemcoe Jr. wrote:



I am running Dovecot 1.0.10 and have it working great on
ender.ath.cx (my
free DynDNS.com subdomain), but recently I registered lemcoe.com  
and

pointed it to the same IP address as ender.ath.cx. The problem is,
only
e-mail sent to the @ender.ath.cx works. If it is send it to
@lemcoe.com, I
don't know where it goes. I get no errors either.

How can I get Dovecot to recognize both domains?

TIA.

David








Re: [Dovecot] Issue with domains

2008-11-02 Thread Sahil Tandon
David M Lemcoe Jr. [EMAIL PROTECTED] wrote:

 The MX Record was removed, and now when sending from a seperate e-mail
 server, I get an e-mail:
 
 The following addresses had delivery problems:
 
 [EMAIL PROTECTED]
   Permanent Failure: 554_5.7.1_[EMAIL PROTECTED]:_Relay_access_denied
   Delivery last attempted at Sun,  2 Nov 2008 20:52:55 -
 
 Any ideas?

This is not a dovecot problem.  Please do not send replies only to
me but instead to the appropriate mailing list.  I would try the Postfix
mailing list for starters.

--
Sahil Tandon [EMAIL PROTECTED]