[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ispman-users
Subject:    [Ispman-users] Solution for mailbox forwarding and local mail storage
From:       "Oliver Blaha / developing.de Internet-Service" <oliver () blaha ! info>
Date:       2003-01-30 9:48:04
[Download RAW message or body]

Hi,

I have noticed that some of you experienced the problem that mailboxes with \
forwardings also stored the mail local. Of course you can avoid that by specifying \
"None (no mailbox, just forwardings)" at mailbox creation, but this is not available \
in control panel. So this is no real solution.

I solved this problem for me with the following entry in main.cf.
ldapvirtual is responsible for the forwarding address. ldapvirtual2 checks if \
forwardings are defined and ONLY delivers to the local address if there are no \
forwardings.

Maybe this helps someone, I'd really like to know if this works for others too and if \
someone experiences problems with this config.

Best regards,
Oliver


----- relevant part of main.cf: -----

virtual_maps = ldap:ldapvirtual, ldap:ldapvirtual2

ldapvirtual_server_host = 127.0.0.1
ldapvirtual_server_port = 389
ldapvirtual_bind_dn = o=ispman
ldapvirtual_bind = no
ldapvirtual_timeout = 5
ldapvirtual_search_base = o=ispman
ldapvirtual_query_filter = (|(mailLocalAddress=%s)(mailAlias=%s))
ldapvirtual_result_attribute = mailForwardingAddress
ldapvirtual_lookup_wildcards = no

ldapvirtual2_server_host = 127.0.0.1
ldapvirtual2_server_port = 389
ldapvirtual2_bind_dn = o=ispman
ldapvirtual2_bind = no
ldapvirtual2_timeout = 5
ldapvirtual2_search_base = o=ispman
ldapvirtual2_query_filter = \
(&(|(mailLocalAddress=%s)(mailAlias=%s))(!(mailForwardingAddress=*))) \
ldapvirtual2_result_attribute = mailRoutingAddress ldapvirtual2_lookup_wildcards = no


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have noticed that some of you experienced the 
problem that mailboxes with forwardings also stored the mail local.</FONT></DIV>
<DIV><FONT face=Arial size=2>Of course you can avoid that by specifying "None 
(no mailbox, just forwardings)" at mailbox creation, but this is not available 
</FONT><FONT face=Arial size=2>in control panel. So this is no real 
solution.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I solved this problem for me with the following 
entry in main.cf.</FONT></DIV>
<DIV><FONT face=Arial size=2>ldapvirtual is responsible for the forwarding 
address. ldapvirtual2 checks if forwardings are defined and ONLY delivers to the 
local address if there are no forwardings.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Maybe this helps someone, I'd really like to know 
if this works for others too and if someone experiences problems with this 
config.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Best regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Oliver</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>----- relevant part of main.cf: -----</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>virtual_maps = ldap:ldapvirtual, 
ldap:ldapvirtual2<BR></FONT><FONT face=Arial size=2><BR>ldapvirtual_server_host 
= 127.0.0.1<BR>ldapvirtual_server_port = 389<BR>ldapvirtual_bind_dn = 
o=ispman<BR>ldapvirtual_bind = no<BR>ldapvirtual_timeout = 
5<BR>ldapvirtual_search_base = o=ispman<BR>ldapvirtual_query_filter = 
(|(mailLocalAddress=%s)(mailAlias=%s))<BR>ldapvirtual_result_attribute = 
mailForwardingAddress<BR>ldapvirtual_lookup_wildcards = no</DIV>
<DIV>&nbsp;</DIV>
<DIV>ldapvirtual2_server_host = 127.0.0.1<BR>ldapvirtual2_server_port = 
389<BR>ldapvirtual2_bind_dn = o=ispman<BR>ldapvirtual2_bind = 
no<BR>ldapvirtual2_timeout = 5<BR>ldapvirtual2_search_base = 
o=ispman<BR>ldapvirtual2_query_filter = 
(&amp;(|(mailLocalAddress=%s)(mailAlias=%s))(!(mailForwardingAddress=*)))<BR>ldapvirtual2_result_attribute \
 = mailRoutingAddress<BR>ldapvirtual2_lookup_wildcards = 
no<BR></FONT></DIV></BODY></HTML>


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Ispman-users mailing list
Ispman-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ispman-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic