Re: Forbid .forward but be able to use vacation ?

2011-07-31 Thread Frank Bonnet

Le 30/07/2011 09:56, Bastian Blank a écrit :

On Fri, Jul 29, 2011 at 03:36:19PM +0200, Frank Bonnet wrote:

I'm facing an egg and chicken problem ,,,
We have received the following instructions From Above :
1 - Forbid the email forwarding for our users


| forward_path =



ok


At least if you don't have mailbox_command defined.


2 - Some kind of vacation program must be still available for users
  that are Out Of Office
We use real unix users with LDAP backend ( pam_ldap + nss_ldap )


Use gnarwl or something like that.


Thanks gonna try that



Bastian



Frank


Re: misunderstanding with dovecot

2011-07-31 Thread Victor Duchovni
On Sat, Jul 30, 2011 at 12:20:40PM +0200, Andrea Ganduglia wrote:

  Without transport_maps it doesn't works. If I set virtual_transport =
  dovecot log returns relay=none
 
  The virtual_transport setting only applies to domains that are listed
  in virtual_mailbox_domains. If adding the domain to the transport table
  works, while setting virtual_transport does not, clearly the domain
  is not listed in virtual_mailbox_domains.
 
 I hope so! I logged my queries:
 
  84 Query SELECT domain FROM domain WHERE domain='example.com' and
 backupmx = '0' and active = '1'
  85 Query SELECT dovecot AS transport FROM mailbox WHERE domain
 = 'example.com' LIMIT 1
 
 If I run those from cmd line they work. :-/

The words they work communicate no information at all. We know the
domain is not a virtual mailbox domain. Now find out why.

What does

postmap -q the-domain-in-question mysql:the-table-config.cf

return? Does the domain also match any of the other address classes?

-- 
Viktor.


Re: misunderstanding with dovecot

2011-07-31 Thread Benny Pedersen

On Fri, 29 Jul 2011 23:34:54 +0200, Andrea Ganduglia wrote:


transport_maps = mysql:/etc/postfix/mysql_virtual_transport.cf
maildrop_destination_recipient_limit = 1
virtual_transport = virtual


doh :-)

virtual is postfix that do not do sieve, it must be dovecot and be 
added to master.cf as such


http://wiki.dovecot.org/LDA/Postfix

are you running more then one lda ?, eg courier-imap and dovecot ?, 
this can be pratical under migrations, then your config is ok