Re: Unable to see virtual users

2014-11-28 Thread Randall Gellens

Thanks very much; please see in-line for clarification questions.

At 8:22 AM +0100 11/28/14, Steffen Kaiser wrote:


 On Thu, 27 Nov 2014, Randall Gellens wrote:


 I'm still having trouble getting users accepted by postfix + dovecot.


 I suppose in your system + virtual user mix, you should use LMTP:
 http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP
 So Dovecot handles the difference itself.


I have postfix set to use dovecot-lda as the delivery agent, which I 
thought would make postfix let dovecot handle the differences.  I 
also thought if I used LMTP then I can't also use dovecot-lda and 
Sieve.  Can you help me understand?





 userdb {
  args = uid=vmail gid=vmail home=/local/mnt/home/%n
  driver = static
 }
 userdb {
  driver = passwd
 }


 The static userdb does hide the passwd userdb, because it hits for 
all users. You should change the order.


What I have in /etc/dovecot/conf.d/10-auth.conf is:
--
passdb {
  driver = passwd-file
  # args = scheme=SHA1 /etc/dovecot/passwd
  # args = username_format=%n /etc/dovecot/users
  args = username_format=%n /etc/dovecot/passwd
}

userdb {
  driver = static
  args = uid=vmail gid=vmail home=/local/mnt/home/%n
}

!include auth-system.conf.ext
--

What I have in /etc/dovecot/conf.d/auth-system.conf.ext is:

--
passdb {
  driver = pam
  # [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=]
  # [cache_key=] []
  #args = dovecot
  args = username_format=%n
}


userdb {
  # 
  driver = passwd
  # [blocking=no]
  #args =

  # Override fields from passwd
  #override_fields = home=/home/virtual/%u
}
--

So, in  /etc/dovecot/conf.d/10-auth.conf the passwd-file userdb is 
before the static one, yet 'doveconf -n' reports them the other way 
around.  I think the system user is not in the system /etc/passwd 
file anyway, the sytem user is verified using PAM.


Sorry for being so confused.

--
Randall Gellens
Opinions are personal;facts are suspect;I speak for myself only
-- Randomly selected tag: ---
Algol was a great improvement on most of its successors.
 --C.A.R Hoare


Re: how to start a replication master-master correctly

2014-11-28 Thread Bertrand Caplet
> That is :-)
> 
> But for dsync to work correctly in 2.2.15, You have to enable empty
> password for connection from your servers, this is strange ... and this
> wasn't need in previous version (at least 2.2.12)
> 
> For example, (and correct me if I'm wrong or if I can disable empty
> password), add a passdb source :
> 
> passdb {
> driver = static
> args = nopassword=y
> allow_nets=127.0.0.1/32,local,IP_OF_SERVER_A,IP_OF_SERVER_B
> }
> 
> Regards,
> MARIADASSOU Romain

>> Thanks

Well, it's ok in 2.2.9 for dsync password.
Eduardo, if you have debian-based system I suggest you install dovecot
from apt

Regards,
-- 
CHUNKZ.NET - casual fiddler and computer technician
Bertrand Caplet, Flers (FR)
Feel free to send encrypted/signed messages
Key ID: FF395BD9
GPG FP: DE10 73FD 17EB 5544 A491 B385 1EDA 35DC FF39 5BD9



signature.asc
Description: OpenPGP digital signature


Re: how to start a replication master-master correctly

2014-11-28 Thread romain

That is :-)

But for dsync to work correctly in 2.2.15, You have to enable empty 
password for connection from your servers, this is strange ... and this 
wasn't need in previous version (at least 2.2.12)


For example, (and correct me if I'm wrong or if I can disable empty 
password), add a passdb source :


passdb {
driver = static
args = nopassword=y 
allow_nets=127.0.0.1/32,local,IP_OF_SERVER_A,IP_OF_SERVER_B

}

Regards,
MARIADASSOU Romain

Le 28/11/2014 19:37, Eduardo Casarero a écrit :

Hi all, I currently have one dovecot 2.2.15 working and I would like to add
a second master server. If I configure the second server and enable the
dsync in both servers, the sync will copy everything from A to B ? I mean,
B server won't remove messages in A as it doesn't have anything in its
users mailbox?

The second master server will be a cold server just for contingency.

Thanks


how to start a replication master-master correctly

2014-11-28 Thread Eduardo Casarero
Hi all, I currently have one dovecot 2.2.15 working and I would like to add
a second master server. If I configure the second server and enable the
dsync in both servers, the sync will copy everything from A to B ? I mean,
B server won't remove messages in A as it doesn't have anything in its
users mailbox?

The second master server will be a cold server just for contingency.

Thanks


Dovecot 2.2.15, Panic: file mbox-sync.c: line 152 (mbox_sync_read_next_mail): assertion failed:

2014-11-28 Thread Mark Sapiro
The log messages are attached.

The core dump is at


The server is

$ uname -a
Linux sbh16.songbird.com 2.6.18-8.1.14.el5 #1 SMP Thu Sep 27 18:58:54
EDT 2007 i686 i686 i386 GNU/Linux

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
Nov 27 08:47:28 sbh16 dovecot: imap(gpc): Error: Next message unexpectedly 
corrupted in mbox file /www/u/gpc/Mail/list_mgr at 1637732
Nov 27 08:47:28 sbh16 dovecot: imap(gpc): Panic: file mbox-sync.c: line 152 
(mbox_sync_read_next_mail): assertion failed: (sync_ctx->input->v_offset != 
mail_ctx->mail.from_offset || sync_ctx->input->eof)
Nov 27 08:47:28 sbh16 dovecot: imap(gpc): Error: Raw backtrace: 
/usr/local/lib/dovecot/libdovecot.so.0 [0x17deef] -> 
/usr/local/lib/dovecot/libdovecot.so.0 [0x17df6d] -> 
/usr/local/lib/dovecot/libdovecot.so.0 [0x17d48b] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0 [0xa3735e] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mbox_sync+0x6b6) [0xa39166] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mbox_storage_sync_init+0x81) 
[0xa3a3b1] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0(mailbox_sync_init+0x40) 
[0xa57290] -> dovecot/imap(imap_sync_init+0x67) [0x8065157] -> dovecot/imap 
[0x80546a2] -> dovecot/imap [0x80547d9] -> 
/usr/local/lib/dovecot/libdovecot-storage.so.0 [0xa7fa61] -> 
/usr/local/lib/dovecot/libdovecot.so.0(io_loop_handle_timeouts+0xe6) [0x191976] 
-> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0x97) 
[0x192d17] -> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x1e) 
[0x19184e] -> /usr/local/lib/dovecot/libdovecot.so.0(io_loop_run+0x48) 
[0x191b08] -> 
Nov 27 08:47:28 sbh16 dovecot: imap(gpc): Fatal: master: service(imap): child 
26450 killed with signal 6 (core dumped)



Re: Offtopic, spam+AV

2014-11-28 Thread Reindl Harald


Am 28.11.2014 um 17:45 schrieb Jorge Bastos:

In my previous servers I have clamav+spamassassin configured in postfix, but
things as, scan only outgoing emails it's not possible.

What's the best option for these two filtering now adays?


besides that this is the wrong list
why should it not be possible?

* clamav-milter exists
* spamass-milter exists
* "-o receive_override_options=no_milters" exists

normally you have submission (587) for authenticated mail and MX (25) 
for inbound mail and both can have their own receive_override_options


our MX is a own server delivering already filtered messages to the 
mailstorage on a different vserver in the LAN via port 10025


the service 10025 is only reachable from one IP (the MX LAN interface) 
and has "receive_override_options=no_milters" while all other smtpd 
services in "master.cf" use their own milter setup adjusted for outgoing 
mail and both machines share a careful maintained bayes-database trained 
on one machine and deployed with rsync




signature.asc
Description: OpenPGP digital signature


Offtopic, spam+AV

2014-11-28 Thread Jorge Bastos
Hi guys,

 

In my previous servers I have clamav+spamassassin configured in postfix, but
things as, scan only outgoing emails it's not possible.

What's the best option for these two filtering now adays?

 

Thanks in advanced,